summaryrefslogtreecommitdiff
path: root/1472/CH10/EX10.4/10_4.sce
blob: 2269487593e96554b38d22a03d5be9eaf51d8284 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
clc
//initialization of varaibles
x=0.4
P=100 //psia
//calculations
y=1-x
disp("From table 2,")
vf=0.01774
vg=4.432
vx=x*vf+y*vg
hf=298.4
hfg=888.8
hx=hf+y*hfg
sg=1.6026
sfg=1.1286
sx=sg-x*sfg
//results
printf("Specific volume = %.3f cu ft/lb",vx)
printf("\n Enthalpy = %.1f B/lb",hx)
printf("\n Entropy = %.4f B/lb R",sx)