Design Methodology for Shunt Active Filters Fabio Ronchi, Andrea Tilli Department of Electronics, Computer and System Sciences (DEIS), University of Bologna Viale Risorgimento 2, 40136 Bologna, ITALY phone: +39 051 2093069, fax: +39 051 2093073 e-mail: fronchi, atilli @deis.unibo.it Keywords Active filter, design, harmonics, three-phase systems. Abstract This article deals with the design of a three-wire shunt active filter based on a AC/DC converter. A methodology to select suitable values of the components is presented for two design objectives. The first one is to select components values strictly dependant on the level of current distortion imposed by the load. The second goal is to find the minimum capacitor value necessary to compensate all the possible loads compatible with a specific current size of the switches. Both the algorithms are based on a model inversion and are control-oriented. Introduction Nonlinear loads produce current harmonics that pollute the network mains and can disturb all the devices expected to work with sinusoidal voltages and currents. This fact increases costs and reduces performances for both energy consumers and providers. Several schemes and control techniques have been proposed in the past years, often assuming that all the components are well sized, or at least that they do not affect the control algorithm performance [1], [2], [3], [4]. The first step in designing an active filter is to select suitable components values. This allows to reduce costs and avoids a lot of control problems. The aim of this paper is to present an algorithm to properly select the hardware components of a very simple and usual scheme of shunt active filter. The first design methodology presented is based on the knowledge of the harmonic spectrum of the load currents. It allows to select the minimum hardware components values that make the filter capable to compensate for the distorted currents. The second design algorithm is related to the peak current of the bridge switches. It permits to find the minimum hardware component values that make the filter capable to compensate for all the loads which have distorted currents smaller than the maximum currents allowed for the switches. Both the design procedures can be iterated to improve performances, for example considering if a higher sample frequency and a higher capacitor voltage can be chosen. In the first paragraph some hypothesis and basic design considerations are presented. In the second one the model of the shunt active filter is shown. In the third one the choice of the inductance value is discussed. The other two paragraphs present the two design methodologies, the first one is indicated as “load-based”, the second one as “switches-based”. Conclusions summarize the contents of the article. 1 Preliminaries In this section some definitions, assumptions and preliminary design considerations are presented. PSfrag replacements N LOAD L L L K C Figure 1: Shunt active filter scheme 1. The scheme of the active filter considered in this article is presented in Fig. 1. It is a three-phase AC/DC converter, where the capacitor is the main energy storage element and the inductors are used for the control of the filter currents by means of the converter voltages. In Fig. 1: are the mains voltages, are the mains currents, are the load currents, is the capacitor voltage (DC BUS). 2. The mains voltages !#"%$&' #"%$&'(#")$ are co-sinusoidal of frequency *+,.-/1032 or 4/50627$ , balanced and equilibrated. 8#")$:9<;=?>A@+B.DCEF*"%$ J #"%$:9G;HI>A@+B CEF*"LK CE MON (#"%$:9PKRQ !#"%$FST #"%$U 3. The sampling frequency * V and the PWM frequency *+WFXZY are supposed already chosen. [ 4. The load currents are balanced and periodic of frequency *+ : aY ]\ ]\` ]\ \ #")$'9_^ S ^ bgfAhi DCEFj=*k"lSnm b $ op9_qrtsu f bdc.e where M is equal to infinity according to the Fourier analysis. However, only a reduced number of harmonics is considered for the compensation, owing to limited bandwidth of the controlled inverter. 5. Inductors are modelled as pure inductances L. 6. The six-switches-bridge is supposed ideal. 7. The maximum current of the devices implementing the bridge switches is ^v %w . It is worth underlining that several shunt active filters can be parallel connected to the same load, providing a suitable coordinating strategy to increase the compensated current. 8. The steady-state capacitor voltage must be kept inside the range Q];F'xzy{L;H%wU . The upper bound ;r%w depends on the kind of capacitor chosen and on the number of series connected capacitor banks. Hence, it can be assumed chosen before starting the design procedure. The lower bound ;Fx|y depends on the controllability constraints, as explained in section 4. 9. The shunt active filter has to produce currents opposite to the load distorted ones. It will be assumed that the control techniques implemented are able to assure this behavior. b 0.6 0.4 0.2 0 a -0.2 -0.4 -0.6 c -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 Figure 2: Hexagon of feasible } &D 2 Shunt active filter model Let ~#")$O9Q 8#"%$&) #"%$&)#"%$U , vH#"%$9Q v #"%$& v #"%$& v #"%$U , +v(~#")$9 Q v w #"%$&)+vA#"%$&)+vdt~#")$U , }w #")$:9Q }wH#"%$&)} #"%$&)} #")$U be the arrays of, respectively: mains voltages, filter currents, voltages from the node \ K to the half points of bridge legs, control inputs of the six-switches-bridge, } /(+Lo9Gqtsu f . Then the filter equations can be written, starting from inductor dynamics vH#"%$ 9} w & #"%${#"%$LK #"%$1 v#"%$9 #"%$LK " From the sum of the three scalar equations above, it can be found that #")$'9 that permits to define } tD #"%$:9}w #")$K }wH#"%$lST} #")$lST} #")$ #")$ M }wH#")$ST} #"%$FST} #")$ M } &D can assume only 7 values at the time "& , which correspond to the vertexes of the hexagon of Fig. 2. The region included in this hexagon corresponds to the } tD that can be obtained as mean values in a PWM period. The status equations of the filter are: vH#")$ 9#")$K} &D #")${ #")$ (1) " #")$ 9} &D #")$ vH#")$ (2) " It is useful to write the model also in a d-q reference frame, aligned to the mains voltage vector. In this frame mains voltages and load currents can be written as M ` % ; _9¢¡ ;H£ 9¦£ /¥¤ / ¤ C ` #")$ %¨ #")$ % ^ S #"%$:9¦£ 9¦£ (3) #"%$§¤ #")$ ¤ and the status equations (1), (2) become t % v=#")$ / 9GCEF* £ v=#"%$FS K ©/ ¤ 5 " #"%$ % % 9 ¬« } &D #"%$­ v=#"%$ " % ªK #"%$ % } &D #"%$ U1 0..5 0..4 0..3 U*abc 0..2 0..1 U2 0 0 0..1 0..2 0..3 0..4 0..5 0..6 0..7 0..8 Figure 3: current ripple worst case 3 Minimum value of inductance The minimum value of inductance is calculated in a way that does not depends on the loads, so that it is the same for both the design objectives and can be previously calculated. The use of PWM techniques to obtain the reference values }.& D causes current ripple, that must be kept less than a maximum value ®^ Y°¯%¯ in order to bound high frequency distortion. v=#")$:9 v #"%$FS±® v=#"%$ } tD #"%$:9} t D #"%$FS±®~} tD #"%$ where the indicates reference value and ® the ripple caused by the PWM technique. Substituting these expressions in the status equations (1), (2) it will be obtained that ® v#")$ 9²Kk®~} &D #")$r #"%$ " The ripple worst case is }l& D in the middle of an hexagon side, as illustrated in Fig. 3. In this situation the peak to peak current ripple is, assuming that the capacitor voltage ;F is constant in a PWM-period, u¸[¹º ® v#")$ ; ®^ ¯%¯ 9G³n´¶µ%· "9 £A ¤»¼ " 41R* WFXZY ´¶µ It must be less than the maximum ripple chosen ®^ Y°¯%¯ ®^ ¯%¯P½ For instance, if ;%w9GÀ-/1; , * WFXZY ®^ Y°¯%¯ 9F¾ ''xzy§9 ; %w 4¿* WFXZY ®^ ° Y ¯%¯ 9_C/¿j032 , ®§^ Y°¯%¯ 9ÁCk , then must be greater than (4) M8à (CkÄ0 4 Load-based approach Currents that have to be compensated can be written as in (3). In order to reach an unitary power factor, the only load ` current component that the filter must not compensate for is ^ because Å #")$'9 « % ­ t ` ` `A #")$'9G; ^ SÆ; %¨ #")$ Therefore the filter currents that should be tracked are v #")$9 v #"%$& v #"%$ 9 K %¨ #")$&dK #"%$ (5) 150 b 100 50 0 a -50 -100 c -150 -200 -150 -100 -50 0 50 100 150 200 Figure 4: currents hexagon These currents can be effectively imposed by the active filter if v #"%$:9 tDÇ % #")$ v #"%$& v #"%$ 9È v #")$& v #")$& v #"%$ RÉ ^(v tw ° OFÊr" An easy way to check this condition is to consider the inscribed circle in the hexagon of Fig. 4, which is obtained considering that each projection of the current vector on the three-phase axes must be less than ^!v %w . If there is a current that can not be obtained, then the number of harmonics to be compensated by the shunt active filter must be reduced, or the opportunity to connect two active shunt filters to the same load can be considered. Choosing an inductance value ªËªÌ'xzy , the voltages at the input of the six-switches-bridge can be calculated. % % % % v #")$ ; / v #"%$ v( #")$:9_ #"%$ } & D #"%$:9 £ K SÆCEF*k £ / ¤ K5Í/¤ " These voltages must be feasible, that is }.t D #"%$ always inside the hexagon of Fig. 2. This implies that the inductance value must be as low as possible (that is ΢Ì'xzy ) and it can also be useful to determine the lower bound ;Ïx|y of the capacitor voltage. Hence, approximating the hexagon of Fig. 2 with the inscribed circle and imposing that Ð Ð v #"%$ v( #"%$ Ð Ð ÉÓÒ xzy 9 Ô M } & D #")$ 9ÍÑ Ñ É ÕÊr" Ñ #")$ Ñ ;=x|y Ñ Ñ Ñ Ñ Ñ Ñ a design equation for ;r'xzy can be obtained Ð Ð 8v #"%$ S_ ÃÃà ;=%wÖ×;H'xzyØÖ ÍÊ{" 9Á/( £Ù Ù Ò xzy * * ¤ Ù If the inequalities above can not be adequately satisfied, one of the following actions must be considered: Ú Change the type of capacitor in order to adopt a higher ;Ï%w . Ú Reduce the number of harmonics considered. Ú Reduce the inductance value, tolerating a higher current ripple. The reference instantaneous power at the input of the six-switches-bridge can now be calculated. According to the hypothesis that the bridge is ideal, it must be equal to the one of the capacitor. J % % Å #"%$9ÈÛ #"%$ #"%$9 « #"%$ ­ 9 º #"%$ N v v v v( v #"%$ " C This equation can be used to choose the capacitor value. The energy Ü is periodic of frequency * #"%$:9G³R´ Å v ÞÝ$ Ý ´¶µ by hypothesis and its mean value is zero. Defining Ü %w 9_ߧàá ;=ã)äv19 Ü #")$ â ; x|y â ; ´ %w Sª C and imposing that the related voltage variation is å;lãävLKæ; 'xzy $ , it can be obtained the capacitor value design equation Ü C %w 9 ; 㺠äv KT; 'º xzy An interesting example of application of this methodology is the following. Considering a six pulse diode bridge Mç ÃëM 9é%ê9 Ä03%^v %w 9ìÀ-íÂ&;Hãäv_9×î//3; , a rectifier with a resistance of as load; assuming è capacitance 9²d//ïFð is obtained. 5 Switches-based approach The aim of this section is to find the capacitor value that makes the filter able to compensate for the worst load, compatible with the maximum current allowed by the switches. If this value is not very expensive, a shunt active filter can be designed only knowing the amount of current that have to be compensated. In order to make the load currents the only varying parameters during the optimization procedure, the other values must be fixed. The inductance value is chosen equal to the minimum one calculated with (4). The minimum capacitor voltage ;Hxzy is chosen sufficiently low to make simple the capacitor voltage control and feasible the capacitor value resulting from the optimization procedure. For instance, if ;F%w9Gñ//; a reasonable value can be ;rx|yØ9PÀ//5; . The maximum harmonic number M to be compensated is chosen according to the sampling frequency * V and to the performances that the filter is expected to have. In order to simplify the algorithm, the filter current spectrum are expressed in d-q, so that Ya e · ^(v y >A@+BuDCE *"lSTò y $ v #"%$:9 . c Ù y e e Ya ` · ^(v y >A@+BDCE *k"lSnò y=$ v #")$:9Á^(v S . c Ù y e Ü The array z of the parameters that the algorithm changes in order to find the worst %w are the C=Þè S$ÌS¢ magnitudes and the C=ÞèéS_$ phases, so there are óÞè S_$FS_ degrees of freedom. The goal is to find t Ü5ô ã V % vHÞÝ$ Ý tw 9Áߧ àá ߧàá ³T´ « +v(ÞÝ$ ­ ´ ´ â ´¶µ â This value must be calculated with the following constraints Ú switches currents must be less than the maximum allowed, that is the current vector v must be inside the hexagon of Fig. 4. This can be easily checked approximating the hexagon with its circumscribed circle; Ú output controls must be valid, that is the vector } tD must be inside the hexagon of Fig. 2. This can be easily checked approximating the hexagon with its circumscribed circle; Ú Harmonics components phases must be greater than KE and less than E 4 x 10 PSfrag replacements Power 3 50 2 0 1 -50 0 -100 -1 -150 -2 -200 Energy -250 -3 0 0.002 0.004 0.006 0.008 0.01 0.012 0.014 0.016 0.018 0.02 0 0.002 0.004 0.006 0.008 0.01 0.012 0.014 0.016 0.018 0.02 Figure 5: Worst case power and worst case energy, 7 harmonics This algorithm can be applied using the Matlab Optimization Toolbox (fmincon) [5], and the result is that the worst Å v #")$ is an approximately square wave. ÃëM Ä0 , ^v tw 9ö-/7 , ;H'xzy69÷À//§; , ;=ã)äv9öî//; and considering è 9÷À For example, assuming xzyp9õ Ü Å the worst power profile v #")$ and the related energy v #"%$ are presented in Fig. 5. The resulting capacitor value M8à is C5Äð . Increasing the number of harmonics considered, Å v #"%$ becomes more similar to a square wave, and the M8à related capacitor value increases, reaching ó°Äð considering 16 harmonics. 6 Distorted mains voltages If the mains voltages are distorted, then the capacitor has to provide more energy to the load and its value must be bigger than the one calculated. If the mains voltages are sinusoidal, balanced and equilibrated, then the load instant power is the one calculated in (5) `d and the only power that the filter must deliver is ; %¨ #"%$ , which mean value is equal to zero. If the mains voltages are distorted, then % ` 7#"%$9 ; ST %¨ #"%$&. #"%$ and load power becomes Å #"%$9G; ` ^ ` SÆ; `A %¨ #"%$lST % ¨ #")$[^ ` Sê % ¨ #"%$ % ¨ #")$FSn #"%$ #"%$ The above equation shows that the shunt active filter has to provide more power to the load, which mean value can also be different from zero in a PWM period. Hence, also assuming that the power mean value becomes zero in a larger time, the capacitor value must be increased in order to accumulate more energy. Conclusions Two design methodologies for an usual shunt active filter scheme have been presented. The first considers the particular load that has to be compensated and allows to find suitable values for the hardware components of the filter. The second one considers the peak current allowed by the bridge switches and finds the capacitor value that makes the filter capable to compensate for all the loads compatible with the system constraints. References [1] S.Saadate J.H.XU, C.Lott and B.Davat. Simulation and Experimentation of a Voltage Source Active Filter Compensating Current Harmonics and Power Factor. Ind. Electron., Control and Instrument., IECON’94, Volume 1: Page(s) 411–415, 1994. [2] Kamal Al-Haddad Bhim Singh and Ambrish Chandra. A Review of Active Filters for Power Quality Improvement. IEEE Tran. on Ind. Electron., Volume 46: Pages 960–971, 1999. [3] A.H.Noyola W.M.Grady, M.J.Samotyj. Survey of Active Power Line Conditioning Methodologies. IEEE Tran. on Power Deliv., Volume 5: Page(s) 1536–1542, 1990. [4] J.W.Dixon L.A.Moran, L.Fernandez and R.Wallace. A Simple and Low-Cost Control Strategy for Active Power Filters Connected in Cascade. IEEE Tran. on Ind. Electron., Volume 44: Page(s) 621–629, 1997. [5] A.Grace T.Coleman, M.A.Branch. Matlab Optimization Toolbox User’s Guide. The MathWorks Inc., 1999.