summaryrefslogtreecommitdiff
path: root/Electric_Power_Distribution_System_Engineering_by_T._Gonen/ch5_1.ipynb
blob: 65d25e8a6327f982a2bcf252dce6d5e12db2cb61 (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
{
 "metadata": {
  "name": "",
  "signature": "sha256:b2ff16e1aeeea980b2eb9e21bf5ebcd0fe195cb024eff9d74d8ab7ee94189858"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 5 : Design Considerations of Primary Systems"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 5.1  Page No : 254"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math \n",
      "from numpy import exp,sqrt\n",
      "\n",
      "# Variables\n",
      "Z = 0.1+(0.1*1j);         #Feeder Impedance per unit\n",
      "R = Z.real;         #Resismath.tance\n",
      "X = Z.imag;         #Reacmath.tance\n",
      "Vs = 1.;         #Sending End Voltage\n",
      "Pr = 1.;         #Consmath.tant Power Load\n",
      "pfr = 0.8;         #Power Factor at recieving end\n",
      "tr = math.acos(pfr);         #Power FActor angle\n",
      "\n",
      "# Calculations\n",
      "def angle(y): \n",
      "    return math.degrees(math.atan(y.imag/y.real))\n",
      "\n",
      "K = (Vs**2)-(2*Pr*(R+(X*(math.atan(tr)))));\n",
      "\n",
      "Vr = math.sqrt((K/2)*(1+math.sqrt(1-((2*abs(Z)*Pr/(K*pfr))**2))));         #Recieving End Voltage\n",
      "C = Pr*(X-(R*math.degrees(math.atan(tr))))/((Vr**2)+(Pr*(R+(X*math.degrees(math.atan(tr))))));\n",
      "\n",
      "del1 = math.degrees(math.atan(C));\n",
      "\n",
      "Ir = (Pr/(abs(Vr)*pfr))*exp(-1*math.pi*1j*tr/180)         #Recieving End Current\n",
      "Is = Ir;         #Sending End Current\n",
      "Tir = angle(Ir);\n",
      "\n",
      "Vr1 = Vs-(Z*Ir);\n",
      "\n",
      "# Results\n",
      "print 'a) Vr is %g/_%g pu, del is %g degrees, Ir  =  Is  =  %g/_%g pu'%(abs(Vr.real),angle(Vr),del1,abs(Ir),Tir)\n",
      "print 'b) Vr is %g/_%g pu, which is almost equal to the previous case.'%(Vr1.real,angle(Vr1))\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "a) Vr is 0.79784/_0 pu, del is -38.3625 degrees, Ir  =  Is  =  1.56673/_-0.643501 pu\n",
        "b) Vr is 0.841577/_-10.4293 pu, which is almost equal to the previous case.\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 5.2  Page No : 259"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math \n",
      "\n",
      "# Variables\n",
      "Sl = 518.;         #Total Load on Lateral\n",
      "Sm = 1036.;         #Total Load on Main\n",
      "Vll = 4.16;         #Line to Line voltage\n",
      "\n",
      "# Calculations\n",
      "#Currents in the respective current\n",
      "Ilateral = Sl/(math.sqrt(3)*Vll);\n",
      "Imain = Sm/(math.sqrt(3)*Vll);\n",
      "\n",
      "C = 5280.;         #Length Consmath.tant\n",
      "Ll = 5760./C;         #Lateral Length\n",
      "Lm = 3300./C;         #Main Length\n",
      "\n",
      "#Consmath.tant for the cables\n",
      "Kl = 0.015;\n",
      "Km = 0.01;\n",
      "\n",
      "#Voltage Drop Percents for 3 phase\n",
      "VDlateral3 = Ll*Kl*Sl/2;\n",
      "VDmain3 = Lm*Km*Sm;\n",
      "TVD3 = VDmain3+VDlateral3;\n",
      "#Voltage Drop Percents for 1 phase according to Morrisoncfor laterals\n",
      "VDlateral1 = VDlateral3*4;\n",
      "VDmain1 = VDmain3;\n",
      "TVD1 = VDlateral1+VDmain1;\n",
      "\n",
      "\n",
      "#CASE B\n",
      "#To meet the maximum primary voltage drop criterion of 4.00 percent\n",
      "#Conductors with ampacities of 480A and 270A for Main and laterals\n",
      "\n",
      "#Consmath.tants from the table\n",
      "Klb = 0.006;\n",
      "Kmb = 0.003;\n",
      "\n",
      "#Voltage Drop Percents\n",
      "VDlateralb = Ll*Klb*Sl/2;\n",
      "VDmainb = Lm*Kmb*Sm;\n",
      "TVDb = VDmainb+VDlateralb;\n",
      "\n",
      "# Results\n",
      "print 'a The percent voltage drops at :'\n",
      "print 'i 3Phase'\n",
      "print 'Lateral End is %g percent'%(VDlateral3)\n",
      "print 'Main End is %g percent'%(VDmain3)\n",
      "print 'ii 1Phase'\n",
      "print 'Lateral End is %g percent'%(VDlateral1)\n",
      "print 'Main End is %g percent'%(VDmain1)\n",
      "print 'b) Conductors with Ampacities of 480A and 270A are used to find the Percent voltage drop of the \\\n",
      "Main and Lateral as %g percent and %g percent respectively'%(VDmainb,VDlateralb)\n",
      "print 'The Above Drops meet the required criterion of 4 percent voltage drop'\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "a The percent voltage drops at :\n",
        "i 3Phase\n",
        "Lateral End is 4.23818 percent\n",
        "Main End is 6.475 percent\n",
        "ii 1Phase\n",
        "Lateral End is 16.9527 percent\n",
        "Main End is 6.475 percent\n",
        "b) Conductors with Ampacities of 480A and 270A are used to find the Percent voltage drop of the Main and Lateral as 1.9425 percent and 1.69527 percent respectively\n",
        "The Above Drops meet the required criterion of 4 percent voltage drop\n"
       ]
      }
     ],
     "prompt_number": 6
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 5.3  Page No : 263"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math \n",
      "\n",
      "# Variables\n",
      "#Terms taken from Example two\n",
      "Il = 72.; \n",
      "Im = 144.; \n",
      "C = 5280.;         #Length Consmath.tant\n",
      "Ll = 5760./C;         #Lateral Length\n",
      "Lm = 3300./C;         #Main Length\n",
      "\n",
      "#From Tables\n",
      "#Lateral\n",
      "rl = 4.13;         #Resismath.tance per mile\n",
      "xLl = 0.258;         #Reacmath.tance per mile\n",
      "#Main\n",
      "rm = 1.29;         #Resismath.tance per mile\n",
      "xLm = 0.211;        #Reacmath.tance per mile\n",
      "pf = 0.9;         #Power Factor\n",
      "\n",
      "Vb = 2400.;         #Base Voltage\n",
      "\n",
      "# Calculations\n",
      "#Voltage Drops\n",
      "VDlateral = Il*((rl*pf)+(xLl*math.sin(math.radians(math.acos(pf)))))*Ll/2; \n",
      "VDmain = Im*((rm*pf)+(xLm*math.sin(math.radians(math.acos(pf)))))*Lm;\n",
      "\n",
      "#Percent Voltage Drop\n",
      "perVDlateral = VDlateral*100/Vb;\n",
      "perVDmain = VDmain*100/Vb;\n",
      "\n",
      "TVD = perVDlateral+perVDmain;         #Total Percent Voltage drop\n",
      "\n",
      "#Case B\n",
      "#Conductors With Ampacities of 268A and 174A for Main and Laterals\n",
      "#From Tables\n",
      "#Lateral\n",
      "rlb = 1.03;         #Resismath.tance per mile\n",
      "xLlb = 0.207;         #Reacmath.tance per mile\n",
      "#Main\n",
      "rmb = 0.518;         #Resismath.tance per mile\n",
      "xLmb = 0.191;        #Reacmath.tance per mile\n",
      "\n",
      "Vb = 2400;         #Base Voltage\n",
      "#Voltage Drops\n",
      "VDlateralb = Il*((rlb*pf)+(xLlb*math.sin(math.radians(math.acos(pf)))))*Ll/2; \n",
      "VDmainb = Im*((rmb*pf)+(xLmb*math.sin(math.radians(math.acos(pf)))))*Lm;\n",
      "\n",
      "#Percent Voltage Drop\n",
      "perVDlateralb = VDlateralb*100/Vb;\n",
      "perVDmainb = VDmainb*100/Vb;\n",
      "\n",
      "TVDb = perVDlateralb+perVDmainb;         #Total Percent Voltage drop\n",
      "\n",
      "# Results\n",
      "print 'a The percent voltage drops at :'\n",
      "print 'Lateral End is %g percent'%(perVDlateral)\n",
      "print 'Main End is %g percent'%(perVDmain)\n",
      "\n",
      "print 'b) Conductors with Ampacities of 278A and 174A are used to find the Percent voltage drop of \\\n",
      "the Main and Lateral as %g percent and %g percent respectively'%(perVDmainb,perVDlateralb)\n",
      "print 'The Above Drops meet the required criterion of 4 percent voltage drop'\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "a The percent voltage drops at :\n",
        "Lateral End is 6.08569 percent\n",
        "Main End is 4.35998 percent\n",
        "b) Conductors with Ampacities of 278A and 174A are used to find the Percent voltage drop of the Main and Lateral as 1.75389 percent and 1.51958 percent respectively\n",
        "The Above Drops meet the required criterion of 4 percent voltage drop\n"
       ]
      }
     ],
     "prompt_number": 7
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 5.4  Page No : 265"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math \n",
      "\n",
      "# Variables\n",
      "Sl = 518.;         #Total Load on Lateral\n",
      "Sm = 5180.;         #Total Load on Main\n",
      "Vll = 12.47;         #Line to Line voltage\n",
      "\n",
      "#Currents in the respective current\n",
      "Ilateral = Sl/(math.sqrt(3)*Vll);\n",
      "Imain = Sm/(math.sqrt(3)*Vll);\n",
      "\n",
      "C = 5280.;         #Length Consmath.tant\n",
      "Ll = 5760./C;         #Lateral Length\n",
      "Lm = 3300./C;         #Main Length\n",
      "\n",
      "#Consmath.tant for the cables\n",
      "Km = 0.0008;\n",
      "Kl = 0.00175;\n",
      "\n",
      "# Calculations\n",
      "#Voltage Drop Percents for 3 phase\n",
      "VDlateral = Ll*Kl*Sl/2;\n",
      "\n",
      "#Due to peculiarity of this new problem, one half of the main has to considered as express feeder and the other connected to a uniformly distributed load of 5180kVA\n",
      "VDmain = Lm*Km*Sm*3/4;\n",
      "TVD = VDmain+VDlateral;\n",
      "\n",
      "#Since the inductive reacmath.tance of the line is\n",
      "Cd = 12.;         #Consmath.tant to find the dismath.tance in terms of feet\n",
      "\n",
      "#Diameters of the Conductors\n",
      "Dmi = 37.;\n",
      "Dmn = 53.;\n",
      "\n",
      "#Drops per mile\n",
      "xdi = 0.1213*math.log(Dmi/Cd);\n",
      "xdn = 0.1213*math.log(Dmn/Cd);\n",
      "\n",
      "Dxd = xdn-xdi;         #Difference in Drops\n",
      "\n",
      "# Results\n",
      "print 'a The percent voltage drops at :'\n",
      "print 'Lateral End is %g percent'%(VDlateral)\n",
      "print 'Main End is %g percent'%(VDmain)\n",
      "\n",
      "print 'b The Above Drops meet the required criterion of 4 percent voltage drop'\n",
      "print 'c) The Difference in Voltage drop is %g ohm/mile, which is a smaller VD valuue that it really is.'%(Dxd)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "a The percent voltage drops at :\n",
        "Lateral End is 0.494455 percent\n",
        "Main End is 1.9425 percent\n",
        "b The Above Drops meet the required criterion of 4 percent voltage drop\n",
        "c) The Difference in Voltage drop is 0.0435921 ohm/mile, which is a smaller VD valuue that it really is.\n"
       ]
      }
     ],
     "prompt_number": 9
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 5.5  Page No : 268"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math \n",
      "\n",
      "# Variables\n",
      "Vb = 7200.;         #Base Voltage in V\n",
      "pf = 0.9;         #Power Factor\n",
      "Sm = 10360.;         #Load on Main Feeder in kVA\n",
      "Vll = 12.47;         #Line to Line voltage in kV\n",
      "Imain = Sm/(math.sqrt(3)*Vll);         #Current in Main Feeder\n",
      "\n",
      "#Note Suffix l means lateral and m means main\n",
      "\n",
      "Vph = 7.2;         #Phase Voltage in kV\n",
      "Sl = 2*518.;         #Load on Lateral Feeder in kVA\n",
      "Ilateral = Sl/Vph;         #Current in Laterals\n",
      "\n",
      "#Length of the Feeder\n",
      "#Length Consmath.tant\n",
      "Cm = 5280.;         #Main\n",
      "Cl = 1000.;         #Lateral\n",
      "Ll = 5760./Cl;         #Lateral Length\n",
      "Lm = 3300./Cm;         #Main Length\n",
      "\n",
      "#Consmath.tants for the particular cables from the tables\n",
      "rl = 0.331;\n",
      "xLl = 0.0300;\n",
      "rm = 0.342;\n",
      "xam = 0.458;\n",
      "xdm = 0.1802;\n",
      "xLm = xam+xdm;\n",
      "\n",
      "# Calculations\n",
      "#Voltage Drops for Normal Condition\n",
      "VDmainn = (Imain/2)*((rm*pf)+(xLm*math.sin(math.radians(math.acos(pf)))))*Lm/2;\n",
      "VDlateraln = (Ilateral/2)*((rl*pf)+(xLl*math.sin(math.radians(math.acos(pf)))))*Ll/2;\n",
      "\n",
      "perVDmainn = VDmainn*100/Vb;\n",
      "perVDlateraln = VDlateraln*100/Vb;\n",
      "\n",
      "TVDn = perVDmainn+perVDlateraln;\n",
      "\n",
      "#Voltage Drops for Worst Conditions\n",
      "VDmainw = (Imain)*((rm*pf)+(xLm*math.sin(math.radians(math.acos(pf)))))*Lm/2;\n",
      "VDlateralw = (Ilateral)*((rl*pf)+(xLl*math.sin(math.radians(math.acos(pf)))))*Ll;\n",
      "\n",
      "perVDmainw = VDmainw*100/Vb;\n",
      "perVDlateralw = VDlateralw*100/Vb;\n",
      "\n",
      "TVDw = perVDmainw+perVDlateralw;\n",
      "\n",
      "# Results\n",
      "print 'a)From Table A5, 300-kcmilACSR conductors, with 500A Ampacity is used for mainand AWG         #2 XLPE Al\\\n",
      " URD cable with 168A Ampacity'\n",
      "print 'b) The Total Voltage Drop in Percent for Normal Operation is %g percent'%(TVDn)\n",
      "print 'c) The Total Voltage Drop in Percent for Worst Condition is %g percent'%(TVDw)\n",
      "print 'd The Voltage drop is met for Normal operation and NOT for emergency operation'\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "a)From Table A5, 300-kcmilACSR conductors, with 500A Ampacity is used for mainand AWG         #2 XLPE Al URD cable with 168A Ampacity\n",
        "b) The Total Voltage Drop in Percent for Normal Operation is 1.1836 percent\n",
        "c) The Total Voltage Drop in Percent for Worst Condition is 4.08313 percent\n",
        "d The Voltage drop is met for Normal operation and NOT for emergency operation\n"
       ]
      }
     ],
     "prompt_number": 10
    }
   ],
   "metadata": {}
  }
 ]
}