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 /2735/CH9/EX9.9 | |
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 '2735/CH9/EX9.9')
-rwxr-xr-x | 2735/CH9/EX9.9/Ex9_9.sce | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/2735/CH9/EX9.9/Ex9_9.sce b/2735/CH9/EX9.9/Ex9_9.sce new file mode 100755 index 000000000..0ecd214f1 --- /dev/null +++ b/2735/CH9/EX9.9/Ex9_9.sce @@ -0,0 +1,26 @@ +clc
+clear
+//Initialization of variables
+P1=144 //psia
+T1=400 //F
+y=0.7
+//calculations
+disp("From steam tables,")
+h1=1220.4 //Btu/lbm
+s1=1.6050 //Btu/lbm R
+s2=1.6050 //Btu/lbm R
+P2=3 //psia
+sf=0.2008 //Btu/lbm R
+sfg=1.6855 //Btu/lbm R
+x=(s1-sf)/sfg
+hf=109.37 //Btu/lbm
+hfg=1013.2 //Btu/;bm
+h2=hf+x*hfg
+work=h1-h2
+dw=y*work
+h2d=h1-dw
+//results
+printf("Work done = %d Btu/lbm",work)
+printf("\n work done in case 2 = %.1f Btu/lbm",dw)
+printf("\n Final state pressure = %d psia",P2)
+disp("The answer is a bit different due to rounding off error in textbook")
|