Teng SA 2014 PDF
Teng SA 2014 PDF
Teng SA 2014 PDF
laboratory
Feifei Teng
Semester Thesis
PSL 1432
i
Acknowledgments
This semester project was conducted at the ETH spin-off Adaptricity since
09/2014. The full time project made me concentrate on my work and time
runs really fast for a 7-week project.
First of all, I would like to express my gratitude to my supervisor Dr.
Stephan Koch for his support and guidance during this work. Thanks for
the opportunity he gave me to learn hands-on knowledge about Java pro-
gramming and power flow analysis. I like especially the atmosphere in the
Adaptricity office where everyone is so nice.
Thanks my parents for their consistent encouragement. How lucky I am
to have such good parents! I also would like to thank all the friends around
me. Thanks for being someone in my life.
ii
Contents
List of Figures v
List of Tables vi
1 Introduction 1
1.1 Background of the project . . . . . . . . . . . . . . . . . . . . 1
1.2 Power flow analysis . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2.1 Newton-Raphson method . . . . . . . . . . . . . . . . 2
1.2.2 Gauss-Seidel Iteration . . . . . . . . . . . . . . . . . . 3
1.2.3 Differences between power transmission and distribu-
tion systems . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3 Goal of the project . . . . . . . . . . . . . . . . . . . . . . . . 4
1.4 Structure of the thesis . . . . . . . . . . . . . . . . . . . . . . 4
3 Algorithm Implementation 12
3.1 Element ordering . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.2 Loop impedance matrix . . . . . . . . . . . . . . . . . . . . . 14
3.3 Voltage sweep calculation . . . . . . . . . . . . . . . . . . . . 15
3.4 Breakpoint power injection . . . . . . . . . . . . . . . . . . . 15
3.5 Convergence criteria . . . . . . . . . . . . . . . . . . . . . . . 16
4 Implementation results 17
4.1 Assessment on the sweeping algorithm . . . . . . . . . . . . . 17
4.1.1 Voltage mismatches after each iteration . . . . . . . . 17
iii
CONTENTS iv
5 Conclusions 25
A Benchmark networks 26
Bibliography 29
List of Figures
v
List of Tables
vi
Chapter 1
Introduction
f(x, u, p) = 0 , (1.1)
1
CHAPTER 1. INTRODUCTION 2
f (x)
f (x0 )
f (x1 )
x2 x1 x
x0
Start with initial value of x(0) , the state x is updated using Eq. (1.2)
and (1.3):
f(x)
J(x(v) ) = . (1.4)
x
The N-R algorithm converges to the true value of x after several iterations.
For power system analysis, the state x which needs to be solved and the
CHAPTER 1. INTRODUCTION 3
where P(x) and Q(x) are the differences between active and reactive
power with their specified value.
The solution of x is updated using Eq. (1.7):
(v) P(x(v) )
(v)
J(x ) + =0 , (1.7)
U(v) Q(x(v) )
where
P P
U
J = Q Q . (1.8)
U
Reference [1] gives detailed explanation of the N-R method application
in power system analysis.
Forward/Backward Sweep
Approaches
During the last few decades, a variety of different approaches based on the
forward/backward sweep algorithm are used by researchers to get good con-
vergence and fast calculation speed of power distribution systems. By avoid-
ing solving simultaneous equations and large dimension matrices, the sweep-
ing algorithm has the advantages of less computation effort and calculation
time compared to the N-R and G-S methods. During the last several years,
multiple sweep based approaches are developed to adapt to different power
system network structures and load types.
This chapter explains the principle of the forward and backward sweep
algorithms.
5
CHAPTER 2. FORWARD/BACKWARD SWEEP APPROACHES 6
root bus
1
2 3
4 5 6
7 8 9 10
admittance summation method[10], [14]. Here the first two approaches are
introduced.
PsI + jQIs
Pi00 + jQ00i Ri jXi Pi0 + jQ0i PrI + jQIr
PrF + jQFr
Pi + jQi PrL + jQL
r
yi yi
PsL + jQL
s
2 2
where the superscripts L, F and I in P and Q stand for load, flow and
injection respectively. Load power PL is given before calculation. The active
CHAPTER 2. FORWARD/BACKWARD SWEEP APPROACHES 7
Pi02 + Q02
Pi = Pi0 + Ri i
, (2.3)
Vr2
Pi02 + Q0i 2
Qi = Q02
i + Xi Vk2 yi /2 . (2.4)
Vm2
If the network is radial, the power injections are assumed to be zero in every
iteration. For meshed networks, the calculation of power injection PI will
be explained in the meshed network part.
Eq. (2.1) (2.4) are calculated backward to get active and reactive power
flow for every branch.
Step 2: Forward sweep
With active and reactive power values available in the backward sweep, the
complex voltage can then be calculated in a forward sequence using Eq. (2.5).
Si00
Vr = Vs Ii Zi = Vk (Ri + jXi )
Vk
Pi00 jQ00i
= Vk (Ri + jXi )
Vk
P 00 Ri + Q00i Xi P 00 Xi Q00i Ri
= (Vk i ) j( i ) , (2.5)
Vk Vk
Starting from the last ordered branch, current flow Jl in branch l is calculated
using Eq. (2.7):
(k)
X
Jl = Ilr + Jlr , l = b, b 1, ..., 1 (2.7)
P
where Ilr is the current injection of node lr calculated from step 1, Jlr is
the currents in branches emanating from node lr.
Step 3: Forward Sweep:
Starting from the root bus, the node voltages are updated using Eq. (2.8).
(k) (k) (k)
Vlr = Vls Zl Jl , l = 1, 2, ..., b (2.8)
where ls and lr denote the sending and receiving end of branch l, Zl is the
series impedance of branch l.
The element ordering process is the same as in the power summation
method.
There are also other forward and backward sweep methods such as [14],
[16], [17]. Reference [14] proposed an admittance summation method which
is quite efficient for constant admittance loads. In [16], a simplified forward
and backward method is presented which has better performance than the
basic sweeping algorithm. Reference [17] gives a comprehensive review and
comparison of these sweep based approaches.
root bus
PV bus
l
l2 l1
uses nodal current injections to compensate for the power flows in the break-
points. The current injection method is illustrated in Figure 2.4. This ap-
proach is suitable for Kirchhoffs Law based sweeping algorithm in which
nodal currents are calculated in each iteration. The current injection can be
added directly to the calculated nodal [13]. Reference [10] improves the for-
mer method in that it uses active and reactive power as flow variables rather
than complex currents thus simplifies the treatment of PV buses. The power
injection method is illustrated in Figure 2.5. This approach is suitable for
power summation method which active and reactive power are updated in
each iteration.
Jj
Breakpoint j
Jj Jj
k k k0
P, Q P, Q P, Q
j Ps , Q Ps , Q
Rest
Rest Vs
of
of j j0
the
the
network
network
Vp Vs
Ip Zt
Is
Ym
where j denotes a breakpoint and j1 and j2 are the two ends of the break-
point.
For the breakpoint of a PV node, the difference between the node voltage
and its specified voltage magnitude is checked:
Algorithm Implementation
12
CHAPTER 3. ALGORITHM IMPLEMENTATION 13
Read in data
Element ordering
NO Converged ?
YES
Print results
Pinj = Il Vl , (3.1)
ZIl = Vl , (3.2)
Vl = Vlr Vls , (3.3)
where R and X are the real and imaginary part of loop impedance matrix
Z, C and D are the real and imaginary part of incremental change of
complex breakpoint current, E and F are the real and imaginary part
of complex breakpoint voltage difference.
At breakpoint l, the breakpoint complex voltage difference is:
El + jF = V lr V ls . (3.14)
Implementation results
17
CHAPTER 4. IMPLEMENTATION RESULTS 18
-5
Successive voltage difference (p.u.) 10
-6
10
-7
10
-8
10
-9
10
-10
10
-11
10
-12
10
-13
10
1 2 3
Iteration number
-3
3.0x10
-3 loop 1
2.5x10
loop 2
-3
2.0x10
PV 1
-3
PV 2
Voltage mismatch (p.u.)
1.5x10
PV 3
-3
1.0x10
-4
5.0x10
0.0
-4
-5.0x10
-3
-1.0x10
-3
-1.5x10
-3
-2.0x10
-3
-2.5x10
-3
-3.0x10
0 2 4 6 8 10 12
Iteration number
-4
2.1x10
-4
2.0x10
-4
1.9x10
Runtime (s)
-4
1.8x10
-4
1.7x10
-4
1.6x10
-4
1.5x10
-4
1.4x10
-4
1.3x10
-4
1.2x10
16
Iteration number
14
12
10
Convergence criteria
Figure 4.3: Runtime and iteration number under different convergence cri-
teria
-4
4.0x10
-4
3.5x10
Runtime (s)
-4
3.0x10
-4
2.5x10
-4
2.0x10
-4
1.5x10
30
Iteration number
25
20
15
10
1 2 3 4
Loop number
-4
2.8x10
-4
2.6x10
Runtime (s)
-4
2.4x10
-4
2.2x10
-4
2.0x10
-4
1.8x10
-4
1.6x10
-4
1.4x10
9
Iteration number
1 2 3 4
PV node number
sequence in the backward and forward sweeping process thus has an influence
on the final iteration number and runtime.
12
10
8
Iteration Number
0
10 15 20 25 30
PV node position
Network 1 2 3
Bus number 14 29 106
Loops 7 2 0
PV nodes 0 3 0
Transformers 4 13 5
-1
3.50x10
Sweeping algorithm
N-R
-1
3.25x10 G-S
-4
2.5x10
Runtime (s)
-4
2.0x10
-4
1.5x10
-4
1.0x10
-5
5.0x10
0.0
As shown in Figure 4.7, the sweeping algorithm uses the least runtime
for all networks. More concrete comparison is given in Table 4.2. Comparing
average runtime with the network characteristics, conclusion can be made
that the time-saving advantage of the sweeping algorithm is more obvious
CHAPTER 4. IMPLEMENTATION RESULTS 23
for networks with less loops and PV nodes. The reason of that is easy to
explain: for networks with more loops or PV nodes, more breakpoints are
added thus increasing effort is needed, which results in more runtime in the
calculation.
-8
10
-7
-6 10
10
-6
10
Voltage magnitude difference (p.u.)
-7
10
-8
10
-9
10
10 15 20 25 30
Bus number
-8
10
-6
-7
10
10
-6
10
Voltage magnitude difference (p.u.)
-7
10
-8
10
-9
10
10 15 20 25 30
Bus number
Conclusions
25
Appendix A
Benchmark networks
26
APPENDIX A. BENCHMARK NETWORKS 27
[1] William F Tinney and Clifford E Hart. Power flow solution by New-
tons method. Power Apparatus and Systems, IEEE Transactions on,
(11):14491460, 1967.
[2] S Suresh Reddy, S Sarat Kumar, and SVJ Kumar. Load flow solution
for ill-conditioned power systems using runge-kutta and iwamoto meth-
ods with facts devices. Journal of Theoretical & Applied Information
Technology, 5(6), 2009.
[3] Goran Andersson. Power system analysis. lecture notes, ETH Zurich.
[5] Fan Zhang and Carol S Cheng. A modified Newton method for radial
distribution system power flow analysis. Power Systems, IEEE Trans-
actions on, 12(1):389397, 1997.
[6] Vander Menengoy da Costa, Nelson Martins, and Jose Luiz R Pereira.
Developments in the Newton Raphson power flow formulation based on
current injections. Power Systems, IEEE Transactions on, 14(4):1320
1326, 1999.
[7] Paulo AN Garcia, Jose Luiz R Pereira, Sandoval Carneiro Jr, Vander M
da Costa, and Nelson Martins. Three-phase power flow calculations
using the current injection method. Power Systems, IEEE Transactions
on, 15(2):508514, 2000.
29
BIBLIOGRAPHY 30
[10] Guang-Xiang Luo and Adam Semlyen. Efficient load flow for large
weakly meshed networks. Power Systems, IEEE Transactions on,
5(4):13091316, 1990.
[14] Dragoslav Rajicic and Rubin Taleski. Two novel methods for radial
and weakly meshed network analysis. Electric power systems research,
48(2):7987, 1998.
[15] MH Haque. Efficient load flow method for distribution systems with ra-
dial or mesh configuration. IEE Proceedings-Generation, Transmission
and Distribution, 143(1):3338, 1996.
[18] Kultar Deep Singh and Smarajit Ghosh. A new efficient method for
load-flow solution for radial distribution networks. Przeglad
, Elektrotech-
niczny, 87:6673, 2011.
[19] Y Zhu and Kevin Tomsovic. Adaptive power flow method for distribu-
tion systems with dispersed generation. Power Delivery, IEEE Trans-
actions on, 17(3):822827, 2002.
[20] Dragoslav Rajicic, Risto Ackovski, and Rubin Taleski. Voltage correc-
tion power flow. Power Delivery, IEEE Transactions on, 9(2):1056
1062, 1994.