Control of Shunt Active Filter
Control of Shunt Active Filter
6.1 Introduction
The SAF generates a current equal and opposite to the load current
harmonics and reactive power component at fundamental frequency to
achieve balanced, sinusoidal supply current which is in phase with the
voltage at PCC. The critical task of the SAF controller is to generate reference
current. The accuracy of the SAF current reference determines performance
of SAF. Reference current generation methods utilized in SAF applications
can summarized in two groups as frequency domain methods and time
domain methods. Frequency domain methods are based on Fourier analysis.
The time domain methods are more preferred over the former due to
less number of calculations and fast response during transients. There exist
two well known time domain methods of harmonic extraction in SAF appli-
cation based on: 1) Instantaneous reactive power (IRP) theory 2) Synchronous
reference frame theory (SRF), briefly introduced in Chapter 1. A review of the
two techniques is presented in next section. A method to extract SAF refer-
ence current based on SSI (Sine Signal Integrator) for single phase SAF
application is presented in this chapter. This technique is particularly suited
for single phase applications as it simplifies the task of generating orthogonal
signal which is a main hurdle in extracting reference current for single phase
SAF using IRP and SRF techniques.
113
Chapter 6. Control of Shunt Active Filter
The current controller controls switching of the VSI switches so that the
current injected by the VSI is exactly equal to the reference current. A review
of different current control techniques and M-PWM (modified PWM) current
control technique is also explained.
In spite of compensation of harmonic currents of the load, SAF leaves
switching frequency ripple in the supply current if not filtered. This requires
a switching ripple filter at the input of SAF. Design of a broad-band tuned
type switching ripple filter is presented at the end.
The p-q theory proposed by Akagi et. al. [H1] deals with instantaneous
powers. It is based on abc to 0 transformation to calculate instantaneous
real and imaginary powers p, q of the load can be separated into its average (
p , q ) and oscillating ( p , q ) parts respectively. Then the undesired portions of
real and imaginary powers of the load that should be compensated are
selected and compensating powers pc* , qc* are derived. The negative sign
114
Chapter 6. Control of Shunt Active Filter
Figure 6-2 Control method for three phase shunt compensation based on p-q theory
The merits and drawbacks of p-q theory are reported as [H2] as: 1) easy
implementation 2) excellent steady state performance and the drawback
being sensitivity to harmonics and unbalances in the supply voltage [H17].
115
Chapter 6. Control of Shunt Active Filter
utilizes phase angle information ( t ) of the utility voltage for the transfor-
mation of the quantities to synchronous rotating frame. The and dq
frames are illustrated in Fig. 6.3. In synchronous rotating frame, once the
transformation is carried out, the positive sequence components at funda-
mental frequency appear as dc quantities whereas negative sequence
components at and other frequency components (harmonics) appear as ac.
By employing proper filtering technique in the dq reference frame, the dc and
ac quantities can be easily separated. Once the filtering in the dq reference is
carried out, the desired dq reference signals are obtained and transformed
back to . The three phase current references can be obtained via to dq
transformation.
One important characteristics of the SRF theory is that the reference
currents are directly obtained from the load current without considering the
source voltage. This is an important advantage since the generation of refer-
ence current is not affected by supply voltage unbalance or distortion.
However, in order to transform to dq synchronous rotating frame, sine
116
Chapter 6. Control of Shunt Active Filter
Figure 6-3: Relationship between space vectors stationary and rotating frames.
Figure 6-4: Control method for three phase shunt compensation based on SRF theory.
The IRP (pq) and SRF (dq) theories are basically developed for three
phase systems. Due to their effectiveness, they can be also applied to single
phase systems. In three phase systems, three phase to two phase conversion
is carried out by using Clarke’s transformation. In single phase system, as
only one variable exists, the other fictitious variable has to be generated.
Literature presents different techniques to adapt IRP and SRF theories for
single phase systems [H8]-[H10], [H12]-[H16], [H18]. The basic concepts of
single phase IRP and SRF theories are discussed in the following section.
117
Chapter 6. Control of Shunt Active Filter
The single phase IRP theory is based on an instant lag or lead of the
2 2
voltage and current [H15] to define the original system as a pseudo two
phase system. The overall system can be represented in frame. The single
phase voltage representation of voltage in can be written as,
v(t )
v (t ) Vm sin(t )
v (t ) (6.1)
v(t ) Vm cos(t )
2
i(t )
i (t )
i (t ) (6.2)
i ( t )
2
The supply voltage in the above analysis is assumed to pure sinusoidal.
Once the single phase voltage and current are transformed into frame,
instantaneous powers can be calculated in the same way as they are for three
phase system.
SAF may need to absorb some additional active power for supplying its
losses and maintain dc bus voltage. The reference current for the SAF can be
calculated as,
118
Chapter 6. Control of Shunt Active Filter
Figure 6-5: Control of single phase shunt compensation using IRP (pq) theory.
harmonic current components with peak values Im,3 and Im,5 respectively. The
supply voltage is assumed to be pure sinusoidal at frequency with peak
value Vm. The representation of voltage and current can be as obtained as
v (t ) Vm sin(t )
v (t ) V cos(t ) (6.7)
m
119
Chapter 6. Control of Shunt Active Filter
Solving further,
p( wt ) Vm Im ,1 cos( ) Vm Im ,3 cos(4t ) Vm Im ,5 cos(4t ) (6.12)
The SAF reference current derived from application of IRP theory is such that
the resulting instantaneous active power is constant as seen by the supply
side. This means that the SAF will compensate for the oscillating component
of the load active power, p ( wt ) and reactive power component, q( wt ) . As
stated in [H17], the SAF controlled according to the IRP theory, in the pres-
ence of supply voltage harmonics “attempts” to compensate even an ideal,
resistive, unity-power factor load and the compensator injects a distorted
current into the supply system unnecessarily. In the present work, a method
based on SSI is used to extract fundamental component of supply voltage
before calculating instantaneous active and reactive powers as per IRP
theory.
reference frame. As stated previously, it requires a phase shift of in the
2
original variable to generate the component. The resulting equations in dq
120
Chapter 6. Control of Shunt Active Filter
reactive current components of the load and the non-dc terms, id (t ) and
iq (t ) represents harmonic components of active and reactive current. The dc
terms from id (t ) and iq (t ) can be easily extracted by using a low pass filter.
the controller for single phase SAF based on SRF theory is shown in Fig. 6.6
(6.8). The dq components of the load current can be calculated by using (6.19)
as,
121
Chapter 6. Control of Shunt Active Filter
Solving further,
It is evident from (6.25) that the 3rd and 5th harmonics are mapped to 4th
harmonic frequency in dq reference frame. The analytical calculations are
verified by simulation. The simulated waveforms of load current and its
harmonic spectra is shown in Fig. 6.7. It is seen that the load current has 3 rd
5th harmonics. The dq currents are shown in Fig. 6.8. The dq currents are
shown in Fig. 6.8a. The harmonic spectra of the dq currents, id and iq is shown
in Fig. 6.8b and 6.8c respectively. It is seen that the 3rd and 5th harmonics of
the load current are mapped to 4th harmonic in dq domain and the fundamen-
tal components are mapped to dc.
Figure 6-7: Load current and harmonic spectra for single phase SRF case
122
Chapter 6. Control of Shunt Active Filter
(a)
(b) (c)
Figure 6-8(a) id, iq waveforms (b) Harmonic spectra of id (c) Harmonic spectra of iq
123
Chapter 6. Control of Shunt Active Filter
s
GSOGI (s) (6.26)
s w02
2
Taking into account Laplace transform of a sine and cosine signal are:
s
Gsin e (s) (6.27)
s w02
2
0
G cosin e (s) (6.28)
s 02
2
124
Chapter 6. Control of Shunt Active Filter
Bode diagram of the continuous time domain transfer function of the SOGI
tuned to 0 2 50 rad/sec is shown in Fig. 6.10. Its phase diagram
cy. In rest of the frequencies, the phase takes the values from to rad.
2 2
One of the main characteristics of SOGI is that it presents very narrow band-
width around the resonant frequency, 0 i.e. it is very selective. It also rejects
the dc component, since it has a zero at s=0, thus it shown infinite attenuation
at 0 . The basic SOGI has the disadvantage of having infinite gain at
resonant frequency, which can make the system unstable. To avoid stability
problems associated with the infinite gain and to increase bandwidth, a
modified version of SOGI i.e. SSI can be used as shown in Fig. 6.11. The SSI
presents finite gain at the desired frequencies and adjustable bandwidth
through the gain ka.
The input signal is xi(t), while the output signal in phase with the input signal
is xo(t). The output quadrature signal is xoq(t). It can be seen that SSI consist of
SOGI plus a gain ka and a negative feedback path from xo(t). The transfer
function for each output correspond to (6.29) and (6.30) respectively and their
bode diagrams are as shown in Fig.6.12. In this diagram, a difference of
c x (s )
phases of is observed at 0 . Besides that, o behaves as a band pass
2 xi ( s )
125
Chapter 6. Control of Shunt Active Filter
xoq (s )
filter and the bandwidth is determined by value of ka and behaves as a
xi ( s )
In steady state operation the relationship between the phases of the transfer
functions H1 (s) and H2 (s) in frequency domain is,
H 1 (s ) H 1 (s ) (6.31)
2
The inherent capability to produce quadrature component is utilized in
generating instantaneous fundamental reactive power component of the
load.
(a) (b)
126
Chapter 6. Control of Shunt Active Filter
The block diagram for SAF reference current generation based on SSI
is depicted in Fig. 6.13. There are two SSI blocks to extract fundamental
components of supply voltage and load current respectively. The SSI v block
generates vs 1 and vs 1 components of the supply voltage vs . As the SSIv and
iL 1 from the actual load current iL . The output of the SSII block is the
As the system is single phase, i* component can be neglected and the i*
current ic* .
127
Chapter 6. Control of Shunt Active Filter
In indirect control of SAF, the supply current is sensed and the SAF
switches are controlled in such a manner so that the supply current is sinu-
soidal and in phase with the supply voltage. A This means the SAF current is
indirectly controlled. As the sensed current is sinusoidal at fundamental
frequency, this offers an advantage of selecting a low bandwidth current
transducer. Ideally, the supply should generate only fundamental active
component of the load current. In attempt to maintain sinusoidal and in
phase supply current, the SAF indirectly supplies the fundamental reactive
and harmonic current. The block diagram of the SAF reference current
extraction for indirect control is shown in Fig. 6.14. The SSI structure is as
same as shown for direct current control technique. As both of the SSI units
extract fundamental components of supply voltage and load current
v1 (t ) v1 (t )i1 (t ) v1 (t )i1 (t )
i* (t ) (6.34)
v2 (t ) v2 (t )
The desired supply current is addition of i* ( t ) and i1* dc . The use of SSI
128
Chapter 6. Control of Shunt Active Filter
Figure 6-13: Block diagram of single phase SAF direct control using SSI
Figure 6-14: Block diagram of SAF controller -indirect control using SSI
129
Chapter 6. Control of Shunt Active Filter
From the Bode diagrams shown in Fig. 6.12, it can observed the SSI is
sharply tuned to a particular frequency i.e. nominal frequency of the funda-
mental supply voltage. If the supply frequency deviates from its nominal
value, the gain of the SSI will drop sharply and consequently it will affect
and this will reduce the complexity of the PLL. The block diagram of the
proposed PLL structure is shown in Fig. 6.16. SSIV block generates com-
130
Chapter 6. Control of Shunt Active Filter
131
Chapter 6. Control of Shunt Active Filter
signals to the individual switches of VSI for regulation of SAF current. Per-
formance of current controller can be characterized by following
requirements [G8]:
Non sinusoidal multi frequency tracking.
Ability to operate with low VSI output inductance (Lac < 5%).
High di/dt reference current tracking and high current control-
ler. bandwidth for tracking of high frequency harmonics.
Minimization of low as well as high frequency errors in current.
Desired implementation by constant switching frequency PWM
scheme.
Maintain predictable ripple bounds.
Different current control strategies are reported in literature for SAF
applications. Hysteresis and sliding mode controls allow both a direct control
of the current but at the price of a time-varying switching frequency. Hyste-
resis current regulators are on-off type current regulators and widely utilized
for tracking of non-sinusoidal, multiple frequency and high di/dt current
references. When analog implementation is utilized, hysteresis current
regulators exhibit high bandwidth and superior tracking capability of the
reference currents with high di/dt. Various techniques to implement hystere-
sis control are discussed in [I2]-[I7]. The well known drawback of hysteresis
control technique is variable switching frequency. Hysteresis current regula-
tors also generate an undesirable ‘white noise’ current spectrum as a result of
variable inverter switching frequency. The design of the output filter is also
difficult for these methods as well as control of noise level. [G8].
Linear and on-off current controllers also form a viable solution for
SAF applications. The basic principle of the linear current regulators is
132
Chapter 6. Control of Shunt Active Filter
shown in Fig.6.19. The difference between the current reference and the
current feedback constitutes the current error signal which is converted to the
inverter voltage reference via the linear current regulator. The inverter
voltage reference is synthesized by carrier based PWM modulator. The
modulator creates the switching signals for the VSI to form the desired
current through the filter inductor which is connected between the VSI
output terminals and AC utility grid. The advantage of the linear current
regulators involves the carrier based PWM modulator implementation. In the
carrier based implementation, the switching frequency fsw can be adjusted to
a fixed value. The fixed fsw results in well defined switching current harmon-
ics on the current waveform. For a particular value of fsw, harmonics appear
at the frequency of fsw and multiple frequencies of fsw. Also, the fixed fsw is
kept high to achieve high bandwidth in SAF application. Therefore, since the
frequency of the switching harmonics is known and high, the elimination of
them is simple by a simple passive switching ripple filter structure at the
input terminals of the SAF. The drawback of PWM implementation is that a
sudden change of the reference signal results in unavoidable delay nearly
equal to one or one-half carrier period (PWM period = Tsw =1/fSW) depending
on the PWM implementation technique. Therefore, the switching frequency
is kept as high as possible to overcome this drawback while considering
thermal stability and capability limits of semiconductor switches .
The modulation methods for the PWM are divided into two main groups;
scalar PWM and space vector PWM. In the scalar PWM method, the voltage
reference wave (modulation wave) is compared with a triangular carrier
wave and the intersections define the switching instants for the switches of
VSI. In the space vector PWM method, the switch on-state durations are
133
Chapter 6. Control of Shunt Active Filter
calculated from the complex number from volt-seconds balance equation for
the inverter voltage and the switch pulse pattern is programmed via digital
PWM.
In this work, modified PWM (M-PWM) [I8] method has been used for
control of current. The technique is based on two comparisons between a
high frequency triangular carrier signal on one side and load harmonic and
its opposite on other side. As compared to standard PWM technique, use of
M-PWM pushes the first significant switching frequency harmonics in the
source current to twice the switching frequency. In addition, it eliminates
group of rays that are centered on odd multiples of switching frequency.
Principle of MPWM is illustrated in Fig. 6.20 and the timing diagram is
shown in Fig. 6.21. It is based on two comparisons: 1) between control signal,
and a high frequency triangular carrier and 2) between opposite of control
signal, and the same carrier. The control signal is assumed to be slow
varying signal and practically constant within each half period of triangular
carrier. The control signal is delivered by a closed loop PI controller which
tries to minimize the error ( ic* ic ). The effectiveness of the M-PWM method
can be studied by comparing its performance with the standard PWM tech-
nique [I8]. To validate the findings, an inverter operating at fsw =10 kHz is
simulated and the harmonic spectrums are studied. The harmonic spectrums
of both the cases are given in Fig.6.22 (a) and (b).
134
Chapter 6. Control of Shunt Active Filter
(a)
135
Chapter 6. Control of Shunt Active Filter
(b)
Figure 6-22: Comparison of vc spectrum: a) with S-PWM b) with M-PWM
The current ripple generated by the VSI of the SAF power circuitry can
spread to the power line through the PCC where the PAF system is con-
nected to the power system. High frequency switching harmonics create
noise problems for other loads connected to the same PCC. To filter the high
frequency switching ripple currents due to the switching of the VSI, passive
switching ripple filters are placed at the PCC as an integral part of the SAF.
Linear current regulators generate regular PWM ripples around the switch-
ing frequency and its multiples and sidebands over the frequency spectrum.
The M-PWM switching technique causes the switching ripple to be at 2fsw as
shown in the previous discussed above. This section presents overview of
different switching ripple filter topologies and design of broad band switch-
ing ripple filter topology to reduce switching ripples.
136
Chapter 6. Control of Shunt Active Filter
tuned to fsw should be utilized to filter the switching ripple currents of the
PAF when utilizing linear current regulators. Various filter topologies are
already shown in Fig. 3.4 of Chapter 3. Broad band tuned filter is the most
suitable choice considering the specific harmonic frequencies present in the
current.
137
Chapter 6. Control of Shunt Active Filter
1
fs (6.36)
2 LFCF
The size of C should be such that, C >> CF. As suggested in [F5], the value of
CF should be such that,
10CF C (6.37)
However, the larger C sizes are not preferred since they result in excessive
reactive power at the fundamental frequency. The equivalent circuit of broad
band switching ripple filter at harmonic frequencies is shown in Fig. 6.23.
The transfer function T(s) defined as the ratio of the line current IHS to har-
monic current source IH expressed in terms of filter circuit components CF, LF,
C, and Rd as follows,
138
Chapter 6. Control of Shunt Active Filter
Figure 6-23: Equivalent circuit of broad band tuned LCR type switching ripple filter and
AC supply side at harmonic frequencies
Therefore, the Rd value should be selected such that harmonics between the
two resonant frequencies are damped effectively. Selection of various para-
meters of switching ripple filter is illustrated with an example as shown
below. Various ac supply system parameters are as shown in Table 6.1. The
supply current without switching ripple filter, after load harmonic compen-
sation by SAF, is shown in Fig. 6.24. The harmonic spectrum of the supply
current is shown in Fig. 6.25.
Parameter Value
Vs , Supply voltage 240V
From the harmonic spectrum of the supply current, it can be seen that there is
a switching frequency ripple component at 10kHz. The LF CF can be tuned to
filter the 10kHz ripple component.
139
Chapter 6. Control of Shunt Active Filter
Figure 6-24: Source current after load harmonic compensation without switching ripple
filter
Figure 6-25: Source current harmonic spectrum without switching ripple filter
The value of Rd can be selected such that parallel resonance frequencies fp1
and fp2 are damped out. Frequency response of the transfer function T(s) for
different values of Rd are shown in Fig. 6.26. The magnitude of T(s) is desired
to be as close as possible to unity for low frequencies. Effect of various Rd
values on the frequency response of T(s) is shown in Fig. 6.26. It can be
140
Chapter 6. Control of Shunt Active Filter
observed that for low value of Rd (Rd=1 ), the gain of T(s) is increased at
parallel resonant frequency fp1. Similarly, for a higher value of Rd (Rd=10 ),
the gain of T(s), is increased around fp2. The responses for Rd = 4 indicate
that it effectively damps out the frequencies between fp1 and fp2. The optimum
value of Rd is selected to be 4 . The various filter parameters are tabulated in
Table 6.2.
Parameter Value
LF, Filter inductance LCR branch 0.1266 mH
RF, Internal resistance of LF 50 m
CF, Filter capacitance of LCR brach 2 F
C, filter capacitance 20 F
Rd Damping resistance 4
141
Chapter 6. Control of Shunt Active Filter
The effectiveness of the filter is tested by simulating the ripple filter along
with the SAF and the responses of the source current and the harmonic
spectrum are presented in Fig. 6.27 and Fig. 6.28. From the harmonic spec-
trum of the supply current, it is clear that the broad band type switching
ripple filter effectively filters out the switching frequency ripple component
and the band of frequencies above 2fsw. The THD of the supply current
without connection of ripple filter is 6%. The effect of switching ripple filter
can be clearly seen in the THD of the supply current which reduces to 3.1%.
This can be attributed to the attenuation of ripple frequencies near 10kHz
because of the tuned LCR branch and attenuation of the higher frequency
components because of the broadband nature of the filter.
Figure 6-27: Supply current with switching ripple filter at the input of SAF
Figure 6-28: Harmonic spectrum of the supply current with switching ripple filter at the
input of SAF.
142
Chapter 6. Control of Shunt Active Filter
6.11 Summary
143