You are on page 1of 3

V_dot_w = 1500*convert(gpm,ft^3/hr)

T_w_1 = 100 [F]


T_w_2 = 85 [F]
P_atm = 14.696 [psia]
v_f_w = Volume(Steam,T=T_w_1,P=P_atm)
m_dot_w = V_dot_w /v_f_w
m_dot_w/m_dot_a = 1
T[1] = 95 [F]
TBU[1] = 75 [F]
h_D_A = 120
h[1] = Enthalpy(AirH2O,T=T[1],B=TBU[1],P=P_atm)
W[1] = HumRat(AirH2O,T=T[1],B=TBU[1],P=P_atm)
h_g|o = Enthalpy(Steam,T=0,x=1)
Le = 0.895
h_s_w = Enthalpy(AirH2O,T=T_w_2,r=1,P=P_atm)
W_s_w = HumRat(AirH2O,T=T_w_2,r=1,P=P_atm)
ratio[1] = (h_s_w - h[1])/(W_s_w - W[1])
h_g_w = Enthalpy(Steam,T=T_w_1,x=1)
dhdW[1] = Le*ratio[1] + h_g_w - Le*h_g|o
h_a[1] = h[1] + 1.66
h[1] + dhdW[1]*(W_a[1] - W[1]) = h_a[1]
c_w = Cp(Water,T=T_w_1,P=P_atm)
h_f_w = Enthalpy(Water,T=T_w_2,x=0)
T_w_a[1] - T_w_2 = (m_dot_a/(m_dot_w*c_w))*(h_a[1] - h[1] - (W_a[1] - W[1])*h_f_w)
T_a[1] = Temperature(AirH2O,h=h_a[1],w=W_a[1],P=P_atm)
N =8
h_a[2..N] = [42,44,46,48,50,52,54.27]
Duplicate j=2,N
h_s_w[j] = Enthalpy(AirH2O,T=T_w_a[j-1],r=1,P=P_atm)
W_s_w[j] = HumRat(AirH2O,T=T_w_a[j-1],r=1,P=P_atm)
ratio[j] = (h_s_w[j] - h_a[j-1])/(W_s_w[j] - W_a[j-1])
h_g_w[j] = Enthalpy(Steam,T=T_w_a[j-1],x=1)
dhdW[j] = Le*ratio[j] + h_g_w[j] - Le*h_g|o
h_a[j-1] + dhdW[j]*(W_a[j] - W_a[j-1]) = h_a[j]
c_w[j] = Cp(Water,T=T_w_a[j-1],P=P_atm)
h_f_w[j] = Enthalpy(Water,T=T_w_a[j-1],x=0)
T_w_a[j] - T_w_a[j-1] = (m_dot_a/(m_dot_w*c_w[j]))*(h_a[j] - h_a[j-1] - (W_a[j] - W_a[j-1])*h_f_w[j])
T_a[j] = Temperature(AirH2O,h=h_a[j],w=W_a[j],P=P_atm)
end

DELTAW[1] = W_a[1] - W[1]


F_w1[1] = 1/(W_s_w - W[1])
F_w2[1] = 1/(W_s_w[2] - W_a[1])
integrand[1] = DELTAW[1] *(F_w1[1] + F_w2[1] )/2
Duplicate j=2,N-1
DELTAW[j] = W_a[j] - W_a[j-1]
F_w1[j] = 1/(W_s_w[j] - W_a[j-1])

F_w2[j] = 1/(W_s_w[j+1] - W_a[j])


integrand[j] = DELTAW[j] *(F_w1[j] + F_w2[j] )/2
end

DELTAW[N] = W_a[N] - W_a[N-1]


F_w1[N] = 1/(W_s_w[N] - W_a[N-1])
W_s_w_2 = HumRat(AirH2O,T=T_w_a[N],r=1,P=P_atm)
F_w2[N] = 1/(W_s_w_2 - W_a[N])
integrand[N] = DELTAW[N] *(F_w1[N] + F_w2[N] )/2
"Integration"
Integral = sum(integrand[1..N])
V = (m_dot_a/(h_D_A))*Integral
h_f_w_2 = Enthalpy(Water,T=T_w_a[N],x=0)
h_bar_2 = h[1] + (m_dot_w/m_dot_a)*c_w*(T_w_1 - T_w_2) + (W_a[8] - W[1])*h_f_w_2

SOLUTION
Unit Settings: [F]/[psia]/[lbm]/[degrees]
cw = 0.999 [Btu/lbm-R]
hf,w = 53.03 [Btu/lbm]
hg,o = 1061 [Btu/lbm]
Le = 0.895
N =8
Tw,2 = 85 [F]
vf,w = 0.01613 [ft3/lbm]

h2 = 54.32
hf,w,2 = 68.1 [Btu/lbm]
hs,w = 49.34 [Btu/lbm]
ma = 745861
Patm = 14.7 [psia]
V = 7311
W s,w = 0.02631

hD,A = 120
hg,w = 1105 [Btu/lbm]
Integral = 1.176
mw = 745861 [lbm/ft3]
Tw,1 = 100 [F]
Vw = 12031
W s,w,2 = 0.04311

11 potential unit problems were detected.


EES suggested units (shown in purple) for c_w c_w[2] c_w[3] c_w[4] c_w[5] c_w[6] .
Arrays Table
cw,i

dhdWi

[Btu/lbm-R] [Btu/lbm]

1
2
3
4
5
6
7
8

0.9991
0.9991
0.9991
0.9991
0.999
0.999
0.999

958.3
995.7
1047
1092
1131
1164
1190
1211

hi

ha,i

hf,w,i

hg,w,i

hs,w,i

[Btu/lbm]

[Btu/lbm]

[Btu/lbm]

[Btu/lbm]

[Btu/lbm]

38.34

40
42
44
46
48
50
52
54.27

54.6
56.49
58.38
60.27
62.17
64.06
65.95

1099
1100
1100
1101
1102
1103
1104

51.29
53.74
56.31
59.02
61.86
64.84
67.97

Fw1,i

Fw2,i

81.6
83.79
85.32

83.79
85.32
85.38

ratioi

Ti

TBUi

Ta,i

Tw,a,i

[Btu/lbm]

[F]

[F]

[F]

[F]

897.5
945.7
1002
1051
1094
1130
1159
1181

95

93.99
93.12
92.69
92.62
92.82
93.24
93.83
94.63

86.57
88.46
90.35
92.25
94.14
96.04
97.93
100.1

Arrays Table

1
2
3

Wi

Wa,i

Ws,w,i

0.01406

0.01579
0.0178
0.01971

0.02772
0.02952

W i

0.001732
0.002007
0.001911

integrandi

0.1432
0.1697
0.1631

75

Arrays Table
Wi

4
5
6
7
8

Wa,i

Ws,w,i

0.02154
0.02331
0.02503
0.02671
0.02858

0.03142
0.03344
0.03557
0.03783
0.04023

W i

0.001832
0.001768
0.001718
0.00168
0.001874

Fw1,i

Fw2,i

85.38
84.06
81.54
78.08
73.96

84.06
81.54
78.08
73.96
68.81

integrandi

0.1552
0.1464
0.1371
0.1277
0.1338

You might also like