blob: 54cc978822706d379cfd48a6db792389e330f465 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
clc
//Initialization of variables
p=3 //psi
x=0.35
//calculations
printf("From steam tables,")
p=3 //psi
vf=0.01630 //ft^3/lbm
vg=118.71 //ft^3/lbm
hf=109.37 //Btu/lbm
hfg=1013.2 //Btu/lbm
vx=vf+x*(vg-vf)
hx=hf+x*(hfg)
//results
printf("specific volume = %.1f ft^3/lbm",vx)
printf("\n specific enthalpy = %.1f Btu/lbm",hx)
|