Professional Documents
Culture Documents
In a compact form
Gauss Power Flow
We first need to put the equation in the correct form
*
n n
Si Vi I i* Vi YikVk Vi Yik*Vk*
k 1 k 1
n n
S*i Vi* I i Vi* YikVk Vi* YikVk
k 1 k 1
S*i n n
Vi*
YikVk YiiVi YikVk
k 1 k 1,k i
1 S*i n
Vi * YikVk
Yii V k 1,k i
i
Difficulties
Unless the generation equals the load at every bus, the
complex power outputs of the generators cannot be
arbitrarily selected.
In fact, the complex power output of at least one of the
generators must be calculated last, since it must take up
the unknown slack due to the uncalculated network
losses.
Further, losses cannot be calculated until the voltages are
known.
Also, it is not possible to solve these equations for the
absolute phase angles of the phasor voltages. This simply
means that the problem can only be solved to some
arbitrary phase angle reference.
Difficulties
Slack Bus The slack bus for the system is a single bus for which the voltage
magnitude and angle are specified.
The real and reactive power are unknowns.
The bus selected as the slack bus must have a source of both real and
reactive power, since the injected power at this bus must swing to take
up the slack in the solution.
The best choice for the slack bus (since, in most power systems, many
buses have real and reactive power sources) requires experience with the
particular system under study.
The behavior of the solution is often influenced by the bus chosen.
Bus Classifications
Load Bus (P-Q Bus) : A load bus is defined as any bus of the system for which
the real and reactive power are specified.
Load buses may contain generators with specified real and reactive power
outputs;
however, it is often convenient to designate any bus with specified injected
complex power as a load bus.
Voltage Controlled Bus (P-V Bus) : Any bus for which the voltage magnitude
and the injected real power are specified is classified as a voltage
controlled (or P-V) bus.
The injected reactive power is a variable (with specified upper and lower
bounds) in the power flow analysis.
(A P-V bus must have a variable source of reactive power such as a
generator.)
Solution Methods
=
Example
0.25 p.u.
V= 1 0 100+j50
Y-Bus
1 S*2 n
V2 * YikVk
Y22 V2 k 1,k i
1 -1 j 0.5
V2 (5 j15)(1.00)
5 j14.70 V2 *
Guess V2(0) 1.00 (this is known as a flat start)
v V2( v ) v V2( v )
0 1.000 j 0.000 3 0.9622 j 0.0556
1 0.9671 j 0.0568 4 0.9622 j 0.0556
2 0.9624 j 0.0553
Solution (cont.)
Gauss-Seidel Iteration
Vi
As a result, we have
* N N
Pi jQi Vi I i V *
i (Y V )
n 1
in n
n 1
|YinViVn | (in n i )
These are the static power flow equations. Each equation is complex,
and therefore we have 2n real equations. The nodal admittance matrix
current equation can be written in the power form:
* N N
Pi jQi Vi I i V *
i (Y V )
n 1
in n
n 1
|YinViVn | (in n i )
Let,
Finally,
N
Pi | Vi | Gii | ViVnYin | cos(in n i )
2
n 1
n i
N
Qi | Vi | Bii | ViVnYin | sin(in n i )
2
n 1
n i
dx
x ( v ) 1
( v ) (( x ( v ) ) 2 - 2)
2x
x ( v 1) x ( v ) x ( v )
x ( v 1)
x (v) 1 (v) 2
( v ) (( x ) - 2)
2x
Example Solution
x ( v 1)
x (v) 1 (v) 2
( v ) (( x ) - 2)
2x
Guess x (0)
1. Iteratively solving we get
v x(v) f ( x(v) ) x ( v )
0 1 1 0.5
1 1.5 0.25 0.08333
3 3
2 1.41667 6.953 10 2.454 10
6
3 1.41422 6.024 10
Comments
f n ( x) f n ( x)
f n ( x ) f n ( x) x1 x2
x1 x2
f n (x)
xn higher order terms
xn
Multi-Variable Case, contd
This can be written more compactly in matrix form
f1 (x) f1 ( x) f1 ( x)
x x2 xn
1
f ( x ) 1
x1
f (x) f 2 (x) f 2 ( x) f 2 ( x)
x
f (x ) 2 x1 x2 xn 2
f ( x)
n f (x) f n ( x) f n ( x) x n
n
x1 x2 xn
higher order terms
Jacobian Matrix
The n by n matrix of partial derivatives is known
as the Jacobian matrix, J (x)
f1 (x) f1 (x) f1 ( x)
x x2 xn
1
f 2 (x) f 2 (x) f 2 ( x)
J (x) x1 x2 xn
f (x) f n (x) f n (x)
n
x1 x2 xn
Multi-Variable N-R Procedure
x1
Solve for x = such that f ( x) 0 where
x2
f1 ( x) 2 x12 x22 8 0
f 2 ( x) x12 x22 x1 x2 4 0
First symbolically determine the Jacobian
f1 ( x) f1 ( x)
x x2
J (x) =
1
f 2 ( x) f 2 ( x)
x1 x2
Solution
4 x1 2 x2
J (x) =
2 x1 x2 x1 2 x2
Then
1
x1 4 x1 2 x2 f1 (x)
x 2 x x x1 2 x2 f 2 (x)
2 1 2
1
Arbitrarily guess x(0)
1
1
1 4 2 5 2.1
x (1)
1 3 1 3 1.3
Solution, contd
1
2.1 8.40 2.60 2.51 1.8284
x(2)
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
0.1556
f (x )
(2)
0.0900
If = 0.2 then we would be done. Otherwise we'd
continue iterating.
NR Application to Power Flow
n n
j ik
Si Pi
jQi Vi Yik*Vk* Vi Vk e (Gik jBik )
k 1 k 1
n
Vi Vk (cos ik j sin ik )(Gik jBik )
k 1
Resolving into the real and imaginary parts
n
Pi Vi Vk (Gik cos ik Bik sinik ) PGi PDi
k 1
n
Qi Vi Vk (Gik sinik Bik cosik ) QGi QDi
k 1
NR Power Flow
x( v 1) x( v ) J (x( v ) ) 1 f (x( v ) )
v v 1
End While
Power Flow Jacobian Matrix
fi ( x) n
i
Vi Vk (Gik sin ik Bik cos ik )
k 1
k i
fi ( x)
Vi V j (Gik sin ik Bik cos ik ) ( j i )
j
Two Bus, 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
2 j10 j10
x Ybus
V2 j10 j10
Two Bus Example, contd
General power balance equations
n
Pi Vi Vk (Gik cos ik Bik sin ik ) PGi PDi
k 1
n
Qi Vi Vk (Gik sin ik Bik cos ik ) QGi QDi
k 1
Bus two power balance equations
P2 V2 V1 (10sin 2 ) 2.0 0
Q2 V2 V1 (10 cos 2 ) V2 (10) 1.0 0
2
Two Bus Example, contd
P2 (x) V2 (10sin 2 ) 2.0 0
Q2 (x) V2 (10 cos 2 ) V2 (10) 1.0 0
2
Q 2 (x) Q 2 ( x)
V 2
2
10 V2 cos 2 10sin 2
10 V2 sin 2 10 cos 2 20 V2
First Iteration
0
Set v 0, guess x (0)
1
Calculate
V2 (10sin 2 ) 2.0 2.0
f(x )
(0)
1.0
V2 (10 cos 2 ) V2 (10) 1.0
2
10 V2 cos 2 10sin 2 10 0
J (x )
(0)
0 10
10 V2 sin 2 10 cos 2 20 V2
1
0 10 0 2.0 0.2
Solve x (1)
1.0
1 0 10 0.9
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
PV Buses
|Vi | Vi setpoint = 0
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
N-R Power Flow
Advantages
fast convergence as long as initial guess is close to solution
large region of convergence
Disadvantages
each iteration takes much longer than a Gauss-Seidel
iteration
more complicated to code, particularly when implementing
sparse matrix algorithms
Newton-Raphson algorithm is very common in power flow
analysis