summaryrefslogtreecommitdiff
path: root/1709/CH7/EX7.7/7_7.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1709/CH7/EX7.7/7_7.sce
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 '1709/CH7/EX7.7/7_7.sce')
-rwxr-xr-x1709/CH7/EX7.7/7_7.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/1709/CH7/EX7.7/7_7.sce b/1709/CH7/EX7.7/7_7.sce
new file mode 100755
index 000000000..60b59d465
--- /dev/null
+++ b/1709/CH7/EX7.7/7_7.sce
@@ -0,0 +1,21 @@
+clc
+//Initialization of variables
+disp("Critical tables suggest,")
+Tc=344 //R
+Pc=673 //psia
+P1=20 //psia
+P2=500 //psia
+M=16
+T=560 //R
+//calculations
+pr1=P1/Pc
+pr2=P2/Pc
+Tr=T/Tc
+dh2=0.65*Tc
+dsp=0.35 //B/lbm mol R
+dsp2=0.018-dsp- 1545/778 *log(P2/P1)
+W=dh2-dsp2*T
+W2=W/M
+//results
+printf("Work per pound mass = %d B/lbm",W2)
+//The answer is a bit different due to rounding off error