diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2837/CH13/EX13.4 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2837/CH13/EX13.4')
-rwxr-xr-x | 2837/CH13/EX13.4/Ex13_4.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/2837/CH13/EX13.4/Ex13_4.sce b/2837/CH13/EX13.4/Ex13_4.sce new file mode 100755 index 000000000..17316bed3 --- /dev/null +++ b/2837/CH13/EX13.4/Ex13_4.sce @@ -0,0 +1,21 @@ +clc
+clear
+//Initialization of variables
+p1=30 //psia
+t1=80+460 //R
+R1=48.3
+R2=55.2
+m1=20 //lb/min
+p2=50 //psia
+m2=35 //lb/min
+t2=160+460 //R
+cp1=0.219
+cp2=0.248
+J=778
+//calculations
+tf=(m1*cp1*(t1-460) + m2*cp2*(t2-460))/(m1*cp1+m2*cp2)
+Po2=m1/32/(m1/32+m2/28) *p1
+ds=cp1*log((tf+460)/t1) - R1/J *log(Po2/p1)
+dss=ds*m1
+//results
+printf("Change in entropy = %.4f units/min",dss)
|