diff options
Diffstat (limited to '1709/CH7/EX7.7/7_7.sce')
-rwxr-xr-x | 1709/CH7/EX7.7/7_7.sce | 21 |
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
|