Lec3 PFA
Lec3 PFA
I1 y10= -j1.0 I2
y20= -j1.25
1 2
y12 = -j2.5
y13= -j5 y23= -j5
3 KCL Equations
l Off-diagonal elements:
Yij = Y ji = − yij
l Matrix is symmetrical along the leading diagonal
Vx = 1a V j I i = −a* ⋅ I j I i = yt (Vi − Vx )
Vx = 1a V j I i = yt (Vi − Vx )
I i = yt (Vi − 1a V j )
I i = −a* ⋅ I j
I j = − a1* I i
I j = − * (Vi − a V j ) = − * Vi + 2 V j
yt 1 yt yt
a a a
yt
I i = {yt }Vi + − V j
a
yt y
I j = − * Vi + t2 V j
a a
I i yt − yt a Vi
I = − y a * 2⋅
yt a V j
j t
yt / a tap side
non-tap side
i j
(a - 1) yt / a (1 - a) yt / a2
l Power Law
Pi − jQi
Pi + jQi = V I *
i i → Ii =
Vi*
Pi − jQi n n
*
= Vi ∑ yij − ∑ yijV j j≠i
Vi j =0 j =1
3.5
3 x
Iterations
2.5
1.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5
x
3.5
3 x
Iterations
2.5
1.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5
x
with acceleration factor: 1.25
GEE/PSAOpt/L3-Power Flow Analysis 26
Gauss-Seidel for a System of Equations
l Consider a system of n equations
f1 ( x1 , x2 , L , xn ) = c1
f 2 ( x1 , x2 , L , xn ) = c2
M M
f n ( x1 , x2 , L , xn ) = cn
l Rearrange each equation for one of the variables
x1 = c1 + g1 ( x1 , x2 , L , xn )
x2 = c2 + g 2 ( x1 , x2 , L , xn )
M M
xn = cn + g n ( x1 , x2 , L , xn )
(x[ ], x[ ],L, x[ ] )
1
0
2
0
n
0
(x[ 1
k +1]
, x2[k +1] , L , xn[k +1] )
u in the Gauss-Seidel method, the updated values of the variables
calculated in the preceding equations are used immediately in
the solution of the subsequent equations
*
= Vi ∑ yij − ∑ yijV j j≠i
Vi j =0 j =1
Vi j =1 Vi*[ k ] j =1
Vi = n
j ≠ i ⇒ Vi[ k +1] = n
j≠i
∑y
j =0
ij ∑y
j =0
ij
Pi [sch ] − jQi[sch ] n
Vi*[k ]
+ ∑ y ij V j
[k ]
Vi [k +1] =
j =1
n
j≠i
∑y
j =0
ij
n n
[k ]
Pi [k +1]
= ℜVi Vi ∑ yij − ∑ yij V j j ≠ i
* [k ] [k ]
j =0 j =1
n n
[k ]
Qi = −ℑVi Vi ∑ yij − ∑ yij V j j ≠ i
[k +1] * [k ] [k ]
j =0 j =1
Vi *[k ]
− ∑ Y ij V [k ]
j
[k +1] j =1, j ≠ i
Vi =
Yii
* [k ] [k ] n
[k ]
Pi [k +1]
= ℜVi Vi Yii + ∑ Yij V j
j = 1
j ≠ i
n
Qi[k +1] = −ℑVi*[k ] Vi [k ]Yii + ∑ Yij V j[k ]
j =1
j ≠ i
e [ k +1]
i = Vi [ sch ] 2
(
− fi )
[ k +1] 2
Vi = ei + j f i
V1 = 1.05∠0°
0.02 + j0.04
2.566 pu
1.102 pu
0.0125 + j0.025
1.386 pu
0.01 + j0.03
0.452 pu
(
f x[0 ] + ∆x[ 0] = c)
u Expand the left-hand side into a Taylor’s series about x[0] yeilds
f [ 0] 2
( ) df [0 ]
( )
2
d
f x[0] + ∆x + 1
2 2
∆x + L =c
dx dx
( )
f x [0] df [0 ]
+ ∆x ≈c ⇒ ∆c [0] df [ 0]
≈ ∆x
dx dx
u where
∆c[ 0 ] = c − f x[0 ] ( )
u rearranging the equations
∆ c [0]
∆x[ 0] =
df
dx
x[1] = x[0 ] + ∆x[ 0]
40
30
20
10
3 2
f(x) = x -6x +9x-4
0
-10
0 1 2 3 4 5 6
x
Pi − j Qi = Vi* I i
l Substituting for Ii yields:
j =1
Pi = ∑ Vi V j Yij cos(θij − δi + δj )
n
j =1
( )
n
Pi[ k ] = ∑ Vi[ k ] V j[ k ] Yij cos θij − δi[ k ] + δ[j k ]
j =1
( )
n
Qi[ k ] = − ∑ j =1
Vi[ k ] V j[ k ] Yij sin θij − δi[ k ] + δ[j k ]
Pinjsch
c = sch
δ[ k ]
= [k ] ( ) =
( )
Pinj x[ k ]
( )
[k ] [k ]
x f x [k ]
Qinj
V Q
inj x
[ k + 1]
= x[ k ] +
c − f( )x [k ]
( )
x
df x[ k ]
dx
l The Jacobian - the first derivative of a set of functions
( )
df x[ k ] a matrix of all combinatorial pairs
dx
∂Pi
= Vi Yij cos(θij − δi + δj ) i ≠ j
∂V j
∂Qi
= − Vi V j Yij cos(θij − δi + δj ) i ≠ j
∂δj
l Reactive power w.r.t. the voltage magnitude
∂Qi
= − 2 Vi Yii sin θii + ∑V Yij sin (θij − δi + δj )
∂Vi
j
j≠i
∂Qi
= − Vi Yij sin (θij − δi + δj ) i ≠ j
∂V j
∆Pi [k ]
= Pi sch
− Pi [k ]
l Generator Bus
n have known terminal voltage and real (actual) power injection
n the bus voltage angle and reactive power injection are computed
l Load Bus
n have known real and reactive power injections
n bus is fully included in the Jacobian matrix
− V2 1.05 22 .3 sin (2. 03 − δ 2 )− V 2
2
58 .1 sin (− 1. 11)− V 2 1.04 35 .8 sin (2.03 − δ2 + δ )
3
∆P2 P2sch P2 (δ2 , δ3 ,V2 ) − 4.0 P2 (δ2 , δ3 ,V2 )
∆c = ∆P3 = c − f (x )= P3sch − P (δ , δ , V ) =
2.0 − P (δ , δ
3 2 3 2 , V )
3 2 3 2
Q2sch
∆Q2
Q2 (δ2 , δ3 ,V2 ) − 2.5
Q2 (δ2 , δ3 ,V2 )
∂δ2
= ∑V
j =1, j ≠ 2
2
∂P3
= − V3 V2 Y32 sin (θ32 − δ3 + δ2 )= − 1.04 V2 35.8 sin (2.03 − δ2 + δ3 )
∂δ2
∂P3
V j Y3 j sin (θ3 j − δ3 + δj )
3
∂δ3
= ∑V
j =1, j ≠ 3
3
∂δ2
= ∑V
j =1, j ≠ 2
2
x [ k + 1] = x [ k ] + J − 1 ⋅∆c[ k ]
[ k + 1] [k ] −1
δ2 δ2 ∂P2 ∂δ2 ∂P2 ∂δ3 ∂P2 ∂V2 ∆P2
[k ]
= δ3 = δ3 + ∂P3 ∂δ2 ∂P3 ∂δ3 ∂P3 ∂V2 ⋅∆P3
V2 V2 ∂Q2 ∂δ2 ∂Q2 ∂δ3 ∂Q2 ∂V2
∆Q2
P1 = 2.1842 pu
Q1 = 1.4085 pu
Q3 = 1.4617 pu
∂δi j =1
j ≠i
∂Pi
Yij sin (θij − δi + δj )
n
= − Vi Yii sin (θii )− Qi Qi = − ∑VV
2
∂δi
i j
j =1
∂Pi
Yii sin (θii )= Bii Bii > > Qi = − Vi Bii
2
∂δi
∂Pi
Vi ≈Vi ⇒ = − Vi Bii
2
∂δi
∂Qi
= − Vi Yii sin (θii )− Vi ∑ Vi V j Yij sin (θij − δi + δj )
n
−1
∂Vi j =1
∂Qi
Yij sin (θij − δi + δj )
n
= − Vi Yii sin (θii )+ Vi Qi ∑VV
−1
Qi = −
∂Vi
i j
j =1
∂Qi
Yii sin (θii )= Bii Bii > > Qi ⇒ = − Vi Bii
∂Vi
− 52 32
B′=
32 − 62
− 0.028182 − 0.014545
[B′
] =
−1
− 0.014545 − 0.023636
B′
′=[
− 52]
[B′
]− 1 = [− 0.019231]
′
f (x )= Pinj 3 (x ) j =1
j =1
𝛿𝛿𝑗𝑗 − 𝛿𝛿𝑘𝑘
𝑃𝑃𝑗𝑗𝑗𝑗 =
𝑋𝑋𝑗𝑗𝑗𝑗
• The real power balance equations:
Δ𝑃𝑃 = −𝑩𝑩′ Δ𝛿𝛿 ⇒ Δ𝛿𝛿 = −[𝑩𝑩′ ]−𝟏𝟏 Δ𝑃𝑃