blob: 1ba6e408a1447e4da057bdbef1ed5ee52d65d6fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
clc
//initialization of varaibles
disp("From the psychrometric chart,")
ha=12.9 //B/lb
g1=0.0032 //lb water/ lb dry air
g2=0.0078 //lb water/ lb dry air
hl=13 //B/lb
hd=25.33 //B/lb
p=14.7 //psia
phi=0.6
cp=0.24
t2=70 //F
//calculations
wl=g2-g1
Q=hd-ha-wl*hl
pg=0.1217 //psia
pa=p-pg
G1=0.622*pg*phi/pa
G2=0.00788
wl2=G2-G1
t1=40 //F
hw1=1061.8 + 0.44*t1
hw2=1092.6 //B/lb
Q2=cp*(t2-t1) + G2*hw2 -G1*hw1 - wl2*hl
//results
printf("Method 1")
printf("\n Water to be supplied = %.4f lb/lb of dry air",wl)
printf("\n heat supplied = %.1f B/lb of dry air",Q)
printf("\n Method 2")
printf("\n Water to be supplied = %.5f lb/lb of dry air",wl2)
printf("\n heat supplied = %.1f B/lb of dry air",Q2)
|