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 /2519/CH11/EX11.7 | |
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 '2519/CH11/EX11.7')
-rwxr-xr-x | 2519/CH11/EX11.7/Ex11_7.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/2519/CH11/EX11.7/Ex11_7.sce b/2519/CH11/EX11.7/Ex11_7.sce new file mode 100755 index 000000000..53d2ef92e --- /dev/null +++ b/2519/CH11/EX11.7/Ex11_7.sce @@ -0,0 +1,23 @@ +clc
+clear
+//Initialization of variables
+x1=1/3
+n1=1
+n2=2
+x2=2/3
+p=12.7 //psia
+cp1=7.01 //Btu/mole R
+cp2=6.94 //Btu/mole R
+R0=1.986
+T2=460+86.6 //R
+T1=460 //R
+p0=14.7 //psia
+//calculations
+p1=x1*p
+p2=x2*p
+ds1= cp1*log(T2/T1) - R0*log(p1/p0)
+ds2= cp2*log(T2/T1) - R0*log(p2/p0)
+S=n1*ds1+n2*ds2
+//results
+printf("Entropy of mixture = %.2f Btu/R",S)
+printf("\n the answer given in textbook is wrong. please check using a calculator")
|