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
|
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter 22 : Power System Voltage Stability"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 22.2, Page No 725"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"#initialisation of variables\n",
"Vb=500.0\n",
"Sb=1000.0\n",
"\n",
"#Calculations\n",
"Zb=Vb**2/Sb\n",
"Xpu=.35*100/Zb\n",
"Zth=1000/5000.0\n",
"X=Xpu+Zth\n",
"V=1.0\n",
"Q=0\n",
"P=1.0\n",
"Eth=V+(Q*X/V)+complex(P*X/V)\n",
"Q=0.75\n",
"Eth1=V+(Q*X/V)+complex(P*X/V)\n",
"\n",
"#Results\n",
"print(\"(i) For p.f unity , Eth= {0:.5f}+{1:.5f}i\".format(Eth.real, Eth.imag))\n",
"print(\"(i) For p.f .8 , Eth= {0:.5f}+{1:.5f}i\".format(Eth1.real, Eth1.imag))"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(i) For p.f unity , Eth= 1.34000+0.00000i\n",
"(i) For p.f .8 , Eth= 1.59500+0.00000i\n"
]
}
],
"prompt_number": 1
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 22.3, Page No 726"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"#initialisation of variables\n",
"X=.625\n",
"P=1.0\n",
"Q=0.6\n",
"V=1.0\n",
"\n",
"#Calculations\n",
"Eth=V+(Q*X/V)+complex(P*X/V)\n",
"Phase_Eth=math.degrees(math.atan(Eth.imag/Eth.real))\n",
"\n",
"#Results\n",
"print(\"Eth=%.2f at an angle %.0f degrees\" %(abs(Eth),Phase_Eth))"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Eth=2.00 at an angle 0 degrees\n"
]
}
],
"prompt_number": 2
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 22.4, Page No 732"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"#initialisation of variables\n",
"P=0.5\n",
"toff=4.0\n",
"\n",
"#Calculations\n",
"ton=(P*toff-0*toff)/(0.8-P)\n",
"\n",
"#Results\n",
"print(\"Toff= 4min .\")\n",
"print(\"ton(min.)=%.3f min.\" %ton)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Toff= 4min .\n",
"ton(min.)=6.667 min.\n"
]
}
],
"prompt_number": 3
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 22.6 Page No 739"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"#initialisation of variables\n",
"V=1.0\n",
"Qload=1.0*V\n",
"Qcap=-0.75*V**2\n",
"\n",
"#Calculations\n",
"Qnet=Qload+Qcap\n",
"VS=1-0.75*2*V # voltage sensitivity\n",
"\n",
"#Results\n",
"print(\"Voltage sensitivity=%.3f\" %VS)\n",
"print(\"since the voltage sensitivity is negative,\\nvoltage regulation by tap changing will reduce net reactive load and improive voltage stability \")"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Voltage sensitivity=-0.500\n",
"since the voltage sensitivity is negative,\n",
"voltage regulation by tap changing will reduce net reactive load and improive voltage stability \n"
]
}
],
"prompt_number": 4
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 22.7, Page No 740"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"#initialisation of variables\n",
"Y=complex(-10)\n",
"n=1+0.1\n",
"\n",
"#Calculations\n",
"Y1=n*(n-1)*Y\n",
"Y2=(1-n)*Y\n",
"\n",
"#Results\n",
"print(\"Y1= {0:.2f}+{1:.2f}i\".format(Y1.real, Y1.imag))\n",
"print(\"Y2= {0:.2f}+{1:.2f}i\".format(Y2.real, Y2.imag))\n",
"print(\"The shunt elements equal to a reactor of 1.1V1^2 size oin the primary side and a capacitive of sixe 1V2**2 on the secondary side\")"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Y1= -1.10+0.00i\n",
"Y2= 1.00+-0.00i\n",
"The shunt elements equal to a reactor of 1.1V1^2 size oin the primary side and a capacitive of sixe 1V2**2 on the secondary side\n"
]
}
],
"prompt_number": 5
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 22.8, Page No 745"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"#initialisation of variables\n",
"P=1.0\t\t#assuming\n",
"S1=P/.95\t#For pf .95\n",
"S2=P/.8\t\t#For pf .8\n",
"\n",
"#Calculations\n",
"dMVA=(S2-S1)*100.0/P\t\t#Increase in MVA rating \n",
"Q1=P*math.tan(math.radians(math.degrees(math.acos(0.95))))\t\t#Q for pf .95\n",
"Q2=P*math.tan(math.radians(math.degrees(math.acos(0.8))))\t\t#Q for pf .8\n",
"dPc=(Q2-Q1)*100.0/Q1\t\t#Percent additional Reactive Power Capability \n",
"\n",
"#Results\n",
"print(\"Percent additional Reactive Power Capability is %.2f\" %dPc)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Percent additional Reactive Power Capability is 128.18\n"
]
}
],
"prompt_number": 6
}
],
"metadata": {}
}
]
}
|