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
|
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter 09 : AC Voltage Controllers"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 9.1, Page No 560"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"#initialisation of variables\n",
"V_s=230.0\n",
"V_m=math.sqrt(2)*V_s\n",
"a=45.0\n",
"\n",
"#Calculations\n",
"V_or=(V_m/2)*math.sqrt(1/math.pi*((2*math.pi-a*math.pi/180)+math.sin(math.radians(2*a))/2)) \n",
"R=20\n",
"I_or=V_or/R\n",
"P_o=I_or**2*R \n",
"I_s=I_or\n",
"VA=V_s*I_s\n",
"pf=P_o/VA \n",
"V_o=math.sqrt(2)*V_s/(2*math.pi)*(math.cos(math.radians(a))-1)\n",
"I_ON=V_o/R \n",
"\n",
"#Results\n",
"print(\"rms value of o/p voltage=%.3f V\" %V_or)\n",
"print(\"load power=%.1f W\" %P_o)\n",
"print(\"i/p pf=%.4f\" %pf)\n",
"print(\"avg i/p current=%.4f A\" %I_ON)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"rms value of o/p voltage=224.716 V\n",
"load power=2524.9 W\n",
"i/p pf=0.9770\n",
"avg i/p current=-0.7581 A\n"
]
}
],
"prompt_number": 1
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 9.2, Page No 560"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"#initialisation of variables\n",
"V_s=230.0\n",
"V_m=math.sqrt(2)*V_s\n",
"a=45.0\n",
"\n",
"#Calculations\n",
"V_or=(V_s)*math.sqrt(1/math.pi*((math.pi-a*math.pi/180)+math.sin(math.radians(2*a))/2)) \n",
"R=20\n",
"I_or=V_or/R\n",
"P_o=I_or**2*R \n",
"I_s=I_or\n",
"VA=V_s*I_s\n",
"pf=P_o/VA \n",
"I_TA=math.sqrt(2)*V_s/(2*math.pi*R)*(math.cos(math.radians(a))+1) \n",
"I_Tr=math.sqrt(2)*V_s/(2*R)*math.sqrt(1/math.pi*((math.pi-a*math.pi/180)+math.sin(math.radians(2*a))/2)) \n",
"\n",
"#Results\n",
"print(\"rms value of o/p voltage=%.3f V\" %V_or)\n",
"print(\"load power=%.2f W\" %P_o)\n",
"print(\"i/p pf=%.2f\" %pf)\n",
"print(\"avg thyristor current=%.2f A\" %I_TA) \n",
"print(\"rms value of thyristor current=%.2f A\" %I_Tr)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"rms value of o/p voltage=219.304 V\n",
"load power=2404.71 W\n",
"i/p pf=0.95\n",
"avg thyristor current=4.42 A\n",
"rms value of thyristor current=7.75 A\n"
]
}
],
"prompt_number": 2
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 9.3 Page No 564"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"#initialisation of variables\n",
"V_s=230.0\n",
"n=6.0 #on cycles\n",
"m=4.0 #off cycles\n",
"\n",
"#Calculations\n",
"k=n/(n+m)\n",
"V_or=V_s*math.sqrt(k) \n",
"pf=math.sqrt(k) \n",
"R=15\n",
"I_m=V_s*math.sqrt(2)/R\n",
"I_TA=k*I_m/math.pi\n",
"I_TR=I_m*math.sqrt(k)/2 \n",
" \n",
"#Results\n",
"print(\"rms value of o/ voltage=%.2f V\" %V_or)\n",
"print(\"i/p pf=%.2f\" %pf)\n",
"print(\"avg thyristor current=%.2f A\" %I_TA) \n",
"print(\"rms value of thyristor current=%.2f A\" %I_TR)\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"rms value of o/ voltage=178.16 V\n",
"i/p pf=0.77\n",
"avg thyristor current=4.14 A\n",
"rms value of thyristor current=8.40 A\n"
]
}
],
"prompt_number": 3
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 9.4, Page No 569"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"#initialisation of variables\n",
"V_s=230.0\n",
"V_m=math.sqrt(2)*V_s\n",
"R=3.0\n",
"\n",
"#Calculations\n",
"I_TAM1=2*V_m/(2*math.pi*R) \n",
"I_TRM2=V_m/(2*R) \n",
"f=50\n",
"w=2*math.pi*f\n",
"t_c=math.pi/w \n",
" \n",
"#Results\n",
"print(\"max value of avg thyristor current=%.3f A\" %I_TAM1)\n",
"print(\"max value of avg thyristor current=%.3f A\" %I_TRM2)\n",
"print(\"ckt turn off time=%.0f ms\" %(t_c*1000))"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"max value of avg thyristor current=34.512 A\n",
"max value of avg thyristor current=54.212 A\n",
"ckt turn off time=10 ms\n"
]
}
],
"prompt_number": 4
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 9.5 Page No 575"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"#initialisation of variables\n",
"R=3.0\n",
"X_L=4.0\n",
"\n",
"#Calculations\n",
"phi=math.degrees(math.atan(X_L/R)) \n",
"V_s=230\n",
"Z=math.sqrt(R**2+X_L**2)\n",
"I_or=V_s/Z \n",
"P=I_or**2*R \n",
"I_s=I_or\n",
"pf=P/(V_s*I_s) \n",
"I_TAM=math.sqrt(2)*V_s/(math.pi*Z) \n",
"I_Tm=math.sqrt(2)*V_s/(2*Z) \n",
"f=50\n",
"w=2*math.pi*f\n",
"di=math.sqrt(2)*V_s*w/Z \n",
"\n",
"#Results\n",
"print(\"min firing angle=%.2f deg\" %phi)\n",
"print(\"\\nmax firing angle=%.0f deg\" %180)\n",
"print(\"i/p pf=%.1f\" %pf)\n",
"print(\"max value of rms load current=%.0f A\" %I_or)\n",
"print(\"max power=%.0f W\" %P)\n",
"print(\"max value of avg thyristor current=%.3f A\" %I_TAM)\n",
"print(\"max value of rms thyristor current=%.3f A\" %I_Tm)\n",
"print(\"di/dt=%.0f A/s\" %di)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"min firing angle=53.13 deg\n",
"\n",
"max firing angle=180 deg\n",
"i/p pf=0.6\n",
"max value of rms load current=46 A\n",
"max power=6348 W\n",
"max value of avg thyristor current=20.707 A\n",
"max value of rms thyristor current=32.527 A\n",
"di/dt=20437 A/s\n"
]
}
],
"prompt_number": 5
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 9.6 Page No 576"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"#initialisation of variables\n",
"V=230.0\n",
"R=3.0 #ohm\n",
"X_L=5.0 #ohm\n",
"a=120.0 #firing angle delay\n",
"\n",
"#Calculations\n",
"phi=math.degrees(math.atan(X_L/R))\n",
"b=0\n",
"i=1\n",
"while (i>0) :\n",
" LHS=math.sin(math.radians(b-a))\n",
" RHS=math.sin(math.radians(a-phi))*math.exp(-(R/X_L)*(b-a)*math.pi/180)\n",
" if math.fabs(LHS-RHS)<= 0.01 :\n",
" B=b\n",
" i=2\n",
" break\n",
" \n",
" b=b+.1 \n",
"V_or=math.sqrt(2)*V*math.sqrt((1/(2*math.pi))*((B-a)*math.pi/180+(math.sin(math.radians(2*a))-math.sin(math.radians(2*B)))/2))\n",
"\n",
"\n",
"#Results\n",
"print(\"Extinction angle=%.1f deg\" %B) #answer in the book is wrong as formulae for RHS is wrongly employed\n",
"print(\"rms value of output voltage=%.2f V\" %V_or) #answer do not match due to wrong B in book\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Extinction angle=156.1 deg\n",
"rms value of output voltage=97.75 V\n"
]
}
],
"prompt_number": 6
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 9.8, Page No 581"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"#initialisation of variables\n",
"V_s=230.0\n",
"V_m=math.sqrt(2)*V_s\n",
"a=60.0\n",
"R=20.0\n",
"\n",
"#Calculations\n",
"V_or=math.sqrt((V_m**2/(2*math.pi))*(a*math.pi/180-math.sin(math.radians(2*a))/2)+(2*V_m**2/(math.pi))*(math.pi-a*math.pi/180+math.sin(math.radians(2*a))/2)) \n",
"I_T1r=(V_m/R)*math.sqrt(1/math.pi*((math.pi-a*math.pi/180)+math.sin(math.radians(2*a))/2)) \n",
"I_T3r=(V_m/(2*R))*math.sqrt(1/math.pi*((a*math.pi/180)-math.sin(math.radians(2*a))/2)) \n",
"I1=math.sqrt(2)*I_T1r\n",
"I3=math.sqrt((math.sqrt(2)*I_T1r)**2+(math.sqrt(2)*I_T3r)**2)\n",
"r=V_s*(I1+I3) \n",
"P_o=V_or**2/R\n",
"pf=P_o/r \n",
"\n",
"#Results\n",
"print(\"rms value of o/p voltage=%.2f V\" %V_or)\n",
"print(\"rms value of current for upper thyristors=%.2f A\" %I_T1r)\n",
"print(\"rms value of current for lower thyristors=%.2f A\" %I_T3r)\n",
"print(\"t/f VA rating=%.2f VA\" %r)\n",
"print(\"i/p pf=%.2f\" %pf)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"rms value of o/p voltage=424.94 V\n",
"rms value of current for upper thyristors=14.59 A\n",
"rms value of current for lower thyristors=3.60 A\n",
"t/f VA rating=9631.61 VA\n",
"i/p pf=0.94\n"
]
}
],
"prompt_number": 7
}
],
"metadata": {}
}
]
}
|