Professional Documents
Culture Documents
Session 3
Power flows
Luis Ismael Minchala Avila
Universidad de Cuenca
Departamento de Elctrica, Electrnica y Telecomunicaciones
ismael.minchala@ucuenca.edu.ec
Power flows
1 / 52
Agenda
1
Introduction
Gauss elimination
Newton-Raphson
Power flows
2 / 52
Introduction
Introduction
Power flows
3 / 52
Introduction
Introduction
Power flows
3 / 52
Introduction
Introduction
Power flows
4 / 52
Introduction
Power flows
5 / 52
Introduction
WTs are further divided into fixed speed (Type 1), limited variable
speed (Type 2), or variable speed with either partial (Type 3) or full
(Type 4) power electronic conversion. In a Type 5 WT the mechanical
torque converter between the rotors shaft and the generators shaft
controls the generator speed to the electrical synchronous speed.
Ismael Minchala A. (UCuenca)
Power flows
6 / 52
Introduction
Power flows
7 / 52
Introduction
Power flows
8 / 52
Introduction
Power flows
9 / 52
Introduction
Power flows
10 / 52
Introduction
Power flows
11 / 52
Introduction
Power flows
12 / 52
Introduction
Type 5 WTG
Consist of a typical WTG variable-speed drive train connected to a
torque/speed converter coupled with a synchronous generator (SG).
The closely coupled SG, operating at a fixed speed can then be
directly connected to the grid through a synchronizing circuit breaker.
The SG can be designed appropriately for any desired speed (typically
6 pole or 4 pole) and voltage.
This approach requires speed and torque control of the torque/speed
converter along with the AVR, synchronizing system, and generator
protection system inherent with a grid-connected SG.
Power flows
13 / 52
Introduction
Power flows
14 / 52
Gauss elimination
A11
A21
..
.
A12
A22
..
.
...
...
..
.
A1N
A2N
..
.
AN1 AN2 . . .
ANN
x1
x2
..
.
y1
y2
..
.
(1)
yN
xN
Ax = y
A11 A12 . . .
0 A22 . . .
..
..
..
.
.
.
0
0 ...
A1,N1
A2,N1
..
.
A1N
A2N
..
.
ANN
Power flows
x1
x2
..
.
xN
y1
y2
..
.
(2)
yN
April 15th, 2015
15 / 52
Gauss elimination
A11
A21
..
.
A12
A22
..
.
...
...
..
.
A1N
A2N
..
.
AN1 AN2 . . .
ANN
x1
x2
..
.
y1
y2
..
.
(1)
yN
xN
Ax = y
A11 A12 . . .
0 A22 . . .
..
..
..
.
.
.
0
0 ...
A1,N1
A2,N1
..
.
A1N
A2N
..
.
ANN
Power flows
x1
x2
..
.
xN
y1
y2
..
.
(2)
yN
April 15th, 2015
15 / 52
Gauss elimination
Back substitution
xN
xN1 =
xk
yN
ANN
yN1 AN1,N xN
AN1,N1
P
yk N
n=k+1 Akn xn
Akk
Power flows
(3)
16 / 52
Gauss elimination
Gauss elimination
A11
..
.
A12
A22
A21
A11 A12
...
..
..
.
.
A21
...
AN2 A11 A12
A1N
...
A2N
A21
A11 A1N
..
.
ANN
A21
A11 A1N
x1
x2
..
.
xN
y1
A21
y1
y2 A
11
..
.
y1
yN AAN1
11
(4)
(2)
A11
0
..
.
0
(2)
A12
(2)
A22
..
.
0
...
...
..
.
(2)
A1N
(2)
A2N
...
ANN
Power flows
..
.
(2)
x1
x2
..
.
xN
y1
y2(2)
..
.
(2)
yN
(5)
17 / 52
Gauss elimination
10
5
2
0 9 10
5
6
6
=
2
2
3 10
6
3 10
6
10 5
x1
6
6
=
0 8
x2
8
1.8
x1
x2
(1)
x2 =
(1)
x1 =
(1)
y1 A12 x2
(1)
A11
y2
(1)
A22
1.8
= 0.225
8
6 (5)(0.225)
= 0.4875
10
Power flows
18 / 52
Gauss elimination
10
5
2
0 9 10
5
6
6
=
2
2
3 10
6
3 10
6
10 5
x1
6
6
=
0 8
x2
8
1.8
x1
x2
(1)
x2 =
(1)
x1 =
(1)
y1 A12 x2
(1)
A11
y2
(1)
A22
1.8
= 0.225
8
6 (5)(0.225)
= 0.4875
10
Power flows
18 / 52
Gauss elimination
5
2 3 1
x1
4 6
7
8
x2
9
10 12 14
x3
Power flows
19 / 52
x(i + 1) = g[x(i)] i = 0, 1, 2, . . .
k (i)
Continue until xk (i+1)x
<
xk (i)
x(i) is the ith guess, g is an N vector of functions that specify the iteration
method, and is a specified tolerance.
Power flows
20 / 52
The Jacobi method uses the old values of x(i) at iteration i to generate the new
value of xk (i + 1). That is:
"
#
k1
N
X
X
1
yk
Akn xn (i)
Akn xn (i)
xk (i + 1) =
Akk
n=1
k = 1, 2, . . . , N (8)
n=k+1
Power flows
21 / 52
The Jacobi method uses the old values of x(i) at iteration i to generate the new
value of xk (i + 1). That is:
"
#
k1
N
X
X
1
xk (i + 1) =
yk
Akn xn (i)
Akn xn (i)
Akk
n=1
k = 1, 2, . . . , N (8)
n=k+1
Power flows
21 / 52
x(i + 1) = Mx(i) + D1 y
M = D
D =
(9)
(D A)
A11 0
0 A22
..
0
.
..
..
.
.
0
0
Power flows
(10)
0 ...
0 ...
.. . .
.
.
.. . .
.
.
0 ...
0
0
..
.
0
ANN
(11)
22 / 52
=
x1 (i + 1)
x2 (i + 1)
=
1
10
1
9
5
5
10
0 10
=
=
0 19
29
0
29
0
5
1
0 10
x1 (i)
6
0
=
+ 10 1
x2 (i)
3
29
0
0 9
M
1
10 0
0 9
1
10
Power flows
23 / 52
=
x1 (i + 1)
x2 (i + 1)
=
1
10
1
9
5
5
10
0 10
=
=
0 19
29
0
29
0
5
1
0 10
x1 (i)
6
0
=
+ 10 1
x2 (i)
3
29
0
0 9
M
1
10 0
0 9
1
10
Power flows
23 / 52
0
0
0
1
0.6000
0.3333
2
0.4333
0.2000
3
0.5000
0.2370
4
0.4814
0.2222
5
0.4888
0.2263
...
...
...
10
0.48749
0.22500
Power flows
24 / 52
0
0
0
1
0.6000
0.3333
2
0.4333
0.2000
3
0.5000
0.2370
4
0.4814
0.2222
5
0.4888
0.2263
...
...
...
10
0.48749
0.22500
Power flows
24 / 52
Newton-Raphson
f(x) =
f1 (x)
f2 (x)
..
.
=y
(12)
fN (x)
0 = y f(x)
Adding Dx to both sides of (12), where D is a square N N invertible
matrix,
Dx = Dx + y f(x)
x = x + D1 [y f(x)]
x(i + 1) = x(i) + D1 {y f[x(i)]}
Ismael Minchala A. (UCuenca)
Power flows
(13)
April 15th, 2015
25 / 52
Newton-Raphson
f(x) =
f1 (x)
f2 (x)
..
.
=y
(12)
fN (x)
0 = y f(x)
Adding Dx to both sides of (12), where D is a square N N invertible
matrix,
Dx = Dx + y f(x)
x = x + D1 [y f(x)]
x(i + 1) = x(i) + D1 {y f[x(i)]}
Ismael Minchala A. (UCuenca)
Power flows
(13)
April 15th, 2015
25 / 52
Newton-Raphson
f
=
x x=x(i)
..
.
...
...
..
.
fN
x2
...
fN
xN
x1
f2
x1
x2
f2
x2
fN
x1
..
.
Power flows
(14)
f1
xN
f2
xN
..
.
(15)
26 / 52
Newton-Raphson
0
1
1
5.00000
2
3.40000
3
3.02353
Power flows
4
3.00009
5
3.00000
27 / 52
Newton-Raphson
0
1
1
5.00000
2
3.40000
3
3.02353
Power flows
4
3.00009
5
3.00000
27 / 52
Newton-Raphson
x1 + x2
x1 x2
=
15
50
x0 =
4
9
J(i)
x1 (i + 1)
x2 (i + 1)
f1
x1
f2
x1
f1
x2
f2
x2
=
i
x1 (i)
x2 (i)
=
x=x(i)
x1 (i)
x2 (i)
0
4
9
1
1
x2 (i) x1 (i)
1
+
x1 (i) x2 (i)
1
5.20000
9.80000
2
4.99130
10.00870
Power flows
1
1
=
x1 (i) x2 (i)
x1 (i) 1
x2 (i)
1
3
4.99998
10.00002
x1 (i) 1
x2 (i)
1
15 x1 (i) x2 (i)
50 x1 (i)x2 (i)
4
5.00000
10.00000
April 15th, 2015
28 / 52
Newton-Raphson
x1 + x2
x1 x2
=
15
50
x0 =
4
9
J(i)
x1 (i + 1)
x2 (i + 1)
f1
x1
f2
x1
f1
x2
f2
x2
=
i
x1 (i)
x2 (i)
=
x=x(i)
x1 (i)
x2 (i)
0
4
9
1
1
x2 (i) x1 (i)
1
+
x1 (i) x2 (i)
1
5.20000
9.80000
2
4.99130
10.00870
Power flows
1
1
=
x1 (i) x2 (i)
x1 (i) 1
x2 (i)
1
3
4.99998
10.00002
x1 (i) 1
x2 (i)
1
15 x1 (i) x2 (i)
50 x1 (i)x2 (i)
4
5.00000
10.00000
April 15th, 2015
28 / 52
Newton-Raphson
Newton-Raphson method
Equation (14) can be rewritten as follows:
(16)
J(i)x(i) = y(i)
x(i) = x(i + 1) x(i)
(17)
y(i) = y f[x(i)]
(18)
Power flows
29 / 52
Newton-Raphson
Newton-Raphson method
Equation (14) can be rewritten as follows:
(16)
J(i)x(i) = y(i)
x(i) = x(i + 1) x(i)
(17)
y(i) = y f[x(i)]
(18)
Power flows
29 / 52
Newton-Raphson
Complete the aforementioned four steps for solving the previos exercise.
x1 + x2
15
4
=
x0 =
x1 x2
50
9
Power flows
30 / 52
At each bus, two of these variables are specified as input data, and the
other two are unknowns to be computed by the power-flow program
Power flows
31 / 52
Power flows
32 / 52
Pk
= PGk PLk
(19)
Qk
= QGk QLk
(20)
Each bus k is categorized into one of the following three bus types:
1
Swing bus (or slack bus). The swing bus is a reference bus for which
V1 , tipically 1.00o
Load (PQ) bus. Pk and Qk are input data. The power-flow program
computes Vk and k .
Power flows
33 / 52
Pk
= PGk PLk
(19)
Qk
= QGk QLk
(20)
Each bus k is categorized into one of the following three bus types:
1
Swing bus (or slack bus). The swing bus is a reference bus for which
V1 , tipically 1.00o
Load (PQ) bus. Pk and Qk are input data. The power-flow program
computes Vk and k .
Power flows
33 / 52
Node equations
The node equations can be summarized into three steps:
1
(21)
..
..
.. .. = ..
.
.
.
.
.
. . .
YN1 YN2 . . .
YNN
VN0
IN0
where YNN is the bus admittance matrix, and VN1 and IN1 are
the voltage and current vectors.
Ismael Minchala A. (UCuenca)
Power flows
34 / 52
Node equations
The elements Yij of the admittance matrix are formed as follows:
Ykk
N
X
(22)
k=1
Ykn =
N
X
k=1
k6=n
The off-diagonal elements Ykn of Y are called mutual admittances and the
diagonal elements Ykk are called self-admitances. The node equations are
actually current equations written for each node in compliance with
Kirchhoffs current law.
Ismael Minchala A. (UCuenca)
Power flows
35 / 52
Bus
1
2
3
4
5
Type
Swing
Load
Const. voltage
Load
Load
V
1.0
1.05
-
(deg)
0
-
PG
0.0
5.2
0.0
0.0
QG
0.0
0.0
0.0
PL
0.0
8.0
0.8
0.0
0.0
QL
0.0
2.8
0.4
0.0
0.0
QGmax
4.0
-
QGmin
-2.8
-
Power flows
36 / 52
R0
0.0090
0.0045
0.00225
X0
0.100
0.050
0.025
G0
0.0
0.0
0.0
B0
1.72
0.88
0.44
max MVA
12.0
12.0
12.0
R
0.00150
0.00075
X
0.02
0.01
Gc
0.0
0.0
Bm
0.0
0.0
max MVA
6.0
10.0
Input data
V1 = 1.0, 1 = 0.0
P2 = PG 2 PL2 = 8
Q2 = QG 2 QL2 = 2.8
V3 = 1.05
P3 = PG 3 PL3 = 4.4
P4 = 0, Q4 = 0
P5 = 0, Q5 = 0
Power flows
Unknows
P1 , Q1
V2 , 2
Q3 , 3
V4 , 4
V5 , 5
April 15th, 2015
37 / 52
Power flows
38 / 52
Power-flow equations
For power system and load flow analysis, a set of power balance equations
is used:
Pk
Qk
= Vk
= Vk
N
X
n=1
N
X
Ykn Vn cos (k n kn )
(24)
Ykn Vn sin (k n kn )
(25)
n=1
where Vk and k are the magnitude and angle of node k voltage; Ykn and
kn are the magnitude and angle of the element of the k-th row and n-th
column of the admittance matrix Y; and Pk and Qk are the active and
reactive power at node k.
Power flows
39 / 52
2
..
.
;
x =
=
V
V2
..
.
VN
P2
..
.
PN
P
y=
=
Q
Q2
..
.
QN
P2 (x)
..
P(x)
P
(x)
N
f(x) =
=
Q(x)
Q2 (x)
..
.
QN (x)
where all V, P and Q terms are in per-unit and terms are in radians.
Ismael Minchala A. (UCuenca)
Power flows
40 / 52
yk
yk+N
= Pk = Pk (x) = Vk
= Qk = Qk (x) = Vk
N
X
Ykn Vn cos (k n kn )
n=1
N
X
Ykn Vn sin (k n kn )
(26)
(27)
n=1
k = 2, 3, . . . , N
P2
...
2
..
..
.
.
PN . . .
2
J =
Q2
...
2
..
..
.
.
QN
2
...
P2
N
..
.
P2
V2
..
.
PN
N
PN
V2
Q2
N
Q2
V2
QN
N
QN
V2
..
.
..
.
Power flows
...
..
.
...
P2
VN
...
..
.
...
Q2
VN
..
.
PN
VN
..
.
QN
VN
(28)
41 / 52
J2kn
J3kn
J4kn
n=k
J1kk
Pk
n
Pk
n
Qk
n
Qk
n
Pk
= Vk
k
= Vk Ykn Vn sin (k n kn )
= Vk Ykn Vn cos (k n kn )
= Vk Ykn Vn cos (k n kn )
= Vk Ykn Vn sin (k n kn )
N
X
Ykn Vn sin (k n kn )
n=1;n6=k
N
J2kk
X
Pk
= Vk Ykk cos kk +
Ykn Vn cos (k n kn )
k
n=1
J3kk
Qk
= Vk
k
N
X
Ykn Vn cos (k n kn )
n=1;n6=k
N
J4kk
X
Qk
= Vk Ykk sin kk +
Ykn Vn sin (k n kn )
k
n=1
Power flows
42 / 52
2
3
(29)
(30)
Compute
x(i + 1) =
(i + 1)
V(i + 1)
=
(i)
V(i)
+
(i)
V(i)
(31)
Starting with initial value x(0), the procedure continues until convergence
is obtained or until the number of iterations exceeds a specified maximum.
Ismael Minchala A. (UCuenca)
Power flows
43 / 52
Power flows
44 / 52
Power flows
45 / 52
Eg e j
Vt
P + jQ = Vt I = Vt
Re S =
Eg e j Vt
jXg
Vt Eg
sin
Xg
Vt
Im S =
(Eg cos Vt )
Xg
Power flows
(32)
(33)
April 15th, 2015
46 / 52
As the rotor speed increases, the power angle also increases, causing
an increase in generator real power output P. There is also a decrease
in reactive power output Q, given by (33).
From the power-flow standpoint, an increase in prime-move power
corresponds to an increase in P at the constant-voltage bus to which
the generator is connected. The power-flow program computes the
increase in along with the small change in Q.
Ismael Minchala A. (UCuenca)
Power flows
47 / 52
Power flows
48 / 52
Before the capacitor bank is connected, the switch SW is open and the bus
voltage equals ETh .
After the bank is connected, SW is closed, and the capacitor current IC
leads the bus voltage Vt by 90o . The phasor diagram shows that Vt is larger
than ETh when SW is closed.
From the power-flow standpoint, the addition of a shunt capacitor bank to a
load bus corresponds to the addition of a negative reactive load, since a
capacitor absorbs negative reactive power.
The power-flow program computes the increase in bus voltage magnitude
along with the small change in .
Ismael Minchala A. (UCuenca)
Power flows
49 / 52
Power flows
50 / 52
Summary
Power flows
51 / 52
Appendix
Questions
Preguntas
Power flows
52 / 52