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 /1709/CH10/EX10.3 | |
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 '1709/CH10/EX10.3')
-rwxr-xr-x | 1709/CH10/EX10.3/10_3.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/1709/CH10/EX10.3/10_3.sce b/1709/CH10/EX10.3/10_3.sce new file mode 100755 index 000000000..ec1dfb3aa --- /dev/null +++ b/1709/CH10/EX10.3/10_3.sce @@ -0,0 +1,21 @@ +clc
+//Initialization of variables
+m1=5
+m2=2
+cp1=0.248
+cp2=0.203
+T11=300 //F
+T12=100 //F
+P=10 //psia
+Pi=20 //psia
+Pf=15 //psia
+//calculations
+T2=(m1*cp1*T11 + m2*cp2*T12)/(m1*cp1+m2*cp2)
+n1=m1/28
+n2=m2/44
+n=n1+n2
+P1=P*n1/n
+P2=P*n2/n
+dS=m2*(cp2*log((T2+460)/(T12+460)) - 35.1/778 *log(P2/Pi)) +m2*(cp2*log((T2+460)/(T12+460)) - 55.2/778 *log(P1/Pf))
+//results
+printf("change in enthalpy = %.2f B/R",dS)
|