You are on page 1of 38

ECE 476

Power System Analysis


Lecture 14: Power Flow

Prof. Tom Overbye


Dept. of Electrical and Computer Engineering
University of Illinois at Urbana-Champaign
overbye@illinois.edu
Announcements

• Read Chapter 6, Chapter 12.4 and 12.5


• Quiz today on HW 6
• HW 7 is 6.50, 6.52, 6.59, 12.20, 12.26; due October
22 in class (no quiz)
• Power and Energy scholarships will be decided on
Monday; application on website; apply to Prof. Sauer;
Grainger Awards due on Nov 1; application on
website; apply to Prof. Sauer
• energy.ece.illinois.edu

1
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 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
2
Newton-Raphson 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
3
Modeling Voltage Dependent Load

So far we've assumed that the load is independent of


the bus voltage (i.e., constant power). However, the
power flow can be easily extended to include voltage
depedence with both the real and reactive load. This
is done by making PDi and Q Di a function of Vi :
n
∑ Vi Vk (Gik cosθ ik + Bik sin θ ik ) − PGi + PDi ( Vi ) =
0
k =1
n
∑ Vi Vk (Gik sin θ ik − Bik cosθ ik ) − QGi + QDi ( Vi ) =
0
k =1

4
Voltage Dependent Load Example

In previous two bus example now assume the load is


constant impedance, so
V2 (10sin θ 2 ) + 2.0 V2 =
2
P2 (=
x) 0
Q2 (x) =V2 (−10 cosθ 2 ) + V2 (10) + 1.0 V2 =
2 2
0
Now calculate the power flow Jacobian
10 V2 cosθ 2 10sin θ 2 + 4.0 V2 
J ( x) = 
10 V2 sin θ 2 −10 cosθ 2 + 20 V2 + 2.0 V2 

5
Voltage Dependent Load, cont'd

0 
=
Again set v =
0, (0)
guess x 1 
 
Calculate
 V2 (10sin θ 2 ) + 2.0 V2
2   2.0 
f(x ) =
(0)
  1.0 
 V2 (−10 cosθ 2 ) + V2 (10) + 1.0 V2 
2 2
 
10 4 
J (x ) = 
(0)

 0 12 
−1
0  10 4   2.0   −0.1667 
Solve x (1)
=
1  −  0 12  1.0  =
 0.9167 
       
6
Voltage Dependent Load, cont'd

With constant impedance load the MW/Mvar load at


bus 2 varies with the square of the bus 2 voltage
magnitude. This if the voltage level is less than 1.0,
the load is lower than 200/100 MW/Mvar
160.0 MW -160.0 MW
120.0 MVR Line Z = 0.1j -80.0 MVR

0.894 pu
One 1.000 pu Two -10.304 Deg

160.0 MW 160 MW
120.0 MVR 80 MVR

7
Dishonest Newton-Raphson

• Since most of the time in the Newton-Raphson


iteration is spend calculating the inverse of the
Jacobian, one way to speed up the iterations is to
only calculate/inverse the Jacobian occasionally
– known as the “Dishonest” Newton-Raphson
– an extreme example is to only calculate the Jacobian for
the first iteration
( v +1)
Honest: x =x (v)
- J (x ( v ) -1
) f (x (v )
)
Dishonest: x( v +1) = x( v ) - J (x(0) )-1 f (x( v ) )
Both require f (x( v ) ) < ε for a solution
8
Dishonest Newton-Raphson Example

Use the Dishonest Newton-Raphson to solve


=
f ( x) x=
2
-2 0
−1
 df ( x ) 
(0)
∆x(v )
=−  f ( x (v )
)
 dx 
∆x (v )
=  1  (v ) 2
−  (0)  (( x ) - 2)
2x 
( v +1) (v)  1 
x = x −  (0)  (( x ( v ) ) 2 - 2)
2x 

9
Dishonest N-R Example, cont’d

x= ( v +1)
x (v )  1  (v) 2
−  (0)  (( x ) - 2)
2x 
We pay a price
Guess x = 1. Iteratively solving we get in increased
(0)

v x ( v ) (honest) x ( v ) (dishonest) iterations, but


0 1 1 with decreased
computation
1 1.5 1.5 per iteration
2 1.41667 1.375
3 1.41422 1.429
4 1.41422 1.408
10
Two Bus Dishonest ROC

Slide shows the region of convergence for different initial


guesses for the 2 bus case using the Dishonest N-R
Red region
converges
to the high
voltage
solution,
while the
yellow region
converges
to the low
voltage
solution
11
Honest N-R Region of Convergence

Maximum
of 15
iterations

12
Decoupled Power Flow

• The completely Dishonest Newton-Raphson is not


used for power flow analysis. However several
approximations of the Jacobian matrix are used.
• One common method is the decoupled power flow.
In this approach approximations are used to
decouple the real and reactive power equations.

13
Decoupled Power Flow Formulation

General form of the power flow problem


 ∂P ( v ) ∂P ( v ) 
  (v) 
 ∂θ ∂ V  ∆θ  ∆P (x( v ) ) 
−   =
  =
f ( x (v)
)
 ∂Q ( v ) ∂Q ( v )   ∆ V   ∆Q(x( v ) ) 
(v)
 
 ∂θ ∂ V 
where
 P2 (x( v ) ) + PD 2 − PG 2 
 
∆P (x ) =
(v)
  
 P (x(v ) ) + P − P 
 n Dn Gn 
14
Decoupling Approximation

∂P ( v ) ∂Q ( v )
Usually the off-diagonal matrices, and
∂V ∂θ
are small. Therefore we approximate them as zero:
 ∂P ( v ) 
 0 
 ∆θ (v) 
 ∆ (v) 
∂θ P ( x )
−    ==
  f ( x (v)
)
 ∂Q   ∆ V 
( v ) ( v )

 ∆Q ( x (v)
) 
 0 
 ∂ V 
Then the problem can be decoupled
 ∂P ( v )  −1  ∂Q ( v )  −1
∆θ  ∆P(x ) ∆ V Q x
(v)
(v)
=
− (v)
=
−  ∆ ( (v)
)
 ∂θ  ∂ V  15
Off-diagonal Jacobian Terms

Justification for Jacobian approximations:


1. Usually r  x, therefore Gij  Bij
2. Usually θ ij is small so sin θ ij ≈ 0
Therefore
∂Pi
= Vi ( Gij cosθ ij + Bij sin θ ij ) ≈ 0
∂ Vj
∂Qi
− Vi V j ( Gij cosθ ij + Bij sin θ ij ) ≈ 0
=
∂θ j

16
Decoupled N-R Region of Convergence

17
Fast Decoupled Power Flow

• By continuing with our Jacobian approximations we


can actually obtain a reasonable approximation that is
independent of the voltage magnitudes/angles.
• This means the Jacobian need only be built/inverted
once.
• This approach is known as the fast decoupled power
flow (FDPF)
• FDPF uses the same mismatch equations as standard
power flow so it should have same solution
• The FDPF is widely used, particularly when we only
need an approximate solution
18
FDPF Approximations
The FDPF makes the following approximations:
1. G ij = 0
2. Vi = 1
sin θ ij 0=
3. = cosθ ij 1
Then
−1 ∆P ( x (v)
) −1 ∆Q ( x (v)
)
∆θ B ∆V B
(v)
(v)
(v)
=
V V (v)
Where B is just the imaginary part of the Ybus= G + jB,
except the slack bus row/column are omitted
19
FDPF Three Bus Example

Use the FDPF to solve the following three bus system


Line Z = j0.07

One Two

200 MW
100 MVR
Line Z = j0.05 Line Z = j0.1

Three 1.000 pu  −34.3 14.3 20 


= Ybus j  14.3 −24.3 10 
200 MW  
100 MVR  20 10 −30 

20
FDPF Three Bus Example, cont’d

 −34.3 14.3 20 
 −24.3 10 
Ybus j  14.3 −24.3 10  →
= =
B  10 
   −30 
 20 10 −30 
−1  −0.0477 −0.0159 
B =  
 −0.0159 −0.0389 
Iteratively solve, starting with an initial voltage guess
(0)
θ 2 
(0)
0  V 2  1
θ  =  V  1
 3  
0  3 
θ
 2
(1)
0   −0.0477 −0.0159   2   −0.1272 
θ  = 0  +  −0.0159 −0.0389   2  =
 −0.1091
 3       

21
FDPF Three Bus Example, cont’d
(1)
V 2  1  −0.0477 −0.0159  1 0.9364 
V  =
1 +  −0.0159 −0.0389  1 =
 
 3       0.9455
∆Pi (x ) n
PDi − PGi
=
Vi
∑ Vk (Gik cosθik + Bik sin θik ) + V
k =1 i

θ 2 
(2)
 −0.1272   −0.0477 −0.0159   0.151  −0.1361
=
θ   −0.1091 +  −0.0159 −0.0389  0.107  =  −0.1156 
 3       
(2)
V 2  0.924 
V  =  
 3 0.936 
 −0.1384  0.9224 
=
Actual solution: θ =  V  
 −0.1171  0.9338
22
FDPF Region of Convergence

23
“DC” Power Flow

• The “DC” power flow makes the most severe


approximations:
– completely ignore reactive power, assume all the voltages
are always 1.0 per unit, ignore line conductance
• This makes the power flow a linear set of
equations, which can be solved directly
θ = −B −1 P

24
Power System Control

• A major problem with power system operation is


the limited capacity of the transmission system
– lines/transformers have limits (usually thermal)
– no direct way of controlling flow down a transmission
line (e.g., there are no valves to close to limit flow)
– open transmission system access associated with industry
restructuring is stressing the system in new ways
• We need to indirectly control transmission line
flow by changing the generator outputs

25
DC Power Flow Example

26
DC Power Flow 5 Bus Example

One Five Four Three


A A

360 MW 520 MW
MVA MVA
A

0 Mvar 0 Mvar
MVA

slack

1.000 pu 1.000 pu A A
1.000 pu 80 MW
0.000 Deg -4.125 Deg MVA MVA -1.997 Deg 0 Mvar
1.000 pu
0.524 Deg

1.000 pu Two
-18.695 Deg

800 MW
0 Mvar

Notice with the dc power flow all of


the voltage magnitudes are 1 per unit.

27
Indirect Transmission Line Control

What we would like to determine is how a change in


generation at bus k affects the power flow on a line
from bus i to bus j.
The assumption is
that the change
in generation is
absorbed by the
slack bus

28
Power Flow Simulation - Before

•One way to determine the impact of a generator change


is to compare a before/after power flow.
•For example below is a three bus case with an overload
131.9 MW

124%
One Two

200.0 MW 68.1 MW 200 MW


68.1 MW 100 MVR
71.0 MVR

Z for all lines = j0.1


Three 1.000 pu

0 MW
64 MVR

29
Power Flow Simulation - After

Increasing the generation at bus 3 by 95 MW (and hence


decreasing it at bus 1 by a corresponding amount), results
in a 31.3 drop in the MW flow on the line from bus 1 to 2.
101.6 MW

100%
One Two

105.0 MW 3.4 MW 200 MW


98.4 MW 100 MVR
64.3 MVR
92%
Z for all lines = j0.1
Limit for all lines = 150 MVA
1.000 pu
Three
95 MW
64 MVR

30
Analytic Calculation of Sensitivities

• Calculating control sensitivities by repeat power


flow solutions is tedious and would require many
power flow solutions. An alternative approach is
to analytically calculate these values
The power flow from bus i to bus j is
Vi V j θi − θ j
Pij ≈ sin(θ i − θ j ) ≈
X ij X ij
∆θ i − ∆θ j ∆θ ij
So ∆Pij ≈ We just need to get
X ij ∆PGk

31
Analytic Sensitivities

From the fast decoupled power flow we know


∆θ= B −1∆P (x)
So to get the change in ∆θ due to a change of
generation at bus k, just set ∆P (x) equal to
all zeros except a minus one at position k.
0

 
∆P = −1 ← Bus k
0
 
   32
Three Bus Sensitivity Example

For the previous three bus case with Zline = j 0.1


 −20 10 10 
   −20 10 
=
Ybus j 10 −20 10 = →B  
   10 −20 
 10 10 −20 
Hence for a change of generation at bus 3
−1
 ∆θ 2   −20 10   0   0.0333
 ∆θ  = −   −1 0.0667 
 3  10 20     
0.0667 − 0
Then ∆P3= to 1 = 0.667 pu
0.1
∆=
P3 to 2 0.333 pu ∆=P 2 to 1 0.333 pu 33
Balancing Authority Areas

• An balancing authority area (use to be called


operating areas) has traditionally represented
the portion of the interconnected electric grid
operated by a single utility
• Transmission lines that join two areas are
known as tie-lines.
• The net power out of an area is the sum of
the flow on its tie-lines.
• The flow out of an area is equal to
total gen - total load - total losses = tie-flow 34
Area Control Error (ACE)

• The area control error (ace) is the difference


between the actual flow out of an area and
the scheduled flow, plus a frequency
component

ace = Pint − Psched + 10 β∆f

• Ideally the ACE should always be zero.


• Because the load is constantly changing,
each utility must constantly change its
generation to “chase” the ACE.
35
Automatic Generation Control

• Most utilities use automatic generation


control (AGC) to automatically change their
generation to keep their ACE close to zero.
• Usually the utility control center calculates
ACE based upon tie-line flows; then the
AGC module sends control signals out to the
generators every couple seconds.

36
Power Transactions

• Power transactions are contracts between


generators and loads to do power
transactions.
• Contracts can be for any amount of time at
any price for any amount of power.
• Scheduled power transactions are
implemented by modifying the value of
Psched used in the ACE calculation

37

You might also like