You are on page 1of 4

Designing and simulation of an active filter using

MATLAB / SIMULINK
Ileana - Diana Nicolae Petre - Marian Nicolae
Software Engineering Department Dinut-Lucian Popa
University of Craiova Electrical Engineering Dept.
Craiova, Romania University of Craiova
nicolae_ileana@software.ucv.ro Craiova, Romania
pnicolae@elth.ucv.ro

Abstract- The paper deals with a solution for the compensation task is to attenuate the harmonics produced by the network
of a distorting regime from a distribution station for urban nonlinear loads [7], [10]. It might also provide a compensation
transport using a power active filter. Firstly the distorting of the reactive power [8], [13].
regime is analyzed with a data acquisition system that provides
the input data for the MATLAB/SIMULINK program used to One selected the solution with parallel active filter because
size the active filter. The calculated parameters are afterward in this topology it should not be overloaded (the harmonic
validated in MATLAB/SIMULINK. Experimental data obtained currents overcoming its filtering capacity remain in network,
on stand validate the proposed solution. but this does not prevent the filter to eliminate all the
harmonic currents that do not exceed its limits) [9], [11]. Fig.l
I. INTRODUCTION depicts the principle schema of the studied system.

Due to the continuously growing number of nonlinear To evaluate the distorting regime one used a data
loads, the harmonic distortion created by them may affect the acquisition system (manufactured for this application) that
voltage source from the distribution network and consequently provides the data required by the analysis and filter's design.
other loads supplied from the network [1], [2]. The supplying phase-voltages and the loads currents registered
are depicted by Fig. 2. The gathered data revealed significant
In most of the practical applications that use power
current harmonics of orders 5, 7,11, 13, 17, I9, as depicted by
electronics, the static converters induce significant distorting
Fig. 3 (therefore the passive filtering cannot be used, as it
regimes. Therefore supplementary circuits are required,
should involve too many filtering cells and generate reactive
(eventually using power semiconductors), to reduce the
power, undesired when the loads to be compensated have
harmonic influences of the currents over the sources that
already a proper power factor). Moreover, Fig. 3 reveals that
supply the static converters [8], [12].
the generated current harmonics produce voltage harmonics at
To get an improved efficiency of the compensation, a the source [3].
performing data acquisition system should be used in order to
Distribution line
evaluate quantities related to the operating regimes like:
harmonic distortions, power flows along the fundamental and
=�E== lllkV

superior harmonic etc. Advanced designing techniques can be


applied based on preliminary evaluations to yield accurate
technical solutions.
Information on the behavior in transient regimes and
improvements of the active filters control can be obtained by a
proper design and an accurate simulation of filter's operation
[2], [14]. The simulations can be used to anticipate the


Figure I. Principle schema of the system
behavior of the proposed solutions and/or to improve them.


Experiments must be done to validate the adopted solutions. Measured voltage Measured currents
" i " - "l llX1l " "; : "' : " '+ "
, ...... . . : ... .. "' ;" " '" -u2 : : : : : : - i2
II. STUDIED C ASE t··· i.,... . . � ... ., I.. . ' + . : 1
:<: 0
!
03 5: 0
: :- : : .. ' : , "
For the studied case the distorted regime is caused by the .. ... �
... ... TO. "' ! . .. 1" . � . . .
.. . .11JX)

uncontrolled rectifiers that supply the trams d.c. line. 1 'A' 102 '03 101 105 lIE 107 lOB
Time(s)
More solutions were considered for correction. The most
efficient proved to be the use of an active filter, whose main Figure 2. Supplying voltages and loads currents before compensation.

978-1-61284-857-0/11/$26.00 (92011 IEEE


Authorized licensed use limited to: Chung-ang Univ. Downloaded on May 19,2022 at 02:24:06 UTC from IEEE Xplore. Restrictions apply.
Spectrum of harmonic cunents submitted to compensation
As digital control is to be used, the supplying voltages (Fig.
2) will be provided with an advance equivalent to 1.5 sampling
steps. One step is required for the control's execution and one
half is required by the delay introduced by sampling [4], [6].
The delays compensation is very important, mainly in highly
distorted networks, where the active filter must compensate all
the harmonics up to one half of the switching frequency.

200
For the delays' compensation one used:

= us(n+2)+us(n+l) (1)
us(n)
Harmonic order 2
Only the real part of the fundamental is required for the
Figure 3. Spectrum of harmonic currents submitted to compensation
load currents' processing. The imaginary part and the other
harmonics are set to 0 and the FFT inverse is calculated to get
III. DESIGNING LI MITATIONS
the time-variation of the load active current's fundamental.
High frequency operation imposes limits to the injection
coil induction. For too large values the current's maximum The calculations yielded: total RMS of compensation
exchange rate should be too small to trigger the step changes currents 202.5 [A] and the peak current without the
=

occurring at high frequencies, whilst for too small values the switching ripple 469.53. [A].
=

current's maximum exchange rate should be too high,


resulting into high switching frequencies that cause high
losses in semi-conducting devices [4], [7].
Application-specific restrictions are also imposed (mainly
for inverter's designing, e.g. motor's angular velocity control).
An active filter should be able to inject at least frequencies
with harmonic orders up to 19 and in an ideal case it should
compensate the harmonics with orders up to 50. The switching Integral of the instantaneous value of the current through capacitor [A]

frequency is selected by considering the maximum order of the 1.5 ,--'--"---r-'--''--'--.--,


harmonic to be compensated. Theoretically the compensation
is possible up to one half of the switching frequency [5].

IV. ACTIVE FILTER DESIGN

In practice, when selecting the switching frequency one


must also consider other factors, such as: cut-off frequency of
the switching ripple filter, losses, semiconductor types, etc. sample order

One intended to obtain a total compensation of the load Figure 6. Waveform of the current through the d.c. side (top) and integral of
currents harmonics up to the 19th harmonic order. Therefore, the instantaneous current through capacitor (down)
even though the calculated minimum switching frequency is
3,000 Hz, a value of 10 kHz will be considered [10], [12]. The currents ids, its, itj and idj [A]

i �01 bJ D I I I I I I
The active current fundamental value (Fig. 4 depicts the load
current for the 1st phase) is calculated and subtracted from the
load current. The resulting current is submitted to a sign reverser
to obtain the current reference for the active filter (Fig. 5). o � � � � 1� 1� 1� 1� 1� �

FFT was used to calculate the load current fundamental


value as well as the harmonic spectrum to be compensated.
1:1 [111:9 11+ I IVj
HJ
200J
Load current fundamental [A]
o � � � � 1� 1� 1� 1� 1� �

]� a D O � � 1� lD
Sample order
10 1� 1� 200J i i lllidtkl J2il l
o � � � � 1� 1� 1� 1� 1� �
o
Figure 4. Load current for the 1st phase
Filter's compensation current [A]

01f±19EHill a 200 0 � � 1� 1200 10 1� 1� �


Figure 7. up: ids= current through the upper diode; its=current through IGBT
up; down: idj=current through the lower diode; iy=current through IGBT

Figure 5. Filter's compensation current

Authorized licensed use limited to: Chung-ang Univ. Downloaded on May 19,2022 at 02:24:06 UTC from IEEE Xplore. Restrictions apply.
Nonlinear
Ls Load
ilo.d

f Pll

iref
Active
Filter

Figure 8. Active filter's power schema Figure 9. Control schema

The calculation method covers most of the aspects that


must be considered while designing an active filter.

In the studied application the voltage inverter is made with


IGBT transistors. The main criterion considered for the
filtering coil designing is the maximum value of the current
ripple. The current ripple is calculated assuming the "no load"
case and neglecting the coil resistance.

One calculated the modulation factor, the inductance, the


voltage required by filter, the maximum d.c. voltage, the RMS
value of the current ripple through the filtering coil (no-load
case), the current ripple through the coil, the total RMS
current including the ripple, the d.c. current (Fig. 6). The
calculated d.c. current is integrated in the domain of time in
order to evaluate the ripple. The integration results are
Figure 10. Currents through source,load and filter
depicted by Fig. 6 (down). The compensation current per each
phase is divided sample by sample in the currents flowing
through each power semi-conducting device, using the
reference signal sign, as depicted by Fig. 7.

The active filter's power schema is depicted by Fig. 8.

The capacitor is also sized, a value of 18.58 rnF being used


in simulation.

v. ACTIVE FILTER SI MULATION

Using the calculated data, based on experimental tests, a


Figure I I. Current through source and reference current (left) and their
simulation was performed. The system's general schematic difference (right)
includes the power schema, the filter's control schema (Fig.
9), the three-phase supplying sources and the load represented At a higher load current the harmonic distortion decreases,
by the rectifier with diodes and the RL groups (used to as obtained in the measurements accomplished in the
determine the load current). supplying station (Fig. 12 and Fig. 13).
The filter uses a PLL control. The control circuit uses a The filter's efficiency is proved (it reduced the ITHD for
hysteretic technique and calculates the ideal compensation the current through the source from 30.23 % to 3.2% for a
current [4]. load of 646 A, respectively from 29.86% to 2.09 % for a load
Fig. 10 and Fig. 11 reveals the filter efficiency. To of 1059 A). One can conclude that the filter's design is
estimate the current distortion level one used the FFT Analysis correct.
tool from PowerGUI. Based on the designing using MATLAB/SIMULINK, an
One can see that the load current decomposition in active-filtering solution as that from Fig. 8 was tested on
harmonics is very similar to the real case, as the orders of stand. The following conclusions were drawn:
significant harmonics are 5, 7, 11 and 13.

Authorized licensed use limited to: Chung-ang Univ. Downloaded on May 19,2022 at 02:24:06 UTC from IEEE Xplore. Restrictions apply.
-Signal 10 analyze Signal 10 analyze
after simulation, the efficiency of the proposed solution for

)NVwVIA,M� .:�WWWVV\fJ
00isp110y selecledSV'fll OOisplloyFFTwrvJt:/W 0Disp11oy sel!lcledsllJ'llll ODisplloyFFTwrvJt:/W
Selecled signal" 125 cycles FFTwrndow(In red) 1 cyetes Selected signal' 125 cycles FFTwrndow (In red) 1 cycles
compensation is proved.

The processing of the recorded data and the determination


of the spectral components of the (re)active powers proved
Oil) oee D.' 0 120 14 0 16 0 18. 0 2 0 220 24 Oil) oee 01 0 120
. 1 4 0 16. 0 18 0 2 0 .220 24
lime(s) lime(s) different flowing senses with respect to the load. This comes
to demonstrate once again that, in order to get complete load
-FFTanalysls FFTanalysis

Fundamenlal (5OHz) = 6A6 4 ,THO::D 23% Fundamental (5OHz) = 6B7 1 . THO: 3 20%
02
compensation, the following of sequence of actions must be
�20 considered:
� 015
� 15 E .
- the filtering of the currents for superior harmonics;
� j.. 01
- the compensation of reactive power along the fundamental

111 1. .111.1,
'010

JI IJ !IUu
� �
> 5
�0 05 harmonic (either capacitive or inductive, depending on the
III

0
0
1 15 20 � :D � �
0
0
1
J.
5
1
Ih
20 � :D
II. I!
� �
load' specificity).
HarmoniC order HarmoniC order

Figure 12. FFT analysis using PowerGUI - 646 A. ACKNOWLEDG MENT

r Signal to analyze
0�_sipI ODosplooym...--
.r Srgnallo analyze
0Dlspi1oy_SV'I'I O�m_
The work was supported by CNCSIS-UEFISCDI, project
number PNII-IDEI code 536/2008 (contract no. 695/2009).

JiWNvIAMI JlvvvvWVViJ
Selected signal. 125 cycles FFTWltldow(ln red) 1 cycles Seleded srgnal. 12.5 cycles FFTwrndow(In red): 1 cycles

REFERENCES
Olli 000 01 0.12014016 018 02 022024
i s
l me( )
Olli 003
. 01 012014016 018 02 022024
Tme(s)
[I] D. Chapman,Application Guide - Electric Energy Quality -Harmonics
FFTanalysI ' ----------
!
�, FFTana l ysl . ----------
!
- Network Active Filters, Copper Development Association, March,
Fundamental [SOHz): 1059. THO: 29116% Fundamental (5OHz): 1131 . THO: 209% 2001.
[2] I. Zamora, A. 1. Mazon. P. Eguia, I. Albizu, K. 1. Sagastabeitia, E.
Fernandez, Simulation by MATLAB/Simulink of active filters for
reducing THD created by industrial systems, IEEE Bologna Power
Tech Conference,Italy 2003
[3] K. S. Moinuddin, R Sanker, Instantaneous Power Theory Based
Aactive Power Filter: a Matlab/Simulink Approach, Dept. of Elect. &
Harmomcorder HarmonIC order
Elex. Engineering, BVC Institute of Technology & Science,
Amalapuram,India,2008.
Figure 13. FFT analysis using PowerGUI - 1059 A.
[4] David M.E. Ingram and Simon D. Round, A Fully Digital Hysteresis
Current Controller for an Active Power Filter,Department of Electrical
- the total harmonic distortion for the phase currents were & Electronic Engineering,University of Canterbury,2006
reduced from 30.23% (corresponding to the most affected [5] D. Ionescu,S. FloricAu,S. Nitu,"Power Electronics", Editura Tehnicli,
phase) to 7.36% after the filtering of the harmonics 5, 7, 11, Bucuresti,1998
13, 17, 19, 23, 25, 35 and 37, being smaller then the value of [6] Matlab R2009b,Three-Phase Active Harmonic Filter.
8% imposed by the IEEE 519/1992 standard for consumers of [7] Z. Li, H. lin, G. 100s, Control of Active Filters Using Digital Signal
this type. The current measured through filter had a RMS Processors, 21st International Conference on Industrial Electronics,
value of 73.58 A (for the most distorted phase). A more Control and Instrumentation (IECON '95) (Orlando,USA),1,651-655,
1995
comprehensive currents filtering (diminishing the effects of
the remaining harmonics up to the 50-th order) would have [8] A. Abelian, 1. M. Benavent, "A New Combined Control Method for
Shunt Active Filters applied to Four-Wire Power Systems",EPE 2001,
defmitively diminished the total harmonic distortion; Graz
- the accomplished power factor obtained through active [9] M. Aredes, E.H. Watanabe, "New Control Algorithms for Series and
filtering was equal to 0.94 (corresponding to an inductive Shunt Three-phase Four-Wire Active Power Filters", IEEE Transaction
load); on Power Delivery,Vol. 10,No. 3,1995
- the global consumption reducing was of 17.8% for the same [10] Y. Chen, R. O'Connell, "Active Power Line Conditioner with a Neural
useful active power consumption Network Control", IEEE Transactions on Industrial Applications, Vol.
33,No. 4,1997
VI. CONCLUSIONS [II] 1. W. Dixon, G. Venegas, L. A. Moran, "A Series Active Power Filter
Based on a Sinusoidal Current-Controlled Voltage-Source Inverter",
The MATLAB/SIMULINK simulation of the real system, IEEE Transactions on Industrial Electronics,Vol. 44,No. 5,1997
consisting in the supplying system, three-phase load and [12] H. Akagi,"New trends in active filters for power conditioning", IEEE
active filter, allowed the designed active filter testing and Trans. Ind. Applicat.,vo1.32,pp. 1312-1322,1998
proved its efficiency in various situations (e.g. load current [l3] H. Akagi, Modern active filters and traditional passive filters, Buletin
change due to successive trams' connection to the distribution of the Polish Academy of Sciences,Vol. 54,No. 3,2006,pp. 255-269.
network). [14] 1. C. Das,Passive filters - Potentialities and Limitation,Proceedings of
The IEEE Transactions on Industry Application,Vol. 40,No. I,lanlFeb
Based on registered data and on the obtained waveforms 2004,pp. 232-241.

Authorized licensed use limited to: Chung-ang Univ. Downloaded on May 19,2022 at 02:24:06 UTC from IEEE Xplore. Restrictions apply.

You might also like