You are on page 1of 18

Single-machine innite bus system

Rusejla Sadikovic
Internal report
Zurich, 07.07.2003
The purpose of this report is to verify the model of synchronous machine
in SIMULINK and MATLAB. The system of study is the one machine con-
nected to innite bus system through a transmission line having resistance
r
e
and inductance x
e
shown in Figure 1.
I
r
e
x
e
infinite
bus
E
t
E
b
Figure 1: One machine to innite bus system
The model of generator in SIMULINK is shown on Figure 2. The generator
is modeled by transient model, according to the following equations. All
system data can be found in Appendix.
Stator winding equations:
v
q
= r
s
i
q
x
d

i
d
+ E
q

(1)
v
d
= r
s
i
d
+ x
q

i
q
+ E
d

(2)
where
r
s
is the stator winding resistance
x
d

is the daxis transient resistance


x
q

is the qaxis transient resistance


E
q

is the qaxis transient voltage


E
d

is the daxis transient voltage


Rotor winding equations:
T
do

dE
q

dt
+ E
q

= E
f
(x
d
x
d

)i
d
(3)
T
qo

dE
d

dt
+ E
d

= (x
q
x
q

)i
q
(4)
where
T
do

is the daxis open circuit transient time constant


1
T
qo

is the qaxis open circuit transient time constant


E
f
is the eld voltage
Torque equation:
T
el
= E
q

iq + E
d

i
d
+ (x
q

x
d

)i
d
i
q
(5)
Rotor equation:
2H
d
dt
= T
mech
T
el
T
damp
(6)
T
damp
= Dw (7)
where
T
mech
is the mechanical torque, which is constant in this model
T
el
is the electrical torque
T
damp
is the damping torque
D is the damping coecient.
There are two blocks in Figure 2, named qde2qdr and qdr2qde. These
blocks represent the transformation of the synchronously rotating reference
input value to the reference frame rotating with the rotor, and vice versa.
The transformation matrices are:
T =

cos sin
sin cos

and T
1
=

cos sin
sin cos

(8)
where is the rotor angle.
The investigation of the behavior of the generator is done in two ways. In the
rst case the inputs are the innite bus voltage, transformed into rotating
frame, the eld voltage and the mechanical torque, Figure 3. The machine
terminal and innite bus voltages in terms of the d and q components are

E
t
= v
d
+ jv
q
(9)

E
b
= E
bd
+ jE
bq
(10)
Referring to Figure 1, the network constraint equation is

E
t
=

E
b
+ (r
e
+ jx
e
) (11)
(v
d
+ jv
q
) = (E
bd
+ jE
bq
) + (r
e
+ jx
e
)(i
d
+ ji
q
) (12)
2
Resolving into d and q components gives
v
d
= r
e
i
d
x
e
i
q
+ E
bd
(13)
v
d
= r
e
i
q
+ x
e
i
d
+ E
bq
(14)
where the innite bus voltage is transformed into rotating reference form by
block qde2qdr.
3
6
Edpe
5
Eqpe
4
dw
3
delta
2
Vd
1
Vq
Eqp
Edp
delta
Eqpe
Edpe
qdr2qde
iqe
ide
delta
vqr
vdr
qde2qdr
id
Edp
iq
Eqp
Tel
Torque
Eqp
Edp
iq
id
Vq
Vd
Stator winding
Ef
iq
id
Edp
Eqp
Rotor winding
Tmech
Tel
out_delta
dw
Rotor
4
Tmech
3
Ef
2
ID2
1
IQ2
Figure 2: Generator model in SIMULINK
4
Id
Iq
qde2qdr
Efo
Vref1
1
Vinfr
0
Vinfi
delta
To Workspace2
voltages
To Workspace1
t
To Workspace
Tmech
Tmech
IQ
ID
Ef
Tmech
VQ
VD
delta
Eqpe
Edpe
Syn_gen
Scope2
Scope1
Mux
Mux1
infinitive bus
f(u)
Fcn1
f(u)
Fcn
Clock
Figure 3: Generator model in SIMULINK connected to the innite bus
5
Using stator Equations (1) and (2) to eliminate e
d
and e
q
in Equations (12)
and (13) yields the following expressions for i
d
and i
q
in terms of the state
variables E
d

, E
q

, and innite bus voltage:


i
d
=
(E
d

E
bd
)(r
s
+ r
e
) + (x
e
+ x
q

)E
q

(x
e
+ x
q
)(x
e
+ x
d

) + (r
e
+ r
s
)
2
(15)
i
q
=
(E
q

E
bq
)(r
s
+ r
e
) (x
e
+ x
d

)(E
d

E
bd
)
(x
e
+ x
q
)(x
e
+ x
d

) + (r
e
+ r
s
)
2
(16)
The stator voltage equations (1) and (2), without the external RL line pa-
rameters, are used to compute the terminal voltage of the generator within
the block stator winding.
The block innite bus, from Figure 3 performs the steady state values of
machine variables. The input equations for steady state values are:
I
t
= conj
S
b
E
b
(17)
E
q
= E
b
+ [(r
s
+ r
e
) + j(x
q
+ x
e
)]I
t
(18)
delt
0
= angle(E
q
) (19)
E
q0
= abs(E
q
) (20)
I = I
t
(cos(
0
) + jsin(
0
)) (21)
I
qo
= real(I) (22)
I
do
= imag(I) (23)
E
f0
= E
q0
+ (x
d
x
q
)I
d0
(24)
V
t
= V
i
+ I
t
(r
e
+ jx
e
) (25)
S
t0
= V
t
conj(I) (26)
Tmech = real(S
t0
) (27)
where
E
b
- innite bus voltage phasor
S
b
- complex power delivered to innite bus
I
t
- phasor current of generator
E
t
- terminal voltage phasor
E
q
- Voltage behind q-axis reactance
I - generator current in its rotor reference frame

0
- internal rotor angle
E
f0
- referent input voltage presenting the eld voltage
6
V
t
- terminal voltage of generator
Figures 4 and 5 present the results of SIMULINK simulations of the gen-
erator voltage and rotor angle, based on above mentioned method.
0 5 10 15 20 25 30 35 40 45 50
1.36
1.361
1.362
1.363
1.364
1.365
1.366
1.367
1.368
V
o
l
t
a
g
e

m
a
g
n
i
t
u
d
e

[
p
.
u
.
]
time [s]
Figure 4: Generator terminal voltage
0 5 10 15 20 25 30 35 40 45 50
0.5
0.502
0.504
0.506
0.508
0.51
0.512
time [s]
R
o
t
o
r

a
n
g
l
e

[
r
a
d
]
Figure 5: Rotor angle with
0
initial conditions
7
In the Figure 6 generator model with the dynamic equations interfaced to
the algebraic equations of the static network is presented. This model is
obtained by equalized stator voltage equations, Eq.1 and Eq.2, and network
constraint equation, Eq. 11, with transient saliency ignored (x
d

= x
q

). The
resulting equation is:
(E

d
+ jE
q

) (E
bd
+ jE
bq
) = [(r
e
+ jx
e
) + (r
s
+ jx
d
)](i
d
+ ji
q
) (28)
According to this equation, Eq. 28, the impedance of the generator is easily
added to network impedance. In the Figure 7 the network block is presented,
where RZ and IZ are the real part and imaginary part respectively of the
common admittance. Figures 8 and 9 present the results of SIMULINK
simulations of the generator voltage and rotor angle, based on this method
which is basically the same as the rst method, but if there exist several
generators in the network, the rst method is useless.
As can be noticed, the rotor angles for both case are the same, but not the
voltages. The reason is neglecting of saliency in the second case so the i
d
and
i
q
currents have dierent values.
8
Eq1
Eq2
Ed1
Ed2
iq
id
network
0
Vref3
1
Vref2
Efo
Vref1
Tmech
Tmech
IQ
ID
Ef
Tmech
VQ
VD
delta
Eqpe
Edpe
Syn_gen_ref1
Scope2
Scope1
infinitive bus
Figure 6: Generator model in SIMULINK connected to the innite bus
9
2
id
1
iq
Demux
q
Demux
d
Sum3
Sum2
Sum1
Sum
K
RZ*q
K
RZ*d
K
IZ*q
K
IZ*d
4
Ed2
3
Ed1
2
Eq2
1
Eq1
-
+
-
-
+
+
+
+
Figure 7: Inside the network block
0 5 10 15 20 25 30
1.1046
1.1046
1.1046
1.1046
1.1046
1.1046
1.1046
time [s]
V
o
l
t
a
g
e

m
a
g
n
i
t
u
d
e

[
p
.
u
.
]
Figure 8: Generator terminal voltage
10
0 5 10 15 20 25 30
0.5089
0.5089
0.5089
time [s]
R
o
t
o
r

a
n
g
l
e

[
r
a
d
]
Figure 9: Rotor angle with
0
initial conditions
In Figure 10, one machine connected to the innite bus system is shown,
on the way how is presented in the previous case, shown in Figure 3, but
with exciter and PSS included. Figures 11 and 12 represent the blocks of the
exciter and PSS.
11
1
Vt
qde2qdr
IQ1
ID
Ef
Tmech
VQ
VD
delta
dw
Eqpe
Edpe
Syn_gen_ref1
Scope1
Scope
dw Vsupp
PSS
Mux
Mux1
infbusexciter
f(u)
Fcn2
f(u)
Fcn1
f(u)
Fcn
Vref
Vt
Vpss
Ef
Exciter
0
Constant3
1
Constant2
-C-
Constant1
Vref
Constant
Figure 10: SIMULINK model of generator with the exciter and PSS
1
2
K
A
S
V
ref
1
1+sT
R
V
S
1+sT
A
V
RMAX
V
RMIN
S
V
R
sK
F
1+sT
F
K
E
1+sT
E
E
fd
S
e
-
+
V
PSS
-
+
-
-
+
Figure 11: SIMULINK model of AVR and exciter
K
PSS
V
SMAX
sT
W
1+sT
W
V
PSS
V
SMIN
1+sT
1
1+sT
1
1+sT
2
1+sT
2
1+sT
1
1+sT
3
1+sT
2
1+sT
4
Rotor speed
deviation
Gain Washout filter
Lead / Lag
Figure 12: SIMULINK model of PSS
The absolute value of the terminal voltage and the response of the rotor angle
for the system with the exciter and PSS are shown in Figure 13.
To check is this model correct or not, input referent voltage for the exciter
is set on 1[pu]. The response of the system is in Figure 14.
13
0 5 10 15 20 25 30 35 40 45 50
1.1
1.2
1.3
1.4
V
o
l
t
a
g
e

m
a
g
n
i
t
u
d
e
0 5 10 15 20 25 30 35 40 45 50
0.5
0.6
0.7
0.8
0.9
1
time [s]
R
o
t
o
r

a
n
g
l
e
Figure 13: Response of generator equipped with the exciter and PSS with
initial condition
0 5 10 15 20 25 30 35 40 45 50
0.9
0.95
1
1.05
1.1
1.15
1.2
1.25
1.3
1.35
1.4
time [s]
V
o
l
t
a
g
e

m
a
g
n
i
t
u
d
e
Figure 14: Terminal generator voltage with Vref of 1 [pu]
14
Terminal faults on a synchronous machine
The purpose of this part is to examine the response of a synchronous ma-
chine to electrical faults applied at its stator terminals. For the synchronous
machine connected to the innite bus according to Figure 3, the response of
the voltage and angle are shown in Figure 15 and in Figure 16.
0 5 10 15 20 25 30
1
1.1
1.2
1.3
1.4
time [s]
|
V
t
|
0 5 10 15 20 25 30
0
0.2
0.4
0.6
0.8
1
time [s]
R
o
t
o
r

a
n
g
l
e
Figure 15: Response of generator to 0.2-sec duration fault at its terminal
15
0 5 10 15 20 25 30 35 40 45 50
0.8
0.9
1
1.1
1.2
1.3
1.4
1.5
V
o
l
t
a
g
e

m
a
g
n
i
t
u
d
e
0 5 10 15 20 25 30 35 40 45 50
0.5
0.6
0.7
0.8
0.9
1
time [s]
R
o
t
o
r

a
n
g
l
e
Figure 16: Response of generator equipped with exciter and PSS to 0.2-sec
duration fault on its stator terminal
16
References
[1] Chee-Mun Ong, Dynamic Simulation of Electric Machinery, Prentice Hall,
1998
[2] P. Kundur, Power System Stability and Control, McGraw-Hill, Inc.,1993
Appendix
The generator parameters in per unit are as follows:
X
d
= 1.79 X
q
= 1.66 X

d
= 0.355 X

q
= 0.57 R
s
= 0.0048
T

d0
= 7.9s T

q0
= 0.41s H = 3.77 D
w
= 2 T
mech
= 0.8s
The exciter parameters in per unit are as follows:
K
A
= 50 T
A
= 0.06s T
E
= 0.052s K
E
= 0.0465
T
F
= 1.0s K
F
= 0.0832 A
E
= 0.0012 B
E
= 1.264
V
max
R
= 1 V
min
R
= 1
The PSS parameters are:
wash-out network: K
s
= 120 T
w
= 1
lead-lag network: T
1
= 0.024 T
2
= 0.002
lag-lead network: T
3
= 0.024 T
4
= 0.24
The external line parameters are:
r
e
= 0.2 x
e
= 0
17

You might also like