blob: ee7daea442bd34b03a12f637e77924dc10e9c347 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clc
//initialisation of variables
T= 100 //F
P= 1000 //psia
dv= -5.1*10^-5 //cu ft/lb
dh= 2.70 //Btu/lb
vf= 0.01613 //cu ft/lb
hf= 67.97 //Btu/lb
//CALCULATIONS
h= dh+hf
v= dv+vf
//RESULTS
printf ('Volume= %.5f cu ft/lb',v)
printf (' \n Enthalpy= %.2f Btu/lb',h)
|