summaryrefslogtreecommitdiff
path: root/Energy_Management_by_W._R._Murphy_and_G._A._Mckay/Chapter8.ipynb
blob: 535b79a2f3acc85ed3643186b2af04bb01ec518a (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
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
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
{
 "metadata": {
  "name": "",
  "signature": "sha256:2afc3daa8e0273c84c299dcbf4aab5274b684182c853d9a3418cd2adcae29e4d"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter8-Electrical energy"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex1-pg222"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "## Example 8.1\n",
      "print('Example 8.1');\n",
      "print('Page No. 222');\n",
      "\n",
      "## given\n",
      "V = 240;## Voltage in Volts\n",
      "I = 8;## Current in Amps\n",
      "##By ohm's law-> V = I*R\n",
      "R = V/I;## In ohms\n",
      "print'%s %.2f %s '%('The resistance of the given circuit is ',R,' ohms')\n",
      "\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Example 8.1\n",
        "Page No. 222\n",
        "The resistance of the given circuit is  30.00  ohms \n"
       ]
      }
     ],
     "prompt_number": 10
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex2-pg223"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "import numpy\n",
      "from numpy.linalg import inv\n",
      "## Example 8.2\n",
      "print('Example 8.2');\n",
      "print('Page No. 223');\n",
      "\n",
      "## given\n",
      "V1 = 100.;## In Volts\n",
      "V2 = 50.;## In Volts\n",
      "R1 = 8.;## Resistance in ohm\n",
      "R2 = 5.;## Resistance in ohm\n",
      "R3 = 10.;## Resistance in ohm\n",
      "R4 = 50.;## Resistance in ohm\n",
      "##By refering figure 8.3, and applying kirchoff's current law and kirchoff's voltage law in the given circuit diagram, we get following equations:\n",
      "## I1 = I2 + I3\n",
      "##V1 - R1*I1 - V2 - R3*I3 = 0\n",
      "##V2 - R4*I3 + R3*I3 - R2*I2 = 0\n",
      "A = ([[1, -1, -1],[8, 0, 10],[0 ,55, -10]])\n",
      "b = ([0,50,50]);\n",
      "x =numpy.dot(inv(A),b)\n",
      "print'%s %.2f %s '%('The currents in I1 is ',x[0],' A ')\n",
      "print'%s %.2f %s '%('The currents in I2 is ',x[1],' A ')\n",
      "print'%s %.2f %s '%('The currents in I3 is ',x[2],' A ')\n",
      "\n",
      "\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Example 8.2\n",
        "Page No. 223\n",
        "The currents in I1 is  3.50  A  \n",
        "The currents in I2 is  1.31  A  \n",
        "The currents in I3 is  2.20  A  \n"
       ]
      }
     ],
     "prompt_number": 9
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex3-pg226"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "## Example 8.3\n",
      "print('Example 8.3');\n",
      "print('Page No. 226');\n",
      "\n",
      "## given\n",
      "R = 6;## Resistance in ohm\n",
      "Xc = 16;## Capacitive resistance in ohm\n",
      "Xl = 24;## Inductive resistance in ohm\n",
      "Z = ((R**2) + (Xc - Xl)**2)**0.5;## Impedance in ohm\n",
      "P_f = R/Z;## Power factor = cos(x) = 0.6\n",
      "x = math.cos(0.6)*57.3;\n",
      "y = math.sqrt(1 - P_f**2);##y = sin (x)\n",
      "V = 200;## in Volts(sin wave voltage = ((200*2**1.5)*sinwt)\n",
      "I = V/Z;## Current in Amperes\n",
      "P = I**2 * R;## in W\n",
      "Q = V * I * y;## in VAR\n",
      "S = V * I;## in VA\n",
      "print'%s %.2f %s'% ('The actual power is ',P,' W ')\n",
      "print'%s %.2f %s'% ('The reactive power is ',Q,' VAR ')\n",
      "print'%s %.2f %s'% ('The apparent power is ',S,' VA ')\n",
      "\n",
      "\n",
      "\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Example 8.3\n",
        "Page No. 226\n",
        "The actual power is  2400.00  W \n",
        "The reactive power is  3200.00  VAR \n",
        "The apparent power is  4000.00  VA \n"
       ]
      }
     ],
     "prompt_number": 8
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex4-pg232"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "## Example 8.4\n",
      "print ('Example 8.4');\n",
      "print ('Page No. 232');\n",
      "\n",
      "##given\n",
      "pump_1 = 100*10**3;## Required pump in W\n",
      "T_1 = 8;## Pump Operating time of each day\n",
      "Inc_op = 0.5;## Increased output per cent\n",
      "pump_ex = 50*10**3;## Extra pump requried in W\n",
      "\n",
      "## This question doesnot contain any calculation part.\n",
      "print('there is no computational part in the problem')\n",
      "\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Example 8.4\n",
        "Page No. 232\n",
        "there is no computational part in the problem\n"
       ]
      }
     ],
     "prompt_number": 7
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex5-pg232"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "## Example 8.5\n",
      "print ('Example 8.5');\n",
      "print ('Page No. 232');\n",
      "\n",
      "##given\n",
      "P = 600*10**3;## Power demand of pump in W\n",
      "T = 8.;## Operating time in hour per day\n",
      "red = 1.00/10**3.;## off-peak reduction in Pound per 10**3 W month\n",
      "M_save = P*red;##  Monthly saving Pound per month\n",
      "A_save = M_save*12.;## Annual saving in Pound per year\n",
      "print'%s %.2f %s'% ('Annual saving is ',A_save,' Pound per year')\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Example 8.5\n",
        "Page No. 232\n",
        "Annual saving is  7200.00  Pound per year\n"
       ]
      }
     ],
     "prompt_number": 6
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex6-pg234"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "import numpy\n",
      "from numpy import floor\n",
      "## Example 8.6\n",
      "print ('Example 8.6');\n",
      "print('Page No. 234');\n",
      "\n",
      "##given\n",
      "T_lamp = 12.*10**3.;## Output for the tungsten filament lamp in lm per 10^3 W\n",
      "F_tube = 63.*10**3.;## Output for the fluorescent tubes in lm per 10^3 W\n",
      "Save = F_tube - T_lamp;##  in W\n",
      "print'%s %.2f %s'% ('Energy saving is ',Save,' lm per 10^3 W ')\n",
      "\n",
      "Save_pcent = (Save/F_tube)*100.;\n",
      "print'%s %.2f %s'% ('Energy saving per cent is  ',floor(Save_pcent),'')\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Example 8.6\n",
        "Page No. 234\n",
        "Energy saving is  51000.00  lm per 10^3 W \n",
        "Energy saving per cent is   80.00 \n"
       ]
      }
     ],
     "prompt_number": 5
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex7-pg235"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "## Example 8.7\n",
      "print('Example 8.7');\n",
      "print ('Page No. 235');\n",
      "\n",
      "##given\n",
      "N = 40.;## Number of lamps\n",
      "T1 = 15.;## Operating time in h per day\n",
      "P = 500.;## POwer from the lamps in W\n",
      "T2 = 300.;## Total operating time in days per year\n",
      "C = 2.5/10**3;## Electricity cost in p per Wh\n",
      "\n",
      "An_Cost = N*P*T1*T2*C*10**-2;## In euro\n",
      "print'%s %.2f %s'% ('The Annual Cost is ',An_Cost,' Euro ')\n",
      "\n",
      "##Improvement in light by installing glassfibre skylights\n",
      "T3 = 5;##   Extra Time for natural lighting in h per day\n",
      "New_An_Cost = N*P*(T1-T3)*T2*C*10**-2;## In euro\n",
      "print'%s %.2f %s'% ('The New Annual Cost is ',New_An_Cost,' Euro ')\n",
      "\n",
      "Save = An_Cost - New_An_Cost;## in euro\n",
      "print'%s %.2f %s'% ('The annual saving for a pay-back period of 2.5 years is ',Save,'')\n",
      "\n",
      "\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Example 8.7\n",
        "Page No. 235\n",
        "The Annual Cost is  2250.00  Euro \n",
        "The New Annual Cost is  1500.00  Euro \n",
        "The annual saving for a pay-back period of 2.5 years is  750.00 \n"
       ]
      }
     ],
     "prompt_number": 4
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex8-pg236"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "## Example 8.8\n",
      "print ('Example 8.8');\n",
      "print ('Page No. 236');\n",
      "\n",
      "## This question doesnot contain any calculation part.\n",
      "\n",
      "##By refering figure 8.7 which shows Poer factor-load curve for a motor with a capacitor and one without a capacitor.\n",
      "print('there is no computational part in the problem')\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Example 8.8\n",
        "Page No. 236\n",
        "there is no computational part in the problem\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex9-pg238"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "## Example 8.9\n",
      "print('Example 8.9');\n",
      "print('Page No. 238');\n",
      "\n",
      "## This question doesnot contain any calculation part.\n",
      "##given\n",
      "l = 500.*10**3.;## Load in VA\n",
      "P_F = 0.6;## Power Factor\n",
      "Req_P_F = 0.9;## Required power factor\n",
      "##Refer to figure 8.8\n",
      "BC = 2.5;## units\n",
      "C_rt = 250*10**3;## in VAR (obtained from figure 8.8)\n",
      "print'%s %.2f %s'%('The required condenser rating is',C_rt,'')\n",
      "\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Example 8.9\n",
        "Page No. 238\n",
        "The required condenser rating is 250000.00 \n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex10-pg240"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "import numpy\n",
      "from numpy.linalg import inv\n",
      "## Example 8.10\n",
      "print ('Example 8.10');\n",
      "print ('Page No. 240');\n",
      "\n",
      "P = 100.;## Power in 10^3 W\n",
      "C = 5.;## Charge in Euro per 10^3 per month\n",
      "PF = ([1.0, 0.9 ,0.8, 0.7, 0.6, 0.5]);## Power factor \n",
      "leng=len(PF)\n",
      "for i in range (0,leng):\n",
      "\tVA = (PF[i]/P)*C\n",
      "\ta=VA\n",
      "\tb=PF[i]\n",
      "\tprint'%s %.2f %s %.2f %s'% ('Charge per month for power factor ',b,' is' ,a,'Euro')\n",
      "\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Example 8.10\n",
        "Page No. 240\n",
        "Charge per month for power factor  1.00  is 0.05 Euro\n",
        "Charge per month for power factor  0.90  is 0.05 Euro\n",
        "Charge per month for power factor  0.80  is 0.04 Euro\n",
        "Charge per month for power factor  0.70  is 0.03 Euro\n",
        "Charge per month for power factor  0.60  is 0.03 Euro\n",
        "Charge per month for power factor  0.50  is 0.03 Euro\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex11-pg240"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "## Example 8.11\n",
      "print('Example 8.11');\n",
      "print ('Page No. 240');\n",
      "\n",
      "## This question doesnot contain any calculation part.\n",
      "##given\n",
      "P_F_1 = 0.7;## Initial power factor\n",
      "P_F_2 = 0.95;## Final power factor\n",
      "##Refer Figure 8.10\n",
      "red_I = 26;##reduction in current in per cent\n",
      "print'%s %.2f %s'% ('The reduction in current is ',red_I,' per cent ')\n",
      "P_F_3 = 1.0;## Increased power factor\n",
      "## From figure 8.10\n",
      "Save = 4.;## per cent\n",
      "print'%s %.2f %s'% ('Increase in power factor from 0.95-1.0 only increases saving further by a ',Save,' per cent')\n",
      "\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Example 8.11\n",
        "Page No. 240\n",
        "The reduction in current is  26.00  per cent \n",
        "Increase in power factor from 0.95-1.0 only increases saving further by a  4.00  per cent\n"
       ]
      }
     ],
     "prompt_number": 34
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex12-pg240"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "## Example 8.12\n",
      "print ('Example 8.12');\n",
      "print ('Page No. 240');\n",
      "\n",
      "## This question doesnot contain any calculation part.\n",
      "##given\n",
      "C = 10000.;## Installation cost of capacitors in Pound\n",
      "P_F_1 = 0.84;## Initial power factor\n",
      "P_F_2 = 0.97;## Final power factor\n",
      "##Refer Figure 8.10\n",
      "red_dem = 14.;##reduction in maximum demand in per cent\n",
      "T = 9.;## pay-back time in months\n",
      "\n",
      "print'%s %.2f %s'% ('The reduction in maximum demand is',red_dem,' per cent')\n",
      "print'%s %.2f %s'% ('The pay-back time was',T,' months')\n",
      "## This question does not contain any calculation part.\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Example 8.12\n",
        "Page No. 240\n",
        "The reduction in maximum demand is 14.00  per cent\n",
        "The pay-back time was 9.00  months\n"
       ]
      }
     ],
     "prompt_number": 33
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex13-pg244"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "import numpy\n",
      "from numpy import floor\n",
      "## Example 8.13\n",
      "print ('Example 8.13');\n",
      "print ('Page No. 244');\n",
      "\n",
      "##given\n",
      "T1 = 21.;## in degree celcius\n",
      "t1 = 8.;## time in h per day\n",
      "c = 3.5;## cost in p per unit\n",
      "C1 = 38.;## Total cost in Pound per 10^3 W\n",
      "\n",
      "T2 = 16.;## in degree celcius\n",
      "t2 = 8.;## time in h per day\n",
      "C2 = 27.;## Total cost in Pound per 10^3 W\n",
      "\n",
      "Save = C1 - C2;## Saving in Pound per 10^3 W\n",
      "Save_deg = Save/(T1 - T2);## Total Saving in Pound per 10^3 W for each degree drop\n",
      "Save_per = (Save_deg/C1)*100.;## Saving in percent\n",
      "print'%s %.2f %s'% ('For each degree drop, an energy saving of ',floor(Save_per),' per cent is achieved')\n",
      "\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Example 8.13\n",
        "Page No. 244\n",
        "For each degree drop, an energy saving of  5.00  per cent is achieved\n"
       ]
      }
     ],
     "prompt_number": 32
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex14-pg245"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "## Example 8.14\n",
      "print ('Example 8.14');\n",
      "print ('Page No. 245');\n",
      "\n",
      "## This question doesnot contain any calculation part.\n",
      "##refer Table 8.6\n",
      "O_1 = 1750.;\n",
      "O_2 = 0.;\n",
      "O_3 = 2.;\n",
      "O_4 = 150.;\n",
      "O_5 = 1900.;\n",
      "O_6 = 0.;\n",
      "I_1 = 580.;\n",
      "I_2 = 1658.;\n",
      "I_3 = 0.5;\n",
      "I_4 = 40.;\n",
      "I_5 = 1698.;\n",
      "I_6 = 11.;\n",
      "D_1 = 300.;\n",
      "D_2 = 869.;\n",
      "D_3 = 0.5;\n",
      "D_4 = 40.;\n",
      "D_5 = 900.;\n",
      "D_6 = 37.;\n",
      "print(' \\t\\t\\t\\t\\t\\t ENERGY COSTS FOR HEATING STEEL BILLETS')\n",
      "print('components\\t\\t\\t\\t\\t\\t kmol \\t\\t\\t\\t\\t\\t % Composition by volume' '\\n\\n\\n')\n",
      "print('\\t\\t\\t\\t\\t\\t\\t (1)Oil fired \t   (2)Induction \t (3)Direct resistance')\n",
      "print'%s %.2f %s %.2f %s %.2f %s '%('Components(10^3 W/tonne) \\t\\t ',O_1,'  \\t\\t ',I_1,' \\t\\t  ',D_1,'')\n",
      "print'%s %.2f %s %.2f %s %.2f %s '%('Fuel(electricity) \\t\\t      '  ,O_2,'  \\t\\t ',I_2,' \\t\\t  ',D_2,'')\n",
      "print'%s %.2f %s %.2f %s %.2f %s '%('Components(10^3 W/tonne) \\t\\t ',O_3,'  \\t\\t ',I_3,' \\t\\t  ',D_3,'')\n",
      "print'%s %.2f %s %.2f %s %.2f %s '%('Components(10^3 W/tonne) \\t\\t ',O_4,'  \\t\\t ',I_4,' \\t\\t  ',D_4,'')\n",
      "print'%s %.2f %s %.2f %s %.2f %s '%('Components(10^3 W/tonne) \\t\\t ',O_5,'  \\t\\t ',I_5,' \\t\\t  ',D_5,'')\n",
      "print'%s %.2f %s %.2f %s %.2f %s '%('Components(10^3 W/tonne) \\t\\t ',O_6,'  \\t\\t ',I_6,' \\t\\t  ',D_6,'')\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Example 8.14\n",
        "Page No. 245\n",
        " \t\t\t\t\t\t ENERGY COSTS FOR HEATING STEEL BILLETS\n",
        "components\t\t\t\t\t\t kmol \t\t\t\t\t\t % Composition by volume\n",
        "\n",
        "\n",
        "\n",
        "\t\t\t\t\t\t\t (1)Oil fired \t   (2)Induction \t (3)Direct resistance\n",
        "Components(10^3 W/tonne) \t\t  1750.00   \t\t  580.00  \t\t   300.00  \n",
        "Fuel(electricity) \t\t       0.00   \t\t  1658.00  \t\t   869.00  \n",
        "Components(10^3 W/tonne) \t\t  2.00   \t\t  0.50  \t\t   0.50  \n",
        "Components(10^3 W/tonne) \t\t  150.00   \t\t  40.00  \t\t   40.00  \n",
        "Components(10^3 W/tonne) \t\t  1900.00   \t\t  1698.00  \t\t   900.00  \n",
        "Components(10^3 W/tonne) \t\t  0.00   \t\t  11.00  \t\t   37.00  \n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex15-pg247"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "## Example 8.15\n",
      "print('Example 8.15\\n\\n');\n",
      "print('Page No. 247\\n\\n');\n",
      "\n",
      "## This question doesnot contain any calculation part.\n",
      "##refer Table 8.7\n",
      "El = 35.;## Percentage of electricity produced from primary fuel\n",
      "En_1 = 50.;## Endothermic gas (m^3)\n",
      "En_2 = 100.;## Endothermic gas (m^3)\n",
      "En_3 = 200.;## Endothermic gas (m^3)\n",
      "G_1 = 97.;## Gas use (10^3 Wh)\n",
      "G_2 = 194.;## Gas use (10^3 Wh)\n",
      "G_3 = 386.;## Gas use (10^3 Wh)\n",
      "El_1 = 24.;## Electricity use (10^3 Wh)\n",
      "El_2 = 48.;## Electricity use (10^3 Wh)\n",
      "El_3 = 95.;## Electricity use (10^3 Wh)\n",
      "P_1 = 69.;## Primary energy (10^3 Wh)\n",
      "P_2 = 137.;## Primary energy (10^3 Wh)\n",
      "P_3 = 271.;## Primary energy (10^3 Wh)\n",
      "Endothermicgas=['50 \\t\\t',       '100 \\t\\t ','200 \\t\\t ']\n",
      "gasuse=        ['\\t\\t 97 \\t\\t  ','\\t\\t194 \\t\\t ','\\t\\t 386 \\t\\t ']\n",
      "electricityuse=[' \\t\\t 24 ',' \\t\\t 48\\t\\t ',' \\t\\t 95 \\t']\n",
      "primaryenergy= [' \\t\\t 69 ',' 137 ',' \\t 271  ']\n",
      "print('Endothermicgas\\t\\t gasuse\\t\\t electricityuse \\t\\t primaryenergy')\n",
      "\n",
      "for row in zip(Endothermicgas , gasuse, electricityuse,primaryenergy):\n",
      "\tprint ' '.join(row)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Example 8.15\n",
        "\n",
        "\n",
        "Page No. 247\n",
        "\n",
        "\n",
        "Endothermicgas\t\t gasuse\t\t electricityuse \t\t primaryenergy\n",
        "50 \t\t \t\t 97 \t\t    \t\t 24   \t\t 69 \n",
        "100 \t\t  \t\t194 \t\t   \t\t 48\t\t   137 \n",
        "200 \t\t  \t\t 386 \t\t   \t\t 95 \t  \t 271  \n"
       ]
      }
     ],
     "prompt_number": 2
    }
   ],
   "metadata": {}
  }
 ]
}