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
|
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Chapter 9: Power Conversation and Motor Drive Operations"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Example 9.1,Page 457"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"peak voltage is 37.6 V\n",
"load voltage is 35.7 V\n",
"ripple voltage is 3.96 V\n",
"approx. load voltage is 35.62 V\n"
]
}
],
"source": [
"#finding peak,load,ripple voltages\n",
"\n",
"#initialisation of variable\n",
"from math import pi,tan,sqrt,sin,cos,acos,atan\n",
"V=28.0;#V\n",
"C=4700.0;#microF\n",
"R=16.0;#load\n",
"f=120.0;#hertz\n",
"\n",
"#calculation\n",
"Vp=V*2**.5-2;\n",
"Vd=0.95*Vp;\n",
"Id=Vd/R;\n",
"v=Id/f/C;\n",
"#approximation\n",
"Vd1=Vp-v*1e6/2;\n",
"\n",
"#result\n",
"print \"peak voltage is\",round(Vp,2), \"V\"\n",
"print \"load voltage is\",round(Vd,1), \"V\"\n",
"print \"ripple voltage is\",round(v*1e6,2), \"V\"\n",
"print \"approx. load voltage is\",round(Vd1,2), \"V\""
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 9.2,Page 459"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Zth is 1.0 + 1.0 in ohm\n",
"inductor is 2.65 mH\n"
]
}
],
"source": [
"#finding inductor,Zth\n",
"\n",
"#initialisation of variable\n",
"from math import pi,tan,sqrt,sin,cos,acos,atan\n",
"V1=120.0;#pri voltage\n",
"V2=28.0;#sec voltage\n",
"I=2.0;#pri current\n",
"f=60.0;#Hz\n",
"Vth=28.8;#open voltage\n",
"V3=12.1;#pri-short voltage\n",
"Is=2.0;#short current at 45 degree\n",
"\n",
"#calculation\n",
"Zi=(V2*V3)/V1/Is*cos(45*pi/180);\n",
"Zj=(V2*V3)/V1/Is*sin(45*pi/180);\n",
"L=Zi/(2*pi*f);\n",
"\n",
"#result\n",
"print'Zth is',round(Zi),'+',round(Zj),'in ohm'\n",
"print \"inductor is\",round(L*1000,2), \"mH\""
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Example 9.4,Page 463"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"power factor is 0.32\n"
]
}
],
"source": [
"#finding power factor\n",
"\n",
"#initialisation of variable\n",
"from math import pi,tan,sqrt,sin,cos,acos,atan\n",
"I1=1.8;#current\n",
"R=16.0;#resistance\n",
"I2=5.7;#A\n",
"V=28.8;#Voltage\n",
"\n",
"#calculation\n",
"P=I1**2*R;\n",
"S=I2*V;\n",
"Pf=P/S;\n",
"\n",
"#result\n",
"print \"power factor is\",round(Pf,2)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Example 9.5, Page 468"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"aparrent power is 8.14 kVA\n",
"dissipated power is 7.84 kW\n",
"power factor is 0.96\n"
]
}
],
"source": [
"#finding power factor\n",
"\n",
"#initialisation of variable\n",
"from math import pi,tan,sqrt,sin,cos,acos,atan\n",
"I=22.6;#current\n",
"I2=28.00;\n",
"V=120.0;#Voltage\n",
"V2=280.0;\n",
"\n",
"#calculation\n",
"Pt=3*I*V;\n",
"Pl=I2*V2;\n",
"Pf=Pl/Pt;\n",
"\n",
"#result\n",
"print \"aparrent power is\",round(Pt/1000,2),\"kVA\"\n",
"print \"dissipated power is\",round(Pl/1000,2),\"kW\"\n",
"print \"power factor is\",round(Pl/Pt,2)\n",
"\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Example 9.6,Page 474"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"ratio is 0.72\n",
"firing angle is 58 degrees\n",
"dc voltage is 148.85 V\n",
"time delay is 2.69 ms\n"
]
}
],
"source": [
"#finding firing angle, time delay,Vd\n",
"\n",
"#initialisation of variable\n",
"from math import pi,tan,sqrt,sin,cos,acos,atan\n",
"V=208.0;#voltage\n",
"R=100.0;#load\n",
"Vd=150.0;#V\n",
"\n",
"#calculation\n",
"r=Vd/V;\n",
"a=58;#degree\n",
"Vd=3*2**.5*208*(cos(pi/3+a*pi/180)-cos(2*pi/3+a*pi/180))/pi;\n",
"t=a*16.7/360;\n",
"\n",
"#result\n",
"print \"ratio is\",round(r,2)\n",
"print('firing angle is 58 degrees');\n",
"print \"dc voltage is\",round(Vd,2), \"V\"\n",
"print \"time delay is\",round(t,2), \"ms\""
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Example 9.7,Page 480"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"max. current is 41.67 A\n",
"dissipated power is 8.68 W\n"
]
}
],
"source": [
"#finding maximum current and power dissipated\n",
"\n",
"#initialisation of variable\n",
"from math import pi,tan,sqrt,sin,cos,acos,atan\n",
"P=150.0;#power\n",
"V=8.0;#voltage\n",
"R=.01;#resistance\n",
"D=.5;#duty cycle\n",
"\n",
"#calculation\n",
"I=P/.9/D/V;\n",
"Ir=I*D**.5;\n",
"Pq=Ir**2*R;\n",
"\n",
"#result\n",
"print \"max. current is\",round(I,2), \"A\"\n",
"print \"dissipated power is\",round(Pq,2),\"W\""
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Example 9.8,Page 489"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"pwm fundamental frequency is 30.72 kHz\n",
"output voltage is 9.46 V\n"
]
}
],
"source": [
"#finding fundamental frequency and output voltage\n",
"\n",
"#initialisation of variable\n",
"from math import pi,tan,sqrt,sin,cos,acos,atan\n",
"f1=60.0;#frequency\n",
"V=150.0;#voltage\n",
"f2=31.0;#kHz\n",
"\n",
"#calculation\n",
"f3=f1*4;\n",
"Vo=V*10**(-4.2);\n",
"\n",
"#result\n",
"print \"pwm fundamental frequency is\",round(f3*2**7/1000,2), \"kHz\"\n",
"print \"output voltage is\",round(Vo*1000,2), \"V\""
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Example 9.9,Page 491"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"average voltage is 127.32 V\n",
"\n",
"Va-d @ 200Vin=4.2V\n",
"\n",
"\n",
"pick R1=47kohm\n",
"current through dividers is 2.62 mA\n",
"R2 is 1.6 kohm\n",
"capacitor is 27.01 microF\n"
]
}
],
"source": [
"#finding resistances,capacitor,average voltage\n",
"\n",
"#initialisation of variable\n",
"from math import pi,tan,sqrt,sin,cos,acos,atan\n",
"V=120.0;#load voltage\n",
"f=60.0;#Hz\n",
"Vp=200.0;#V\n",
"Vd=5.0;#V\n",
"\n",
"\n",
"#calculation\n",
"Vdc=2*Vp/pi;\n",
"Va=4.2;\n",
"R1=47.0;\n",
"I=(Vdc-Va)/R1;\n",
"R2=Va/I;\n",
"K=1.0/(1/R1+1/R2)# R1 \\\\ R2\n",
"C=1.0/2/pi/3.8/K;\n",
"\n",
"#result\n",
"print \"average voltage is\",round(Vdc,2), \"V\"\n",
"print('\\nVa-d @ 200Vin=4.2V')\n",
"print('\\n\\npick R1=47kohm')\n",
"print \"current through dividers is\",round(I,2), \"mA\"\n",
"print \"R2 is\",round(R2,2), \"kohm\"\n",
"print \"capacitor is\",round(C*1000,2), \"microF\""
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.6"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
|