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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
|
{
"metadata": {
"name": "",
"signature": "sha256:13df1b90ea06630bb54a561fa81d4ebbaaa2d68a225d0631603576a208acfb40"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"CHAPTER13:Gas Mixtures"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex13.3:Pg-533"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#ques3\n",
"#calculating humidity ratio, dew point,mass of air, mass of vapor\n",
"\n",
"r=0.70;#relative humidity\n",
"Pg=5.628;#saturation pressure in kPa\n",
"Pv=r*Pg;#vapour pressure in kPa\n",
"P=100;#net pressure kPa \n",
"Pa=P-Pv;#Partial pressure of air\n",
"w=0.622*Pv/Pa;#humidity ratio formula\n",
"V=100;#volume in m^3\n",
"Ra=0.287;#gas constant for water vapour\n",
"T=308.2;#Temperature in K\n",
"ma=Pa*V/(Ra*T);#mass in kg\n",
"mv=w*ma;#mass of vapour\n",
"print\" Mass of vapour is\",round(mv,3),\"Kg \""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
" Mass of vapour is 2.77 Kg \n"
]
}
],
"prompt_number": 2
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex13.3E:Pg-533"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#ques3\n",
"#calculating humidity ratio, dew point,mass of air, mass of vapor\n",
"\n",
"r=0.70;#relative humidity\n",
"Pg=0.6988 ;#saturation pressure in lbf/in^2\n",
"Pv=r*Pg;#vapour pressure in lbf/in^2\n",
"P=14.7;#net pressure in lbf/in^2\n",
"Pa=P-Pv;#Partial pressure of air\n",
"w=0.622*Pv/Pa;#humidity ratio formula\n",
"V=2000;#volume in ft^3\n",
"Ra=53.34;#gas constant for water vapour\n",
"T=70;#Temperature in F\n",
"ma=Pa*V*144/(Ra*(T+480));#mass in lbm\n",
"mv=w*ma;#mass of vapour\n",
"print\" Mass of vapour is\",round(mv,2),\"lbm\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
" Mass of vapour is 2.99 lbm\n"
]
}
],
"prompt_number": 11
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex13.4:Pg-534"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#ques4 \n",
"#calculating amount of water vapour condensed on cooling\n",
"\n",
"#from example 3\n",
"w1=0.0255;#w1=w, humidity ratio at initial temperature\n",
"ma=108.6;#mass of air in kg\n",
"P=100;#kPa net pressure\n",
"#at 5 C mixture is saturated so Pv2=Pg2\n",
"Pg2=0.8721;\n",
"Pv2=Pg2;\n",
"w2=0.622*Pv2/(P-Pg2);\n",
"mc=ma*(w1-w2);\n",
"print\"Mass of vapour condense is \",round(mc,3),\"kg \""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Mass of vapour condense is 2.175 kg \n"
]
}
],
"prompt_number": 6
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex13.4E:Pg-535"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#ques4 \n",
"#calculating amount of water vapour condensed on cooling\n",
"\n",
"#from example 3 \n",
"w1=0.02135;#w1=w, humidity ratio at initial temperature\n",
"ma=139.6;#mass of air in lbm\n",
"P=14.7;#net pressure in lbf/in^2\n",
"#at 40 degree F mixture is saturated so Pv2=Pg2\n",
"Pg2=0.1217 # lbf/in^2\n",
"Pv2=Pg2;\n",
"w2=0.622*Pv2/(P-Pg2);# humidity ratio at final temperature\n",
"mc=ma*(w1-w2); #Mass of vapour condense in lbm\n",
"print\"Mass of vapour condense is \",round(mc,3),\"lbm \""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Mass of vapour condense is 2.256 lbm \n"
]
}
],
"prompt_number": 13
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex13.5:Pg-536"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#ques5\n",
"#calculating heat transfer per kilogram of dry air\n",
"\n",
"#1-inlet state\n",
"#2-Exit state\n",
"r1=0.80;#realtive humidity at state 1\n",
"Pg1=4.246;#saturation pressure of vapour in kPa\n",
"P1=105.0;#net pressure at state 1 in kPa\n",
"P2=100.0;#net pressure at state 2 in kPa\n",
"Pv1=r1*Pg1;#partial pressure of vapour in kPa\n",
"w1=0.622*Pv1/(P1-Pv1);#humidity ratio at state 1\n",
"r2=0.95;#relative humidity at state 2\n",
"Pg2=1.7051;#saturation pressure of vapour in kPa\n",
"Pv2=r2*Pg2;#partial pressure of vapour in kPa\n",
"w2=0.622*Pv2/(P2-Pv2);#humidity ratio at state 2\n",
"T1=30.0;#C\n",
"T2=15.0;#C\n",
"Cp=1.004;#specific heat of water vapour in kJ/kg\n",
"hv2=2528.9;#enthalpy of vapourisation of vapour in kJ/kg\n",
"hv1=2556.3;#enthalpy of vapourisation of vapour in kJ/kg\n",
"hl2=62.99;#enthalpy of \n",
"q=Cp*(T2-T1)+w2*hv2-w1*hv1+hl2*(w1-w2);#kJ/kg\n",
"print\" Heat transferred per unit mass =\",round(q,1),\"kJ/kg of dry air\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
" Heat transferred per unit mass = -41.7 kJ/kg of dry air\n"
]
}
],
"prompt_number": 11
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex13.6:Pg-537"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#ques6\n",
"#calculating heat transferred in gas vapour mixture\n",
"\n",
"#n-Nitrogen\n",
"#v-water vapour\n",
"Pn2=1995;#Pressure of nitrogen in kPa\n",
"V=0.5;#Volume in m^3\n",
"Rn2=0.2968;#Gas constant for nitrogen in kJ/kg.K\n",
"Rv=0.4615;#gas constant for vapour\n",
"T1=323.2;#Temperature in K\n",
"T2=283.2;#Temperature in K\n",
"Pv1=5;#Pressure of water vapour in kPa at state 1\n",
"Pv2=1.2276;#Pressure of water vapour in kPa at state 2\n",
"mn2=Pn2*V/(Rn2*T1);#mass of nitrogen\n",
"mv1=Pv1*V/(Rv*T1);#mass of vapour in kg\n",
"mv2=Pv2*V/(Rv*T2);#mass of vapour in kg\n",
"ml2=mv1-mv2;#mass of liquid condensed n kg\n",
"uv1=2443.1;#specific internal energy of vapour in kJ/kg at state 1\n",
"uv2=2389.2;#specific internal energy of vapour in kJ/kg at state 2\n",
"ul2=42.0;#specific internal energy of liquid water in kJ/kg\n",
"Cv=0.745;#specific heat at constant volume in kJ/kg.K\n",
"Q=mn2*Cv*(T2-T1)+mv2*uv2+ml2*ul2-mv1*uv1;\n",
"print\"Heat transferred =\",round(Q,2),\"kJ \"\n",
"\n",
"#the answer is different in book due to intermediate approximization "
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Heat transferred = -339.1 kJ \n"
]
}
],
"prompt_number": 13
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex13.7:Pg-539"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#ques7\n",
"#calculating humidity ratio and relative humidity \n",
"\n",
"#1-Inlet state\n",
"#2-Exit state\n",
"P=100;#net pressure in kPa \n",
"#it is steady state adiabatic process\n",
"#water vapour leaving is saturated so Pv2=Pg2\n",
"Pg2=2.339;#saturation pressure of vapour in kPa\n",
"Pv2=Pg2;#partial pressure of vapour\n",
"w2=0.622*Pv2/(P-Pg2);\n",
"Cpa=1.004;#specific heat n kJ/kg/K\n",
"T2=20;# final temp in C\n",
"T1=30;# initial temp in C\n",
"Hfg2=2454.1;#specific heat difference at state 2 in kJ/kg\n",
"hv1=2556.3;#enthalpy of water vapour at state 1 in kJ/kg\n",
"hl2=83.96;#enthalpy of liquid water in kJ/kg\n",
"w1=(Cpa*(T2-T1)+w2*Hfg2)/(hv1-hl2);\n",
"print \" Relative humidity =\",round(w1,4)\n",
"#also w1=0.622*Pv1/(100-Pv2)\n",
"Pv1=100*w1/(0.622+w1);\n",
"Pg1=4.246;#saturation pressure at state 1 in kPa\n",
"r=Pv1/Pg1;#humidity ratio\n",
"print\" Humidity ratio =\",round(r,4)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
" Relative humidity = 0.0107\n",
" Humidity ratio = 0.3993\n"
]
}
],
"prompt_number": 16
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex13.7E:Pg-540"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#ques7\n",
"#calculating humidity ratio and relative humidity \n",
"\n",
"#1-Inlet state\n",
"#2-Exit state\n",
"P=14.7;#net pressure in lbf/in^2\n",
"#it is steady state adiabatic process\n",
"#water vapour leaving is saturated so Pv2=Pg2\n",
"Pg2=0.3632;#saturation pressure of vapour in lbf/in^2\n",
"Pv2=Pg2;#partial pressure of vapour\n",
"w2=0.622*Pv2/(P-Pg2);\n",
"Cpa=0.24;#specific heat n Btu/lbm/F\n",
"T2=70;# final temp in F\n",
"T1=84;# initial temp in F\n",
"Hfg2=1054.0;#specific heat difference at state 2 in Btu/lbm\n",
"hv1=1098.1;#enthalpy of water vapour at state 1 in Btu/lbm\n",
"hl2=38.1;#enthalpy of liquid water in Btu/lbm\n",
"w1=(Cpa*(T2-T1)+w2*Hfg2)/(hv1-hl2);\n",
"print \" Relative humidity =\",round(w1,4)\n",
"#also w1=0.622*Pv1/(100-Pv2)\n",
"Pv1=14.7*w1/(0.622+w1);\n",
"Pg1=0.584;#saturation pressure at state 1 in lbf/in^2\n",
"r=Pv1/Pg1;#humidity ratio\n",
"print\" Humidity ratio =\",round(r,4)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
" Relative humidity = 0.0125\n",
" Humidity ratio = 0.4958\n"
]
}
],
"prompt_number": 18
}
],
"metadata": {}
}
]
}
|