Professional Documents
Culture Documents
Esigelec PTD 2powerflow Final
Esigelec PTD 2powerflow Final
ALI MEHRIZI-SANI
ASSOCIATE PROFESSOR
Resilient Renewable Energy Grid Adaptation Laboratory (REGAL)
P
POOW
WEER
R A
ANND
D E
ENNE
ERRG
GYY C
CEEN
NTTE
ER
ESIGELEC R
• The Ybus gives the relationships between all the bus current injections, I,
and all the bus voltages, V,
I = Ybus V
• The Ybus is developed by applying KCL at each bus in the system to relate
the bus current injections, the bus voltages, and the branch impedances
and admittances
Ybus Example
• Determine the bus admittance matrix for the network shown below,
assuming the current injection at each bus i is Ii = IGi - IDi where IGi is the
current injection into the bus from the generator and IDi is the current
flowing into the load
Ybus General Form
• The diagonal terms, Yii, are the self admittance terms, equal to the sum
of the admittances of all devices incident to bus i.
• The off-diagonal terms, Yij, are equal to the negative of the sum of the
admittances joining the two buses.
• With large systems Ybus is a sparse matrix (that is, most entries are zero)
Power Flow Analysis
• When analyzing power systems we know neither the complex bus
voltages nor the complex current injections
• Rather, we know the complex power being consumed by the load, and the
power being injected by the generators plus their voltage magnitudes
• Therefore we can not directly use the Ybus equations, but must use the
power balance equations
Power Balance Equations
*
æ n ö n
Si Vi I i* Vi ç å YikVk ÷ Vi å Yik*Vk*
èk 1 ø k 1
This is an equation with complex numbers.
Sometimes we would like an equivalent set of real
power equations. These can be derived by defining
Yik Gik jBik
Vi Vi e jqi Vi Ðq i
q ik q i - q k
Recall e jq cosq j sin q
Real Power Balance Equations
n n
jq ik
Si Pi jQi Vi å Yik*Vk* å i k
V V e (Gik - jBik )
k 1 k 1
n
å Vi Vk (cosq ik j sin q ik )(Gik - jBik )
k 1
Resolving into the real and imaginary parts
n
Pi å Vi Vk (Gik cosqik Bik sin q ik ) PGi - PDi
k 1
n
Qi å Vi Vk (Gik sinqik - Bik cosqik ) QGi - QDi
k 1
Power Flow Slack Bus
• We can not arbitrarily specify S at all buses because total generation
must equal total load + total losses
• To solve these problems we define one bus as the "slack" bus. This bus
has a fixed voltage magnitude and angle, and a varying real/reactive
power injection.
Bus Types in a Power Flow Problem
• PQ: A load bus where we know the real and reactive demand
(consumption) of power.
• PV: A generator bus where the real power is scheduled (known) and
voltage is regulated (also known)
x2
f(x) = x2 - 2 f(x) = x2 + 2
f(x) = = 0
↑
two solutions where f(x) = 0 no solution f(x) = 0
Multiple Solution Example
• The dc system shown below has two solutions:
where the 18 W
load is a resistive
load
( v 1) (v) é 1 ù (v) 2
x x - ê ( v ) ú (( x ) - 2)
ë2x û
Guess x (0) 1. Iteratively solving we get
v x(v) f ( x(v) ) Dx ( v )
0 1 -1 0.5
1 1.5 0.25 -0.08333
2 1.41667 6.953 ´ 10-3 -2.454 ´ 10-3
-6
3 1.41422 6.024 ´ 10
Newton-Raphson Comments
• When close to the solution the error decreases quite quickly -- method
has quadratic convergence
• f(x(v)) is known as the mismatch, which we would like to drive to zero
• Stopping criteria is ½f(x(v)) ½ < e
• Results are dependent upon the initial guess. What if we had guessed
x(0) = 0, or x (0) = -1?
• A solution’s region of attraction (ROA) is the set of initial guesses that
converge to the particular solution. The ROA is often hard to determine
Multi-Variable Newton-Raphson
é x1 ù
Solve for x = ê ú such that f (x) 0 where
ëx2 û
f1 (x) 2 x12 x22 - 8 0
f 2 ( x) x12 - x22 x1x2 - 4 0
First symbolically determine the Jacobian
é ¶f1 (x) ¶f1 ( x) ù
ê ¶x ¶x2 ú
1
J (x) = ê ú
ê ¶f 2 (x) ¶f 2 ( x) ú
êë ¶x1 ¶x2 úû
Multi-variable Example, cont’d
é 4 x1 2 x2 ù
J (x) = ê
ë 2 x1 x2 x1 - 2 x2 úû
Then
-1
é Dx1 ù é 4 x1 2 x2 ù é f1 (x) ù
ê Dx ú -ê
ë 2û ë 2 x1 x2 x1 - 2 x2 úû êë f 2 (x) úû
é1ù
Arbitrarily guess x(0) ê1ú
ëû
-1
(1) é1ù é 4 2 ù é -5ù é 2.1ù
x ê1ú - ê 3 -1ú ê -3ú ê1.3ú
ëû ë û ë û ë û
Multi-variable Example, cont’d
-1
(2) é 2.1ù é8.40 2.60 ù é 2.51ù é1.8284 ù
x ê1.3 ú - ê5.50 -0.50 ú ê1.45 ú ê1.2122 ú
ë û ë û ë û ë û
Each iteration we check f (x) to see if it is below our
specified tolerance e
(2) é0.1556 ù
f (x ) ê0.0900 ú
ë û
If e = 0.2 then we would be done. Otherwise we'd
continue iterating.
Newton-Raphson Power Flow
¶fi ( x)
Vi V j (Gik sin q ik - Bik cosq ik ) ( j ¹ i )
¶q j
->
&
j
+- (a)
-
S
-
&P,
G
x =
[i] -
4x2 :
types of expressions
INVP=(Ginos) +Bit
ii
i
Two Bus Newton-Raphson Example
• For the two bus power system shown below, use the Newton-Raphson
power flow to determine the voltage magnitude and angle at bus two.
Assume that bus one is the slack and SBase = 100 MVA.
Line Z = 0.1j
0 MW 200 MW
0 MVR 100 MVR
(0) é0 ù
Set v 0, guess x ê1 ú
ë û
Calculate
(0)
é V2 (10sin q 2 ) 2.0 ù é 2.0 ù
f(x ) ê 2 ú ê1.0 ú
êë V2 (-10 cosq 2 ) V2 (10) 1.0 úû ë û
(0) é10 V2 cosq 2 10sin q 2 ù é10 0 ù
J (x ) ê10 V sin q ú ê 0 10 ú
ë 2 2 - 10 cos q 2 20 V2û ë û
-1
(1) é0 ù é10 0 ù é 2.0 ù é -0.2 ù
Solve x ê1 ú - ê 0 10 ú ê1.0 ú ê 0.9 ú
ë û ë û ë û ë û
Two Bus Example, Next Iterations
200.0 MW -200.0 MW
168.3 MVR Line Z = 0.1j -100.0 MVR
200.0 MW 200 MW
168.3 MVR 100 MVR
Three Bus PV Case Example
0.941 pu
One 1.000 pu Two -7.469 Deg
170.0 MW 200 MW
68.2 MVR 100 MVR
Line Z = 0.1j Line Z = 0.1j
Three 1.000 pu
30 MW
63 MVR
Solving Large Power Systems
• The most difficult computational task is inverting the Jacobian matrix
– Inverting a full matrix is an order n3 operation, meaning the amount of computation
increases with the cube of the size
– This amount of computation can be decreased substantially by recognizing that since
the Ybus is a sparse matrix, the Jacobian is also a sparse matrix
– Using sparse matrix methods results in a computational order of about n1.5.
– This is a substantial savings when solving systems with tens of thousands of buses
40 Bus Power Flow Example
Eagle
Island Electric Company (IEC)
1 .0 1 3 pu
13%
1 .0 1 8 pu
1 .0 2 0 pu 44% Robin
39% 38%
Pheasant 9 5 MW Flamingo 8 3 M var
5 0 5 MW
0 .9 9 2 pu
1 5 0 MW
7 5 MW
1 5 M var
Canary 1 .0 0 6 pu
1 9 8 MW
5% 1 6 0 MW
3 5 M var
1 .0 1 8 pu 7 0 M var 3 5 M var
19% 46% 5 6 M var
3 5 0 MW 0 .9 9 3 pu
1 .0 1 5 pu
Dove
7 8 M var 1 1 2 MW
Woodpecker
8%
28%
16% 17% 9%
4 0 M var
Rook 30%
1 .0 1 5 pu 1 .0 2 3 pu 1 .0 1 2 pu 1 1 5 MW
1 .0 1 8 pu 2 5 M var
Cardinal
12% 17%
24%
Parrot 1 .0 1 5 pu 35%
5 7 M var 1 .0 1 9 pu 2 6 8 MW 0 .9 9 1 pu
1 3 0 MW
3 0 M var Turkey 14% 1 2 8 M var
29%
Sparrow
1 .0 1 0 pu
10% 7%
8% 30% 1 .0 0 5 pu
1 .0 1 4 pu
Bluebird
0 .9 9 3 pu
6%
14% 45%
30% 13%
1 7 5 MW
Ostrich 1 .0 1 5 pu
0 .9 9 6 pu 18%
4 0 M var
0 .9 9 6 pu 1 3 2 MW
28%
Mallard 1 5 M var
7%
1 5 0 MW
3 9 M var 23%
5 1 M var
22%
6 0 MW
1 .0 0 2 pu Owl 0 .9 9 3 pu 27%
1 .0 1 4 pu
1 5 M var
Hawk
7 0 M var 1 3 0 MW
Piper
36%
4 5 M var 10%
0 .0 0 0 pu 2%
1 6 5 MW
0 MW 3%
1 3 5 MW
19%
1 2 8 MW
3 2 M var 1 7 6 MW
1 5 M var 33%
2 0 M var 0 .9 8 8 pu 2 8 M var 57%
5 5 MW
1 5 M var
6%
Lark 0 .9 9 6 pu
Heron 47%
Finch 0 .9 9 9 pu
22%
1 6 1 MW
53% 2 1 M var
48%
1 4 0 MW
2 0 M var
Condor
47% 1 .0 2 5 pu
Peacock 1 .0 0 4 pu 1 .0 1 0 pu
Hen
9 0 0 MW
8 8 MW 4% 1 1 2 0 MW
78% 78%
1 1 M var
1 .0 2 0 pu
Good Power System Operation
• Good power system operation requires that there be no reliability
violations for either the current condition or in the event of statistically
likely contingencies
• Reliability requires as a minimum that there be no transmission line/transformer limit
violations and that bus voltages be within acceptable limits (perhaps 0.95 to 1.08)
• Example contingencies are the loss of any single device.
• This is known as n-1 reliability.