diff options
Diffstat (limited to '2837/CH10/EX10.12/Ex10_12.sce')
-rwxr-xr-x | 2837/CH10/EX10.12/Ex10_12.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/2837/CH10/EX10.12/Ex10_12.sce b/2837/CH10/EX10.12/Ex10_12.sce new file mode 100755 index 000000000..b5936d4a7 --- /dev/null +++ b/2837/CH10/EX10.12/Ex10_12.sce @@ -0,0 +1,14 @@ +clc
+clear
+//Initialization of variables
+disp("From table 2 of keenan and keynes,")
+p1=98.87 //psia
+p2=31.78 //psia
+t1=80 //F
+h2=26.365 //btu/lb
+h1=11.554 //btu/lb
+hfg=67.203 //btu/lb
+//calculations
+x=(h2-h1)/hfg
+//results
+printf("The state of vapor leaving is %.2f psia with a quality of %.2f percent",p2,x*100)
|