blob: 1bf8e147c763b1bd13f575af4a1a72e7f011471b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clc
clear
//Initialization of variables
x=0.35
T=18 //F
//calculations
disp("From table B-14,")
hf=12.12 //Btu/lbm
hg=80.27 //Btu.lbm
hfg=-hf+hg
h=hf+x*hfg
//results
printf("specific enthalpy = %.1f Btu/lbm",h)
|