summaryrefslogtreecommitdiff
path: root/Electrical_Power-i__by_M.L._Anand/Chapter11.ipynb
blob: 71d1292459b59219086f2bec0800dea339c6770e (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
{
 "metadata": {
  "name": "",
  "signature": ""
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter11 - Various types of tariffs"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Exa 11.1 - page 290"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from __future__ import division\n",
      "import numpy as np\n",
      "#Given Data :\n",
      "E=438000 #in kWh(Energy consumed per year)\n",
      "pf=0.8 #unitless\n",
      "cosfi=pf #unitless\n",
      "LoadFactor=40 #in %\n",
      "#tarrif=Rs. 75/year/kw of max demand plus 3 paise per unit per reactive KVA\n",
      "h=8760 #no. of years in a year\n",
      "AvgLoad=E/h #kw\n",
      "MaxLoad=AvgLoad/(LoadFactor/100) #in kw\n",
      "MaxLoad_KVA=MaxLoad/pf #in KVA\n",
      "tanfi=np.tan(np.arccos(cosfi)) #unitless\n",
      "ReactiveKVAR=h*tanfi*AvgLoad #in KVA\n",
      "AnnualBill=75*MaxLoad+(3/100)*E+(1.5/100)*ReactiveKVAR #in Rs.\n",
      "CostPerUnit=AnnualBill/E #in Rs.\n",
      "CostPerUnit=CostPerUnit*100 #in Paisa\n",
      "print \"Cost per unit = %0.3f Paisa\" %CostPerUnit"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Cost per unit = 6.265 Paisa\n"
       ]
      }
     ],
     "prompt_number": 4
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Exa 11.2 - page 291"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from __future__ import division\n",
      "import numpy as np\n",
      "#Given Data :\n",
      "#tarrif=Rs. 275/year/KVA of max demand plus 35 paise per unit\n",
      "C1=275 #in Rs.year/KVA\n",
      "C2=35 #in paisa/unit\n",
      "LoadFactor=30 #in %/year\n",
      "LoadFactor=30/100 #in fraction\n",
      "#Let MaxDemand = x KW\n",
      "#Case (i) PF=1\n",
      "cosfi=1 #unitless\n",
      "AnnualBillBYx=C1/cosfi+(C2/100)*LoadFactor*24*365 #in Rs.(Here 24*365 is for No. of hours in a year)\n",
      "AnnualBill=AnnualBillBYx*100/(LoadFactor*24*365) #in paisa/unit\n",
      "print \"Cost per unit(at unity power factor) = %0.2f paisa\" %AnnualBill\n",
      "#Case (i) PF=0.8\n",
      "cosfi=0.8 #unitless\n",
      "AnnualBillBYx=C1/cosfi+(C2/100)*LoadFactor*24*365 #in Rs.(Here 24*365 is for No. of hours in a year)\n",
      "AnnualBill=AnnualBillBYx*100/(LoadFactor*24*365) #in paisa/unit\n",
      "print \"Cost per unit(at 0.8 power factor) = %0.2f paisa\" %AnnualBill"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Cost per unit(at unity power factor) = 45.46 paisa\n",
        "Cost per unit(at 0.8 power factor) = 48.08 paisa\n"
       ]
      }
     ],
     "prompt_number": 8
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Exa 11.3 - page 292"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from __future__ import division\n",
      "import numpy as np\n",
      "#Given Data :\n",
      "FixedLoad=200 #in kW\n",
      "PF=0.8 #unitless\n",
      "cosfi=PF #unitless\n",
      "h=10 #in hours/day\n",
      "d=300 #in days\n",
      "Time=h*d #in hours\n",
      "Energy=FixedLoad*Time #in kwh/year\n",
      "# (i) tarrif=Rs. 100/KVA/Annum plus 20 paise per kwh\n",
      "C1=100 #in Rs.year/KVA\n",
      "C2=20 #in paisa/kwh\n",
      "KVA=FixedLoad/cosfi #in KVA\n",
      "AnnualBill=KVA*C1+(C2/100)*Energy #in Rs.\n",
      "print \" Case (i) Annual Payment = %0.f Rs.\" %AnnualBill\n",
      "# (ii) tarrif=Rs. 100/KW/Annum plus 20 paise per kwh plus 2 paise/KVARH\n",
      "C1=100 #in Rs./year/KW\n",
      "C2=20 #in paisa/kwh\n",
      "C3=2 #in paisa/KVARH\n",
      "tanfi=np.tan(np.arccos(cosfi)) #unitless\n",
      "ReactiveKVARH=FixedLoad*tanfi*Time #in KVARH\n",
      "AnnualBill=C1*FixedLoad+(C2/100)*Energy+(C3/100)*ReactiveKVARH #in Rs.\n",
      "print \" Case (ii) Annual Payment = %0.f Rs.\" %AnnualBill"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        " Case (i) Annual Payment = 145000 Rs.\n",
        " Case (ii) Annual Payment = 149000 Rs.\n"
       ]
      }
     ],
     "prompt_number": 11
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Exa 11.4 - page 293"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from __future__ import division\n",
      "import numpy as np\n",
      "#Given Data :\n",
      "Energy=180000 #in kwh\n",
      "LoadFactor=45 #in %/year\n",
      "LoadFactor=45/100 #in fraction\n",
      "#Charges=Rs. 50/KW/Annum plus 8 paise per unit\n",
      "C1=50 #in Rs.year/KW\n",
      "C2=8 #in paisa/unit\n",
      "h=365*24 #no. of hours per year\n",
      "AvgLoad=Energy/h #in KW\n",
      "MaxLoad=AvgLoad/LoadFactor #in KW\n",
      "FixCharges=MaxLoad*C1 #in Rs.\n",
      "PlusCharges=(C2/100)*Energy #in rs.\n",
      "TotalTarrif=FixCharges+PlusCharges #in Rs.\n",
      "print \"Total Annual electricity charges = %0.2f Rs.\" %TotalTarrif"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Total Annual electricity charges = 16683.11 Rs.\n"
       ]
      }
     ],
     "prompt_number": 13
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Exa 11.5 - page 293"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from __future__ import division\n",
      "import numpy as np\n",
      "#Given Data :\n",
      "Energy=25*10**6 #in kwh\n",
      "MaxDemand=1600 #in KW\n",
      "#(i) Rs. 70/KW max demand plus 2 paise per kwh\n",
      "C1=70 #in Rs.year/KW\n",
      "C2=2 #in paisa/unit\n",
      "AnnualCost=MaxDemand*C1+(C2/100)*Energy #in Rs.\n",
      "print \"Case (i) Annual cost of energy = %0.f Rs.\" %AnnualCost\n",
      "#(ii) Annual cost at a flat rate of 5p/kwh\n",
      "C=5 #in paisa/kwh\n",
      "AnnualCost=(C/100)*Energy #in Rs.\n",
      "print \"Case (ii) Annual cost of energy = %0.f Rs.\" %AnnualCost"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Case (i) Annual cost of energy = 612000 Rs.\n",
        "Case (ii) Annual cost of energy = 1250000 Rs.\n"
       ]
      }
     ],
     "prompt_number": 15
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Exa 11.6 - page 293"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from __future__ import division\n",
      "import numpy as np\n",
      "#Given Data :\n",
      "MaxDemand=20 #in KW\n",
      "#(i) Rs. 180/KW/annum max demand plus 15 paise per unit\n",
      "#(ii) Flat rate tarrif 40 paise/unit\n",
      "C1=180 #in Rs.year/KW\n",
      "C2=15 #in paisa/unit\n",
      "#AnnualBill1=C1*MaxDemand+(C2/100)*x  x is the energy consumed\n",
      "C=40 #in paisa/unit\n",
      "#AnnualBill2=(C/100)*x  x is the energy consumed\n",
      "#Puting two bills equal gives :\n",
      "x=C1*MaxDemand/((C/100)-(C2/100)) #in kwh\n",
      "print \"No. of units to be consumed is %d or %d kwh\" %(x,x)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "No. of units to be consumed is 14400 or 14400 kwh\n"
       ]
      }
     ],
     "prompt_number": 16
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Exa 11.7 - page 294"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from __future__ import division\n",
      "import numpy as np\n",
      "#Given Data :\n",
      "MaxDemand=500 #in KW\n",
      "LoadFactor=70 #in %/year\n",
      "LoadFactor=70/100 #in fraction\n",
      "cosfi=0.8 #unitless\n",
      "#(i) Rs. 80/KVA of max demand\n",
      "#(ii) Running chargeare  5 paise/kwh\n",
      "C1=80 #in Rs./KVA\n",
      "C2=5 #in paisa/kwh\n",
      "AvgLoad=MaxDemand*LoadFactor #in KW\n",
      "h=365*24 #no. of hours per year\n",
      "Energy=AvgLoad*h #in kwh\n",
      "MaxDemandKVA=MaxDemand/cosfi #in KVA\n",
      "AnnualBill=MaxDemandKVA*C1+(C2/100)*Energy #in RS\n",
      "print \"Annual bill of consumer = %0.f Rs.\" %AnnualBill"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Annual bill of consumer = 203300 Rs.\n"
       ]
      }
     ],
     "prompt_number": 18
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Exa 11.8 - page 294"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from __future__ import division\n",
      "import numpy as np\n",
      "#Given Data :\n",
      "MD=100 #in KW\n",
      "LF=60 #in %/year\n",
      "LF=60/100 #in fraction\n",
      "#Tarrif Rs. 100/KW of max demand and Rs. 1/kwh\n",
      "C1=100 #in Rs./KW\n",
      "C2=1 #in Rs./kwh\n",
      "h=365*24*12 #no. of hours\n",
      "UnitsConsumed=MD*LF*h #in kwh/year\n",
      "AnnualCharges=C1*MD+C2*UnitsConsumed #in RS\n",
      "print \"Overall Annual chrges = %0.f Rs.\" %AnnualCharges"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Overall Annual chrges = 6317200 Rs.\n"
       ]
      }
     ],
     "prompt_number": 20
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Exa 11.9 - page 294"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from __future__ import division\n",
      "import numpy as np\n",
      "#Given Data :\n",
      "MD=250 #in KW\n",
      "PF=0.8 #power factor\n",
      "cosfi=PF #unitless\n",
      "Energy=50000 #in units/annum\n",
      "#Tarrif Rs. 50/KVA of max demand and 0.25paisa/unit\n",
      "C1=50 #in Rs./KW\n",
      "C2=0.25 #in Paise/kwh\n",
      "MDKVA=MD/cosfi #in KVA\n",
      "AnnualBill1=C1*MDKVA+C2*Energy #in RS\n",
      "print \"Annuall bill of industry = %0.f Rs.\" %AnnualBill1\n",
      "#Note : If consumer raised the PF to unity.\n",
      "PF=1 #power factor\n",
      "cosfi=PF #unitless\n",
      "MDKVA=MD/cosfi #in KVA\n",
      "AnnualBill2=C1*MDKVA+C2*Energy #in RS\n",
      "print \"Saving by consumer in the bill = %0.f Rs.\"%(AnnualBill1-AnnualBill2)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Annuall bill of industry = 28125 Rs.\n",
        "Saving by consumer in the bill = 3125 Rs.\n"
       ]
      }
     ],
     "prompt_number": 22
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Exa 11.10 - page 295"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from __future__ import division\n",
      "import numpy as np\n",
      "#Given Data :\n",
      "MD=10 #in KW\n",
      "Energy=50000 #in kwh/year(Annual consumption)\n",
      "#(i) Rs. 100/KW/year max demand plus Rs. 0.20 paise per unit\n",
      "#(ii) Simple tarrif 0.30 Rs./unit\n",
      "C1=100 #in Rs.year/KW\n",
      "C2=0.20 #in Rs. /unit\n",
      "#Case (i)\n",
      "AnnualBill1=C1*MD+C2*Energy #in Rs.\n",
      "print \"Case(i) Annual Bill of tarrif 1 = %0.f Rs.\" %AnnualBill1\n",
      "C=0.30 #in Rs. /unit\n",
      "AnnualBill2=C*Energy #in Rs.\n",
      "print \"Case(ii) Annual Bill of tarrif 2 = %0.f Rs.\" %AnnualBill2\n",
      "print \"He must choose the first tarrif.\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Case(i) Annual Bill of tarrif 1 = 11000 Rs.\n",
        "Case(ii) Annual Bill of tarrif 2 = 15000 Rs.\n",
        "He must choose the first tarrif.\n"
       ]
      }
     ],
     "prompt_number": 25
    }
   ],
   "metadata": {}
  }
 ]
}