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
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
|
{
"metadata": {
"name": "",
"signature": "sha256:78e90073f1d3e896aa59a93fe405edfd326289aeeacf9b8c1583b20516c1d040"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Ch-4 : Vapour Power Cycles"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex - 4.1 : Pg - 177"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#initialisation of variables\n",
"t1=523.3 #temparature under p1=40 bar in k\n",
"t2=314.5 #temparature under p2=0.80 bar in k\n",
"s4=2.797 #entropy under p1=40 bar \n",
"s1=6.070 #entropy under p1=40 bar\n",
"sf3=0.593 #entropy under p2=0.08 bar\n",
"sfg3=7.634 #entropy under p2=0.08 bar\n",
"h4=1087 #kj/kg\n",
"h1=2801 #kj/kg\n",
"hf3=174 #kj/kg under p2=0.08bar\n",
"hfg3=2402 #kj/kg under p2=0.08bar\n",
"#CALCULATIONS\n",
"eff=(t1-t2)/t1\n",
"x3=(s4-sf3)/sfg3\n",
"x2=(s1-sf3)/sfg3\n",
"h3=hf3+(x3*hfg3)\n",
"h2=hf3+(x2*hfg3)\n",
"wt=h1-h2\n",
"cw=h4-h3\n",
"wr=(wt-cw)/wt\n",
"#RESULTS\n",
"print '(a)efficiency of carnot cycle is %0.3f'%(eff)\n",
"print '\\n(b)quality is %0.4f'%(x3)\n",
"print '\\n(c)gross work of expansion is %0.1f'%(wt)\n",
"print '\\n(d)work ratio is %0.3f'%(wr)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(a)efficiency of carnot cycle is 0.399\n",
"\n",
"(b)quality is 0.2887\n",
"\n",
"(c)gross work of expansion is 903.7\n",
"\n",
"(d)work ratio is 0.757\n"
]
}
],
"prompt_number": 1
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex - 4.2 : Pg - 179"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#initialisation of variables\n",
"v=0.1008*10**-2\n",
"p1=40 #pressure in bar\n",
"p2=0.08 #pressure in bar\n",
"wt=903.8 #kj/kg\n",
"wp=4.02 #kj/kg\n",
"h1=2801 #kj/kg\n",
"h3=174 #kj/kg\n",
"#CALCULATIONS\n",
"pw=v*(p1-p2)\n",
"wn=wt-wp\n",
"qs=h1-(h3+wp)\n",
"reff=wn/qs\n",
"wr=wn/wt\n",
"#RESULTS\n",
"print '\\nrankine efficiency and work ratio is %0.3f and %0.3f'%(reff,wr)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"\n",
"rankine efficiency and work ratio is 0.343 and 0.996\n"
]
}
],
"prompt_number": 2
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex - 4.3 : Pg - 180"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#initialisation of variables\n",
"h3=174 #kj/kg\n",
"h4=178.02 #kj/kg\n",
"ieff=0.50 #isentropic efficiency of compression\n",
"wt=903.8 #kj/kg\n",
"feff=0.75 #furnace efficiency\n",
"ieeff=0.85#isentropic expansion efficiency\n",
"wp=4.02 #kj/kg\n",
"h1=2801 #kj/kg\n",
"#CALCULATIONS\n",
"hx=((h4-h3)/0.5)+174\n",
"wr=wp/ieff\n",
"atu=ieeff*wt\n",
"hs=h1-hx\n",
"nwo=atu-wr\n",
"eff=nwo/hs\n",
"oeff=eff*feff\n",
"wrt=nwo/atu\n",
"ssc=3600/nwo\n",
"hr=3600/oeff\n",
"#RESULTS\n",
"print 'steam and heat rates are %0.2fkg/kwh and %0.1fkj/kwh'%(ssc,hr)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"steam and heat rates are 4.74kg/kwh and 16536.7kj/kwh\n"
]
}
],
"prompt_number": 3
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex - 4.4 : Pg - 183"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#initialisation of variables\n",
"h1=3221.6 #kj/kg\n",
"s1=7.399 #kj/kgk\n",
"sf2=0.521 #kj/kgk\n",
"sfg2=7.808 #kj/kgk\n",
"hf2=152 #kj/kg\n",
"hfg2=2415 #kj/kg\n",
"t1=653 #temp in k\n",
"t2=309.2 #temp in k\n",
"v=0.1006*10**-2\n",
"p1=10 #pressure in bar\n",
"p2=0.06 #pressure in bar\n",
"h3=152 #kj/kg\n",
"x=110\n",
"y=639.7\n",
"z=610\n",
"a=2015\n",
"#CALCULATIONS\n",
"x2=(s1-sf2)/sfg2\n",
"h2=hf2+(x2*hfg2)\n",
"wo=h1-h2\n",
"hs=h1-h3\n",
"theff=wo/hs\n",
"sr1=3600/wo\n",
"ceff=(t1-t2)/t1\n",
"wp=v*(p1-p2)\n",
"h4=h3+wp\n",
"reff=(x+y)/(z+a)\n",
"sr2=3600/(x+y)\n",
"hr=3600/reff\n",
"print 'steam rate and carnot efficiency are %0.2fkg/kwh and %00.3f'%(sr1,ceff)\n",
"print '\\nsteam rate and heat rate are %0.2fkg/kwh and %0.f kJ/kWh'%(sr2,hr)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"steam rate and carnot efficiency are 3.82kg/kwh and 0.526\n",
"\n",
"steam rate and heat rate are 4.80kg/kwh and 12605 kJ/kWh\n"
]
}
],
"prompt_number": 4
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex - 4.5 : Pg - 188"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#initialisation of variables\n",
"h1=3157 #kj/kg\n",
"h2=2725 #kj/kg\n",
"h3=3299 #kj/kg\n",
"h4=2257.9 #kj/kg\n",
"h5=1940.3 #kj/kg\n",
"h6=152 #kj/kg\n",
"x4=0.872\n",
"x5=0.7405\n",
"v=0.1006*10**-2 #volume\n",
"p1=100 #pressure in bar\n",
"p2=0.06 #pressure in bar\n",
"#CALCULATIONS\n",
"wp=v*(p1-p2)*100\n",
"h7=h6+wp\n",
"wt1=h1-h5\n",
"wn1=wt1-wp\n",
"qs1=h1-h7\n",
"wr1=wn1/wt1\n",
"reff=wn1/qs1\n",
"#reheat cycle\n",
"wt2=(h1-h2)+(h3-h4)\n",
"wn2=wt2-wp\n",
"wr2=wn2/wt2\n",
"qs2=h1-h7+h3-h2\n",
"teff=wn2/qs2\n",
"pd=wn2/3600\n",
"pdi=(pd-0.3352)/0.3352\n",
"df=1-pdi\n",
"#RESULTS\n",
"print 'work ratio and rakine efficiency of rankine cycle is %0.4f and %0.3f'%(wr1,reff)\n",
"print 'dryness fraction of steam is 0.872'\n",
"print '\\nheat supplied is %0.2f'%(qs1)\n",
"print '\\npower developed is %0.2f'%(pd)\n",
"print '\\npower developed per kg of steam is %0.4f'%(pdi)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"work ratio and rakine efficiency of rankine cycle is 0.9917 and 0.403\n",
"dryness fraction of steam is 0.872\n",
"\n",
"heat supplied is 2994.95\n",
"\n",
"power developed is 0.41\n",
"\n",
"power developed per kg of steam is 0.2124\n"
]
}
],
"prompt_number": 5
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex - 4.6 : Pg - 195"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#initialisation of variables\n",
"h1=2979 #kj/kg\n",
"h2=2504.3 #kj/kg\n",
"h3=1987.4 #kj/kg\n",
"h4=152 #kj/kg\n",
"h6=561 #kj/kg\n",
"#CALCULATIONS\n",
"m=(h6-h4)/(h2-h4)\n",
"wo=(h1-h2)+(1-m)*(h2-h3)\n",
"qs=h1-h6\n",
"teff=wo/qs\n",
"ssc=3600/wo\n",
"#RESULTS\n",
"print 'work output is %0.1f kJ/kg'%(wo)\n",
"print '\\nheat supplied is %0.f kJ/kg'%(qs)\n",
"print '\\nthermal efficiency is %0.3f'%(teff)\n",
"print '\\nspecific steam consumption is %0.2fkg/kwh'%(ssc)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"work output is 901.7 kJ/kg\n",
"\n",
"heat supplied is 2418 kJ/kg\n",
"\n",
"thermal efficiency is 0.373\n",
"\n",
"specific steam consumption is 3.99kg/kwh\n"
]
}
],
"prompt_number": 6
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex - 4.7 : Pg - 196"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#initialisation of variables\n",
"h1=3222.5 #kj/kg\n",
"h2=3127.5 #kj/kg\n",
"h3=2692.5 #kj/kg\n",
"h4=2406.7 #kj/kg\n",
"h5=360 #kj/kg\n",
"h6=360 #kj/kg\n",
"h7=584 #kj/kg\n",
"h8=962 #kj/kg\n",
"#CALCULATIONS\n",
"m1=(h8-h7)/(h2-h7)\n",
"m2=((1-m1)*(h7-h5))/(h3-h5)\n",
"wo=(h1-h2)+(1-m1)*(h2-h3)+(1-m1-m2)*(h3-h4)\n",
"qs=h1-h8\n",
"teff=wo/qs\n",
"sr=3600/wo\n",
"#RESULTS\n",
"print 'work output is %0.1f kJ/kg'%(wo)\n",
"print '\\nheat supplied is %0.1f kJ/kg'%(qs)\n",
"print '\\nthermal efficiency is %0.4f'%(teff)\n",
"print '\\nsteam rate is %0.2f kg/kwh'%(sr)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"work output is 685.3 kJ/kg\n",
"\n",
"heat supplied is 2260.5 kJ/kg\n",
"\n",
"thermal efficiency is 0.3032\n",
"\n",
"steam rate is 5.25 kg/kwh\n"
]
}
],
"prompt_number": 7
},
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Ex - 4.8 : Pg - 197"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"from __future__ import division\n",
"#initialisation of variables\n",
"h1=2990 #kj/kg\n",
"h2=2710 #kj/kg\n",
"h3=2325 #kj/kg\n",
"h4=152 #kj/kg\n",
"h5=152 #kj/kg\n",
"h7=505 #kj/kg\n",
"wo=612 #kj/kg\n",
"qs=2485 #kj/kg\n",
"#CALCULATIONS\n",
"m=(h7-h4)/(h2-h4)\n",
"mph=m*30000\n",
"ip=((h1-h2)+(1-m)*(h2-h3))*(30000/3600)\n",
"teff=wo/qs\n",
"#when there is no feeding\n",
"eff=(h1-h3)/(h1-h4)\n",
"sc=(3600/(h1-h3))*ip\n",
"#RESULTS\n",
"print 'internal powers is %0.f kW'%(ip)\n",
"print '\\nthermal efficiency when feeding is there is %0.4f'%(teff)\n",
"print '\\nwhen there is no feed heating,thermal efficiency is %0.4f'%(eff)\n",
"print '\\nsteam consumption is %0.f kg/h'%(sc)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"internal powers is 5099 kW\n",
"\n",
"thermal efficiency when feeding is there is 0.2463\n",
"\n",
"when there is no feed heating,thermal efficiency is 0.2343\n",
"\n",
"steam consumption is 27603 kg/h\n"
]
}
],
"prompt_number": 8
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex - 4.10 : Pg - 202"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#initialisation of variables\n",
"#for the mercury cycle\n",
"ha=360.025 #kj/kg\n",
"sa=0.50625 #kj/kgk\n",
"sfb=0.0961 #kj/kgk\n",
"sfgb=0.5334 #kj/kgk\n",
"hfb=38.05 #kj/kg\n",
"hfgb=294.02 #kj/kg\n",
"#for the steam cycle\n",
"h5=2801 #kj/kg\n",
"h3=163 #kj/kg\n",
"hb=264.2 #kj/kg\n",
"h1=2963 #kj/kg\n",
"s1=6.364 #kj/kgk\n",
"sf2=0.559 #kj/kgk\n",
"sfg2=7.715 #kj/kgk\n",
"qs=3916.2 #kj/kg\n",
"hf2=163 #kj/kg\n",
"hfg2=2409 #kj/kg\n",
"#CALCULATIONS\n",
"xb=(sa-sfb)/sfgb\n",
"hb=hfb+(xb*hfgb)\n",
"m1=(h5-h3)/(hb-hfb)\n",
"x2=(s1-sf2)/sfg2\n",
"h2=hf2+(x2*hfg2)\n",
"wn=m1*(ha-hb)+(h1-h2)\n",
"teff1=wn/qs\n",
"hx=ha-(0.8*(ha-hb))\n",
"hy=h1-(0.8*(h1-h2))\n",
"m2=(h5-h3)/(hx-hfb)\n",
"wo=m2*(ha-hx)+(h1-hy)\n",
"qs=m2*(ha-hfb)+(h1-h5)\n",
"teff2=wo/qs\n",
"#RESULTS\n",
"print 'thermal efficiency of steam cycle is %0.3f'%(teff1)\n",
"print '\\nwork output of plant is %0.1f kJ/kg'%(wo)\n",
"print '\\nheat supplied is %0.1f kJ/kg'%(qs)\n",
"print '\\nthermal efficiency of the plant is %0.4f'%(teff2)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"thermal efficiency of steam cycle is 0.538\n",
"\n",
"work output of plant is 1615.0 kJ/kg\n",
"\n",
"heat supplied is 3625.1 kJ/kg\n",
"\n",
"thermal efficiency of the plant is 0.4455\n"
]
}
],
"prompt_number": 9
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex - 4.11 : Pg - 205"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#initialisation of variables\n",
"ha=360.025 #kj/kg\n",
"hfb=38.05 #kj/kg\n",
"hb=264.2 #kj/kg\n",
"h1=2963 #kj/kg\n",
"h2=1974.6 #kj/kg\n",
"h3=163 #kj/kg\n",
"h4=1087 #kj/kg\n",
"h=1714 #kj/kg\n",
"#CALCULATIONS\n",
"m=h/(hb-hfb)\n",
"wo=7.58*(ha-hb)+(h1-h2)\n",
"qs=7.58*(ha-hfb)+(h4-h3)+(h1-h)\n",
"teff=(wo/qs)\n",
"#RESULTS\n",
"print 'thermal efficiency is %0.1f %%'%(teff*100.0)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"thermal efficiency is 37.2 %\n"
]
}
],
"prompt_number": 10
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex - 4.12 : Pg - 205"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#initialisation of variables\n",
"ha=359.11 #under 10 bar pressure in kj/kg\n",
"sa=0.5089 #under 10 bar pressure in kj/kgk\n",
"sfb=0.0870 #under 0.08 bar pressure in kj/kgk\n",
"sfgb=0.57 #under 0.08 bar pressure in kj/kgk\n",
"hfb=33.21 #under 0.08 bar pressure in kj/kg\n",
"hfgb=294.7 #under 0.08 bar pressure in kj/kg\n",
"h=1840.5 #kj/kg\n",
"h1=3350 #under 25 bar pressure and 723 k in kj/kg\n",
"s1=7.183 #under 25 bar pressure and 723 k in kj/kgk\n",
"sf2=0.476 #under 25 bar pressure and 723 k in kj/kgk\n",
"sfg2=7.918 #under 25 bar pressure and 723 k in kj/kgk\n",
"hf2=138 #under 25 bar pressure and 723 ki n kj/kg\n",
"hfg2=2423 #under 25 bar pressure and 723 k in kj/kg\n",
"h5=964 #kj/kg\n",
"#CALCULATIONS\n",
"xb=(sa-sfb)/(sfgb)\n",
"hb=hfb+(xb*hfgb)\n",
"m=h/(hb-hfb)\n",
"x2=(s1-sf2)/sfg2\n",
"h2=hf2+(x2*hfg2)\n",
"wo=8.47*(ha-hb)+(h1-h2)\n",
"qs=8.47*(ha-hfb)+(h5-138)+(h1-2802.5)\n",
"teff=(wo/qs)*100\n",
"#RESULTS\n",
"print 'work output is %0.1f kJ/kg of steam'%(wo) #textbook ans slightly varies\n",
"print '\\nheat supplied to the plant is %0.1f kJ/kg of steam'%(qs)\n",
"print '\\nthermal efficiency is %0.1f %%'%(teff)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"work output is 2072.4 kJ/kg of steam\n",
"\n",
"heat supplied to the plant is 4133.9 kJ/kg of steam\n",
"\n",
"thermal efficiency is 50.1 %\n"
]
}
],
"prompt_number": 11
}
],
"metadata": {}
}
]
}
|