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 /1460/CH7/EX7.8 | |
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 '1460/CH7/EX7.8')
-rwxr-xr-x | 1460/CH7/EX7.8/7_8.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/1460/CH7/EX7.8/7_8.sce b/1460/CH7/EX7.8/7_8.sce new file mode 100755 index 000000000..0212151d5 --- /dev/null +++ b/1460/CH7/EX7.8/7_8.sce @@ -0,0 +1,24 @@ +clc
+//initialization of variables
+P1=100 //lb/in^2
+T1=500+460 //R
+P2=16 //lb/in^2
+//calculations
+disp("From table 4 of appendix, initial conditions are")
+ht1=1279.1
+st1=1.7085
+hg=1152.0
+sg=1.7549
+hfg=969.7
+sfg=1.4415
+st1=1.7085
+Xdash=(sg-st1)/sfg
+ht2=hg-(Xdash)*hfg
+hdiff=ht1-ht2
+W=hdiff*778
+//results
+printf("\n Change in entropy is zero")
+printf("\n heat trasnfer is zero since adiabatic")
+printf("\n Work done = %d ft-lb/lbm",W)
+printf("\n Change in enthalpy = %.1f B/lbm",hdiff)
+//The answer is a bit different due to rounding off error in textbook
|