2 Control+of+VSc
2 Control+of+VSc
DC/AC
ZF Grid
Single-stage PV system: ZT ~
C
DC/AC
ZF Grid
Two-stage PV system: DC/DC
ZT ~
C
~
Renewable energy integration
Power Electronic Converters (PECs) are used to interface the
renewable sources with the grid. PECs are needed to facilitate the
exchange of energy between two (or more) subsystems i.e. Power
Conditioning e.g. :
• Photovoltaic (PV) systems generate DC, hence we need DC/AC
inverters to connect PV to the grid
• Due to the varying nature of the input power (i.e. solar irradiation
and wind speed), in most application, we need to make sure that we
extract the maximum power, which is called maximum power
point tracking (MPPT). This point occurs at a specific operating
point (e.g. a specific voltage or rotor speed). We need PECs to
impose that operating point in order to do MPPT.
Renewable energy integration
• Wind turbines/PV, due to their variable input power, generate
variable frequency/voltage electricity. Hence, PECs are needed to
connect it to a constant frequency/voltage system that is the grid.
PECs can be categorized into:
• DC/AC converters
• Inverters change DC to AC
• Rectifiers change AC to DC
• DC/DC converters
• Buck, output voltage < input voltage
• Boost, output voltage > input voltage
• AC/AC converters
• Indirect: two back to back AC/DC-DC/AC (AC/DC/AC)
• Direct: Matrix Converters
Renewable energy integration
Power Electronic Switches:
L
DC/AC
C DC/AC
signals.
Control mabc
Vt − abc = 0.5mabcVdc
PWM
system
Variable Load
PL, QL
Ipv Pcon
Qcon ZF Pg
Ppv Vdc Pdc
Icon Qg
Vcon
C Vc
Most (if not all) of the topics in this chapter are subject of ongoing
research and hence subject to change.
Renewable energy integration
Ipv Pcon
ZF CB Grid
Qcon Pg
Ppv Vdc Pdc
Icon Qg ZT ~
Vcon
C Vc
Variable Load
PL, QL
Ipv Pcon
Qcon ZF Pg
Ppv Vdc Pdc
Icon Qg
Vcon
C Vc
Modes of operation:
• Grid-connected (CB is closed). Normally operates in MPPT
• Islanded (CB is open). Load determines the generation
• Standalone i.e. only one unit
• More than one units. A load sharing scheme is required
Renewable energy integration
Ipv Pcon
ZF CB Grid
Qcon Pg
Ppv Vdc Pdc
Icon Qg ZT ~
Vcon
C Vc
Variable Load
PL, QL
Ipv Pcon
Qcon ZF Pg
Ppv Vdc Pdc
Icon Qg
Vcon
C Vc
Variable Load
PL, QL
Ipv Pcon
Qcon ZF Pg
Ppv Vdc Pdc
Icon Qg
Vcon
C Vc
Variable Load
PL, QL
Ipv Pcon
Qcon ZF Pg
Ppv Vdc Pdc
Icon Qg
Vcon
C Vc
u s = u + ju
u = U cos( ) and u = U sin( )
d
= (θ = ωt+θ0)
dt
dt =and
and 3((ee 3++ee 3 ++ee u ))== 00,,givesgives::
1 − 1 b
u
uus=0=Ue jj((tt++00))
u
Ue
s
3 3 c
1 0
a
u
u = − 1 3 u
Inverse Clarke transform: αβ to abc :
b 2 2 u
uc − 1 − 3
2 2
αβ-frame:
So dq-frame can be
considered as rotating
αβ-frame.
2 4 u
ud 2 cos( ) cos( − 3 ) cos( − 3 )
a
u = u b
q 3 − sin( ) − sin( − 2 ) − sin( − 4 ) u
3 3 c
For now let’s assume that the DC side of VSC is connected to a constant
DC voltage source.
The control purpose is to independently control the active and reactive
power from the VSC, through controlling its AC current in dq frame.
The PLL provides the grid phase angle in order to synchronise the dq
frame with it.
Grid-connected VSC θ
Vgd
kp ω0
in dq frame: Vg-abc abc/dq Vgq ω θ
0 - ki
0 = 2f 0 in UK f 0 = 50 Hz 1/2π f
There are many different types of PLL. The most common one, which is
shown above, is called: synchronously-reference-frame (SRF)-PLL.
PLL synchronises the VSC with the grid frequency through making
Vgq=0. Why?
Vga = V cos(t )
space phasor:
2 vs = Ve j (t )
Vgb = V cos t −
3
4
Vgc = V cos t −
3
Grid-connected VSC θ
Vgd
kp ω0
in dq frame: Vg-abc abc/dq Vgq ω θ
0 -
0 = 2f 0 in UK f 0 = 50 Hz ki 1/2π f
Id Compensation
- terms
Id* md
C(s)
Iq* mq
C(s)
-
Iq Compensation
terms
Iq* Fq Iq
C(s) Gq(s)
-
ki k p s + ki Iq
C (s) = k p + =
s s
Id Compensation
- terms
Id* md
C(s)
Iq* mq
C(s)
-
Iq Compensation
terms
di
KVL (in space phasor): vt = Ri + L + v g
dt
d ( I dq e jt )
L = Vt − dq e jt − RI dq e jt − Vg − dq e jt →
dt
dI dq j t j t j t j t j t e − j t
L e + jI dq Le = Vt − dq e − RI dq e − Vg − dq e ⎯⎯⎯→
dt
dI dq U =U + jU
L = − jI dq L + Vt − dq − RI dq − Vg − dq ⎯⎯
dq
⎯d ⎯
⎯q →
dt
dI d
L dt = LI q + Vtd − RI d − Vgd
L dI q = − LI + V − RI − V It is noted that
dt d tq q gq
• At steady state: ω≈ω0
• There is a cross-link between the 2
equations through LωIdq.
Current Loop:
sLI d + RI d = LI q + Vtd − Vgd
Rearrange and write in Laplace domain:
sLI q + RI q = − LI d + Vtq − Vgq
Thus: Id
Id 1 Id*
-
Fd Id
Gd ( s ) = = C(s) Gd(s)
Fd R + Ls
Iq
Iq 1 Iq* Fq
Gq ( s ) = = -
C(s) Gq(s)
Fq R + Ls
Iq
Current Loop: Id 1
Gd ( s ) = =
Fd R + Ls
These equations describe 2 decoupled, 1st
Iq 1
order, linear systems. Gq ( s ) = =
Fq R + Ls
Idq can be controlled by Fdq. However, Fdq is not the real control input,
but mdq is. The average model of VSC in dq domain is: Vtd = 0.5mdVdc
Vtq = 0.5mqVdc
Thus, from Fdq,
through adding Id Vgd
-
Fd Vtd md
Id*
‘compensation terms’, C(s) /
-
Vt-dq is calculated, Iq Lω mabc
0.5Vdc dq/abc PWM
Id Lω
which will be divided Vtq mq
Iq* Fq /
C(s)
by 0.5Vdc to get mdq: -
Iq Vgq θ
Current Loop:
k p s + ki 1
C (s) = G (s) =
s R + Ls
Obviously, C(s) is the same for both d and q loop since Gd(s)=Gq(s).
R
Ls s +
L
Current Loop:
k
kps + i
k
OLTF = C ( s ) G ( s ) =
p
R
Ls s +
L
Since the plant has pole at s=-R/L, which is relatively close to the
origin, one method is to use the zero of the controller to cancel it i.e.
ki R
=
kp L
Thus, the closed loop transfer function (CLTF) will be:
kp
I C (s) G (s) Ls 1 L
CLTF = * = = = where ti =
I 1 + C (s) G (s) 1 + k p ti s + 1 kp
Ls
Hence, the bandwidth of the response of I to I* (i.e. fi) is determined by
the 1st order the low-pass filter: 1
i = 2f i =
ti
Current Loop:
As a general guideline, the controller bandwidth should be at least 10
times slower than the switching frequency:
There are other criteria, e.g.: 1 sw = 2f sw
i = 2f i =
ti 10
L Rk p
kp = and ki =
ti L
kp
I C (s) G (s) 1 k p s + ki L 1
CLTF = * = = Ls =C ( s ) = where t = G ( s ) =
I 1 + C (s) G (s) 1 + k p ti s + 1 s i
kp R + Ls
Ls
Characteristic equation is the denominator of CLTF=1+OLTF:
k p s + ki Ls 2 + ( R + k p ) s + ki (R + k p ) ki
Ch. Eq. = 1 + = =0→s +
2
s+ =0
s ( R + Ls ) s ( R + Ls ) L L
2 ki
n = → k i = L n
2
L
s + 2n s + n
2
2
=0→
2 = ( R + k p ) → k = 2 L − R
n
L
p n
Current Loop:
2 ki
n = → k i = L n
2
L
s 2 + 2n s + n
2
=0→
2 = ( R + k p ) → k = 2 L − R
n
L
p n
2 kiv
n = 0.5C → kiv = 0.5Cn
2
s 2 + 2n s + n
2
=0→
2 = k pv → k = C
n
0.5C
pv n
DC-link Fv = Ppv − 1.5Vgd I d (Vpv*)2
- Fv Vpv2
Cv(s) Gv(s)
voltage
k pv s + kiv 1
control: Gv =
Cv = 0.5Cs
s
2 kiv
n = → k iv = 0 . 5C n
2
0.5C
s 2 + 2n s + n
2
=0→
2 = k pv → k = C
n
0.5C
pv n
Note that Fv is not the actual control input, Id is. So compensation terms
are considered to calculate the current reference:
Id =Id * * Ppv − Fv
Fv = Ppv − 1.5Vgd I d ⎯⎯⎯→ I d =
1.5Vgd
Id Vgd
Vpv* (Vpv*)2 Fv - Id* - Vtd md
MPPT ^2 Cv(s) Fd /
- / C(s)
Vpv Vpv2 Ppv
-
^2 Iq Lω mabc
1.5Vgd 0.5Vdc dq/ PWM
Id Lω abc
Iq* Fq Vtq mq
-Q* /
/ C(s)
-
Iq Vgq
θ
Current loop
Reactive power control: Id Vgd
2
Vpv* (Vpv*) Fv - Id* - Vtd md
MPPT ^2 Cv(s) Fd /
- / C(s)
Vpv Vpv2 Ppv
-
^2 Iq Lω mabc
1.5Vgd 0.5Vdc dq/ PWM
Id Lω abc
Iq* Fq Vtq mq
For reactive power control -Q*
/ C(s) /
we know that: -
Iq Vgq
−Q* θ
Q = −1.5Vgd I q → I q * = Current loop
1.5Vgd
• Controlling Q as above, is not very precise as it is an open loop
control (no feedback). Thus normally a power loop is also designed.
• Normally Q*=0 in order to have a unity PF (PF=1).
• It is also possible to control Iq in order to regulate the PF or the
converter voltage. This is similar to AVR systems (and excitation
current) in synchronous generators.
• In modern networks, the DGs are required to provide ancillary
services such as voltage and frequency support. This is known as
Active Network Management.
DC/AC
DC-link Ipv
Grid
ZF
voltage Vpv DC/DC Vdc
~
C
control:
Ipv Vpv* Voltage
MPPT
Vpv Loop
For start let’s consider only one unit. The DG unit is supposed to supply
the load i.e. at steady state P=PL and Q=QL. Therefore:
ω=ω0 θ θ
θ=ωt
ω=ω0 θ θ
θ=ωt
Islanded
operation:
ω=ω0 θ θ
θ=ωt
Writing KCL (in space phasor) for the node of filter capacitor Cf :
dv g
ic = C f = i − iL
dt
KCL in dq frame:
Cf
(
d Vg − dq e jt )= I e j t
− I e j t
dq L − dq
dt
Islanded operation:
d (Vg − dq e jt )
Cf = I dq e jt − LL − dq e jt → Apply Product Rule on Line 1 to get Line 2
dt
dVg − dq j t j t j t j t e − j t
Cf e + jVg − dq C f e = I dq e − I L − dq e ⎯⎯⎯→
dt
Multiply with e^-jwt to get simplify line 2 to line 3.
dVg − dq U =U + jU
Cf = − jVg − dq C f + I dq − I L − dq ⎯⎯
dq
⎯d ⎯
⎯q →
dt
dVgd
C f = C f Vgq + I d − I Ld
dt Real Part of the above which relates to d -ive absent due to j2=-1
C dVgq = −C V + I − I
f dt f gd q Lq It is noted that:
Imaginary part is related to q for above equation • ω=ω0
• There is a cross-link between the 2
equations through Cf ωVg-dq.
Islanded operation:
sC f Vgd = C f Vgq + I d − I Ld
write in Laplace domain:
sC f Vgq = −C f Vgd + I q − I Lq
Due to the presence of Cf ω terms, the dynamic of Vgd and Vgq are
coupled. In order to decouple them, a new control input of Ndq is
defined:
sC f Vgd = N d , N d = C f Vgq + I d − I Ld
sC f Vgq = N q , N q = −C f Vgd + I q − I Lq
Thus:
Vgd 1 Vgd* -
Nd Vgd
Gvd ( s ) = = Cg(s) Gvd(s)
Nd C f s
Vgq* Nq Vgq
Vgq 1 Cg(s) Gvq(s)
Gvq ( s ) = = -
Nq C f s
Islanded
operation:
, N q = −C f Vgd + I q − I Lq → I q = N q + C f Vgd + I Lq
*
sC f Vgq = N q
Islanded operation:
sC f Vgd = N d , N d = C f Vgq + I d − I Ld → I d = N d − C f Vgq + I Ld
*
, N q = −C f Vgd + I q − I Lq → I q = N q + C f Vgd + I Lq
*
sC f Vgq = N q
Fq Vtq mq
Vgq* Nq Iq* C(s) /
Cg(s)
- -
Vgq ILq Iq Vgq
θ
Current loop
Islanded operation:
Vgd ILd Id Vgd
Vgd*=1 - Nd Id*
-
Fd Vtd md
Cg(s) C(s) /
pu
- -
Vgq Cf ω Iq Lω
0.5Vdc dq/ mabc
PWM
Vgd Cf ω Id Lω abc
Fq Vtq mq
Nq Iq* /
Vgq*=0 Cg(s) C(s)
- -
Vgq ILq Iq Vgq
θ
Current loop
2 2
| Vg |= Vgd + Vgq 1 pu
If there are more than one unit in islanded mode, a load sharing
algorithm is required.
• Master-slave: One DG (master) imposes the frequency and the other
units (slaves) are synchronised to it. Reliability issues as the whole
system depends on the master.
• Droop control: All DGs share of the control of V and f through
sharing the loads PL and QL. It may suffer from poor transient
response and stability issues.
Ipv Pcon-1 P1
Droop control: Qcon-1 R+jωL Q1
Ppv C Vpv Pdc
I1abc IL1-abc
V t-abc Cf Qc1
PL, QL
Ipv Pcon-2 P2
Qcon-2 R+jωL Q2
Ppv C Vpv Pdc
I2abc IL2-abc
V t-abc Cf Qc2
Vg-abc
Pmax ω0 V0
Δω ΔV
V
V = V0 − nQ , n =
*
P
Qmax Pmax Qmax Q
P1m1 = P2 m2 = ... =
Q1n1 = Q2 n2 = ... = V
P2 P Q
P1 Q1 Q2
Droop control:
Therefore, the complete control system for each unit is:
Vgd ILd Id Vgd θ
*
ω θ Vgd*=V* - Nd - Vtd md
P m Id* Fd /
Cg(s) C(s)
- Vαβ *=V*ejθ - -
ω0
Vgq Cf ω Iq Lω
(this 0.5Vdc dq/ mabc
makes: Vgd Cf ω Id Lω abc
*
Q V Vgd*=V* Vtq mq
n Vgq*=0 Nq Iq* Fq /
- Vgq*=0) Cg(s) C(s)
V0 - -
Vgq ILq Iq Vgq
Droop
Voltage loop Current loop
𝑉𝑔−𝑎𝑙𝑓𝑎 ∗ = 𝑉 ∗ cos 𝜃
Note that P and Q are the
= 0 − mP , m =
*
𝑉𝑔−𝑏𝑒𝑡𝑎 ∗ = 𝑉 ∗ sin 𝜃
Pmax
Using αβ to dq average active and reactive
V
V = V0 − nQ , n =
* transform will give:
Qmax Vgd*=V* power, measured after the
and Vgq*=0
filter.
Pcon-1 P1
Qcon-1 R+jωL Q1
θ1 VDC1
I1 IL1
Cf Vg1
dq/abc
mabc-1
Q1 P1
Vg1-d*=V1*
mdq-1 Voltage
Current I1-dq* Droop
loop
loop Vg1-q* =0 1/S PL, QL
ω1*
θ1
Vg1-dq
Vg1-dq Vg1
VDC1
IL1-dq abc/dq IL1
I1-dq I1
Pcon-2 P2
θ2 Qcon-2 R+jωL Q2
VDC2
I2 IL2
Cf Vg2
dq/abc
mabc-2
Q2 P2
Vg2-d*=V2*
mdq-2 Voltage
Current I2-dq* Droop
loop
loop Vg2-q* =0 1/S
ω2*
θ2
Vg2-dq VPCC
Vg2-dq Vg2
VDC2
IL2-dq abc/dq IL2
I2-dq I2