summaryrefslogtreecommitdiff
path: root/1460/CH7/EX7.8
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1460/CH7/EX7.8
downloadScilab-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-x1460/CH7/EX7.8/7_8.sce24
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