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
|
{
"metadata": {
"name": "",
"signature": "sha256:a22e1723285478b613c9e93f05f8b7152fa3f22e73d3c58b27e1a2cccb6de797"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter9, Power factor improvement"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 9.4.3: page 9-15"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"from numpy import array, nditer\n",
"from math import pi, cos\n",
"from __future__ import division\n",
"#plot the varaition of average load voltage with firing angle\n",
"alpha=array([0, 30, 60, 90]) #firing angle in degree\n",
"ea=array([(2/pi)*cos(pi/180*alpha[0]), (2/pi)*cos(pi/180*alpha[1]), (2/pi)*cos(pi/180*alpha[2]), (2/pi)*cos(pi/180*alpha[3])])\n",
"#############PLOT###########\n",
"%matplotlib inline\n",
"import matplotlib.pyplot as plt\n",
"plt.plot(alpha,ea) #\n",
"plt.ylabel(\"Average load voltage(in terms of Vm)\")\n",
"plt.xlabel(\"Firing angle (alpha)\")\n",
"plt.title(\"Variation of Ea Vs alpha for SAC\")\n",
"plt.show()"
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "display_data",
"png": "iVBORw0KGgoAAAANSUhEUgAAAYQAAAEZCAYAAACXRVJOAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XeYVOXZx/HvzQICiiKKgCABFVSUqhSluJYoGiNRkyC2\nqImSGKNpRo1RNxpfYxJr7CV2xdh7i7qgRlGkiBGiRrGhiAUsiAjc7x/PGXYYZ3fPzM7ZM7v7+1zX\nXMypc+/sMs/cTzV3R0REpFXaAYiISHlQgSAiIoAKBBERiahAEBERQAWCiIhEVCCIiAigAkFqYWaf\nmVnvIq890MweLm1EsV53lJm9GsW+d2O/fhLMbJWZbVrqc2Pcq9m9l1I/FQjNgJk9ZGZ/zLN/vJm9\nZ2YF/57dvaO7z4/x2r2jD6LVr+HuN7r77oW+ZgmcBlwQxX5P7kEzm29mS6MPuczjgkJfxMzmmdlh\nefYfa2bPFxl7uanzvSyUmfU0s9vNbJGZLTazOWb2ozznVZvZx2bWNs+xA8xsevR7W2BmD5jZqIbG\nJjVUIDQP1wAH5dl/MHCDu6+KeyMza11kDFbkdaXUC3i5juMO7BV9yGUexxTxOtcAh+TZf3B0rDmo\n772slZlV5Nl9PfBmdN/OhPdqYc51vYHhwAfA3jnHfg2cC/wJ2AjYBLgo9zxpIHfXo4k/gPbAYmBM\n1r71gS+BAYT/ZM8AnwALgL8DbbLOXQUcBbwK/C9r36bR8+8AM4ElwFvAqVnXvhWd+xnwKTASOBR4\nMuucHYDnoxifA7bPOlZN+Db6VHT9w8AGdfysR0RxfgTcDXSP9v8PWAksje7TJs+1bwA713LfzYDH\ngQ+BRcANwHq1nNsT+BrolbWvP/AV0DnaPjSK6VPgdeCAWu4V53eT+T1cA1wKPBLdtzonhlXAJOCV\n6H4XFvnzfeO9B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7OMngr8\nX55rALYhrOuwPXBKNGFZ5n7Z8WayqAvdfbiHhVzaR7O/ZsyM7iMCqMpIysOXeaqMsj3n7m/WcWwB\ngIV1GPoQVtV6Peuam4Ej81zbFrjQzAYRpgruW6L77gpsFeY9A6CjmXVw96VZ53wLeC9ruxNwnZlt\nTihk2uS5rwN3u/tXwFdm9gRhltTFeeLtDTxNmN31OMKCRZ0Jc93cF91vQXSeCKACQZqGL+o49lXW\n85WEv+ncb+1510EAfgW85+4HW1iydVmJ7mvACHdfXkfcnnP96cBj7r6PmX0LqK7j2myZRX9y462I\nMpqLgG3d/V0zOxVolxOnJjOT1VRlJM2NE6piNo0+WCFMnZ7vg29d4P3o+SGEtXFLcd9HgGMyG2Y2\nOM85bxKWNMyOZUH0/LBaYjBgvIUF3TcAKgkzk9ZWMGU+/D+ysJDSD3Li7Q7Mr+VaaYFUIEg5yPeh\n6nUcr+sY7r4MOAp4yMymA59Gj1wXAz+Kqli2AD4v4r5Lss7PXHMMsJ2ZzTaz/5C/Wml29JoZfwHO\nNLMZhIIp38/ohGnFnwCeAU7zsIZB3pWw3H0xcAWhMf4hwhKr2YZE9xEB0PTX0jyZ2dru/kX0/CLg\nFXc/v5zua2bXAJe4e+4HdW3nnwp87u5nF/N6OffqB/zN3fdu6L2k+VCGIM3VEVGvpf8QqmMuq++C\nFO77N+CnBV5Tqm9wPyVkJSKrKUMQERFAGYKIiERUIIiICKACQUREIioQREQEUIEgIiIRFQgiIgLA\n/wMaKZhDPQoRYAAAAABJRU5ErkJggg==\n",
"text": [
"<matplotlib.figure.Figure at 0x7f7912985e50>"
]
}
],
"prompt_number": 17
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 9.5.1 : page 9-22"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"from math import degrees, acos, sqrt, pi, cos\n",
"#IS_rms, I1_rms, FPF, PF and HF\n",
"#given data :\n",
"Vm=230 # in volts\n",
"Ia=12 # in A\n",
"Av=200 # average load voltage in volts\n",
"alfa = acos(Av*pi/Vm/sqrt(2)-1)*180/pi\n",
"Is_rms=Ia*sqrt((180-alfa)/180) \n",
"print \"(1)for PAC : \"\n",
"print \"(a) Is_rms = %0.2f A\" %Is_rms\n",
"I1_rms=((2*sqrt(2))/pi)*Ia*cos(alfa/2*pi/180) \n",
"print \"(b) I1_rms = %0.2f A\" %I1_rms\n",
"fi=alfa/2 \n",
"FPF=cos(pi/180*fi) \n",
"print \"(c) FPF = %0.4f lag\" %FPF\n",
"CDF=I1_rms/Is_rms \n",
"print \"(d) CDF = %0.4f \"%CDF\n",
"PF=CDF*FPF \n",
"print \"(e) PF = %0.4f lag\" %PF\n",
"HF=sqrt((1/CDF**2)-1) \n",
"print \"(f) HF = %0.4f \"%HF\n",
"print \"(2)for SAC : \"\n",
"Vm=230 # in volts\n",
"Ia=12 # in A\n",
"Av=200 # average load voltage in volts\n",
"alfa = degrees(acos(Av*pi/2/sqrt(2)/Vm))\n",
"Is_rms=Ia*sqrt((180-(2*alfa))/180) \n",
"print \"(a) Is_rms = %0.2f A\" %Is_rms\n",
"I1_rms=((2*sqrt(2))/pi)*Ia*cos(alfa*pi/180) \n",
"print \"(b) I1_rms = %0.2f A\" %I1_rms\n",
"CDF=I1_rms/Is_rms \n",
"print \"(c) CDF = %0.3f \"%CD\n",
"fi=0 # degree\n",
"FPF=cos(pi/180*fi) \n",
"print \"(d) FPF = %0.2f \"%FPF\n",
"#in book CDF is mentioned as DF which is wrongly mentioned\n",
"PF=CDF*FPF \n",
"print \"(e) PF = %0.3f lagging\" %PF\n",
"HF=(sqrt((1/CDF**2)-1))*100 \n",
"print \"(f) HF = %0.2f %%\" %HF"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(1)for PAC : \n",
"(a) Is_rms = 11.27 A\n",
"(b) I1_rms = 10.62 A\n",
"(c) FPF = 0.9828 lag\n",
"(d) CDF = 0.9423 \n",
"(e) PF = 0.9261 lag\n",
"(f) HF = 0.3552 \n",
"(2)for SAC : \n",
"(a) Is_rms = 10.95 A\n",
"(b) I1_rms = 10.43 A\n",
"(c) CDF = 0.953 \n",
"(d) FPF = 1.00 \n",
"(e) PF = 0.953 lagging\n",
"(f) HF = 31.91 %\n"
]
}
],
"prompt_number": 36
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 9.5.2 : page 9-23"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"from __future__ import division\n",
"from math import sqrt, pi, cos\n",
"#average voltage \n",
"a1=30 #in degree\n",
"a2=75 #in degree\n",
"b1=60 #in degree\n",
"ia=10 #in amperes\n",
"vsrms=230 #in volts\n",
"b3=180-a1 #\n",
"a3=180-b1 #\n",
"b2=180-a2 #\n",
"alfa=0 #\n",
"vldc=((vsrms*sqrt(2))/pi)*(cos(pi/180*a1)-cos(pi/180*b1)+cos(pi/180*a2)-cos(pi/180*b2)+cos(pi/180*a3)-cos(pi/180*b3)) \n",
"print \"average voltage = %0.1f V\" %vldc\n",
"Is_rms=ia*((1/180)*(b1-a1+b2-a2+b3-a3))**(1/2) #\n",
"print \"Is_rms = %0.2f A\" %Is_rms\n",
"I1_rms=((sqrt(2)*ia)/(pi))*(cos(pi/180*a1)-cos(pi/180*b1)+cos(pi/180*a2)-cos(pi/180*b2)+cos(pi/180*a3)-cos(pi/180*b3)) \n",
"print \"I1_rms = %0.2f A\" %I1_rms\n",
"fi=alfa \n",
"FPF=cos(I1_rms*fi) \n",
"print \"FPF = %0.2f\"%FPF\n",
"DF=I1_rms/Is_rms \n",
"print \"DF = %0.4f\"%DF\n",
"PF=DF*FPF \n",
"print \"PF = %0.4f lag\" %PF\n",
"HF=sqrt((1/DF**2)-1) \n",
"print \"HF = %0.2f %%\" %(HF*100)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"average voltage = 129.4 V\n",
"Is_rms = 7.07 A\n",
"I1_rms = 5.63 A\n",
"FPF = 1.00\n",
"DF = 0.7956\n",
"PF = 0.7956 lag\n",
"HF = 76.15 %\n"
]
}
],
"prompt_number": 40
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 9.5.3: page 9-24"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#IS_rms, I1_rms, PF and HF\n",
"#given data :\n",
"Vm=230 # in volts\n",
"Ia=10 # in A\n",
"alpha=pi/6 #degree\n",
"ea=((2*Vm*sqrt(2))/pi)*cos(alpha) #\n",
"print \"average output voltage = %0.2f V\" %ea\n",
"isrms=Ia*(1-(2*alpha)/pi)**(1/2) #\n",
"print \"rms value of supply current = %0.2f A\" %isrms\n",
"I1rms=((2*sqrt(2)*Ia*cos(alpha))/pi) #\n",
"print \"rms value of fundamental component of supply current = %0.2f A\" %I1rms\n",
"hf=((isrms/I1rms)**2-1)**(1/2) #\n",
"print \"HF of supply current = %0.2f %%\"%(hf*100)\n",
"PF=((sqrt(2))*(1+cos(alpha)))/((pi*(pi-alpha))**(1/2)) #\n",
"print \"PF (lagging)of supply current = %0.2f %%\"%PF\n",
"# Answer for HF is calculated wrong in the textbook."
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"average output voltage = 179.33 V\n",
"rms value of supply current = 8.16 A\n",
"rms value of fundamental component of supply current = 7.80 A\n",
"HF of supply current = 31.08 %\n",
"PF (lagging)of supply current = 0.92 %\n"
]
}
],
"prompt_number": 42
}
],
"metadata": {}
}
]
}
|