12
IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. 2, MARCH 2008 723 Averaging Technique for the Modeling of STATCOM and Active Filters M. Tavakoli Bina, Senior Member, IEEE, and Ashoka K. S. Bhat, Fellow, IEEE Abstract—This paper introduces average circuit models for switch mode shunt converters coupled with power systems such as active filters and static compensators (STATCOM). These devices absorb or deliver reactive power to the utility network by employing either a fixed or a variable switching frequency (e.g., pulsewidth modulation voltage control or hysteresis current control). Analysis and simulation of these exact devices could be complex under transient and steady state conditions. Ongoing investigations on design of a practical STATCOM show that performing these kind of simulations (e.g., with PSpice) are very sluggish. Here both the fixed and variable switching frequency shunt devices are modeled using an averaging approach, by de- riving their state-space equations. An average operator is defined, and applied to the state equation to get averaged mathematical models. Expansion of these models will eventually lead us to average circuit models. Further, the ripple is approximated to provide a correction to the average model. The resulting models produce much faster simulations than their exact devices. Theo- retical considerations show that the averaged models agree well with the original system, and this is confirmed by PSPICE and MATLAB simulations. Additionally, experimental results are presented to validate the developed models. Index Terms—Active filter (AF), average circuit model, aver- aging technique, static compensators (STATCOM), state-space averaging. I. INTRODUCTION T HE use of FACTS controllers can potentially overcome some problems of electromechanically controlled trans- mission systems. An active filter (AF) can be employed as a par- allel device in ac power distribution systems to provide the load harmonic currents [1]. Also, a static compensator (STATCOM) is used in both transmission and distribution systems to control reactive power, unwanted harmonics, and three-phase voltage unbalance [2], [3]. Different voltage-sourced inverter topolo- gies could be implemented using gate turn-off thyristors (GTOs) and/or insulated gate bipolar transistors (IGBTs) for these high power utility applications. The analysis of a power electronic system is complex, due to its switching behavior. Therefore, there is a need for simpler, approximate models. One common approach to the modeling of power converters is averaging. This approximates the operation of the discontinuous system by a continuous-time model. This Manuscript received July 1, 2007; revised September 6, 2007. Recommended for publication by Associate Editor J. Enslin. M. T. Bina is with the Faculty of Electrical Engineering, K. N. Toosi Univer- sity of Technology, Tehran 14317, Iran (e-mail: [email protected]). A. K. S. Bhat is with the Department of Electrical and Computer Engineering, University of Victoria, Victoria, BC V8W 3P6, Canada (e-mail: [email protected]. ca). Digital Object Identifier 10.1109/TPEL.2007.915174 model produces waveforms that approximate the time-averaged waveforms of the original system, while simplifying analysis and making it easier to understand the system’s behavior under steady state and transient conditions. Averaged models have the advantage that they speed up simulation. They can also be used for control and design purposes, in power systems issues such as voltage and current unbalance investigations. This paper introduces average models for STATCOM and AF, which are used to predict the performance of complete working devices much faster than their exact models at the expense of losing some of the high frequency details in the waveforms. Although an average model was proposed and used in the analysis of converters [4], their use in STATCOM and AF is not reported in the literature. Note that here the modeling needs to be concerned with the main power system frequency of 50/60 HZ in addition to the dc voltages of the converter. Also, when the modulation strategy employs variable switching frequency, then it is necessary to decide on a convergent averaging period for the model. In fact, possible switching status within an averaging period can be different for fixed and variable frequency modulation. Thus, fixed and variable switching frequencies are analyzed separately. We start with the time-varying state-space equations of AF and STATCOM, approximating them by averaged equations to obtain a mathe- matical model. Then an equivalent circuit model is introduced, which provides a useful tool for analytical purposes. Finally, we extend our approximate model to incorporate ripple effects. The average model gives good agreement with the original system, as demonstrated using PSpice and MATLAB simulations along with practical work taken from a 250 kVAr and a 75 kVAr static compensator. II. AVERAGE MODELING PRINCIPLES State-space averaging (SSA) was established by Middlebrook and Cuk [4], and has been widely used for modeling dc–dc con- verters. The time-piecewise state equations are averaged over a switching cycle to give a continuous-time description. Essen- tially SSA assumes that the averaged state equations will give waveforms that are close to the averaged exact waveforms. This is true only at zero perturbation frequency, and when perturba- tions approach the switching frequency the error is ill defined. In classical SSA, the switching frequency is absent from the av- erage model, while it is clearly an important parameter of a real system. However, in [5] a switching-frequency dependent av- erage model for dc–dc converters was proposed, giving more accurate results than standard SSA. To put averaging on a firmer basis, a review in [6] surveyed the Bogoliubov theorem for finding a bound for approxi- mation of the time-varying state equation by averaging. It 0885-8993/$25.00 © 2008 IEEE

IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. …IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. 2, MARCH 2008 723 Averaging Technique for the Modeling of STATCOM and Active

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. …IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. 2, MARCH 2008 723 Averaging Technique for the Modeling of STATCOM and Active

IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. 2, MARCH 2008 723

Averaging Technique for the Modelingof STATCOM and Active Filters

M. Tavakoli Bina, Senior Member, IEEE, and Ashoka K. S. Bhat, Fellow, IEEE

Abstract—This paper introduces average circuit models forswitch mode shunt converters coupled with power systems suchas active filters and static compensators (STATCOM). Thesedevices absorb or deliver reactive power to the utility networkby employing either a fixed or a variable switching frequency(e.g., pulsewidth modulation voltage control or hysteresis currentcontrol). Analysis and simulation of these exact devices could becomplex under transient and steady state conditions. Ongoinginvestigations on design of a practical STATCOM show thatperforming these kind of simulations (e.g., with PSpice) are verysluggish. Here both the fixed and variable switching frequencyshunt devices are modeled using an averaging approach, by de-riving their state-space equations. An average operator is defined,and applied to the state equation to get averaged mathematicalmodels. Expansion of these models will eventually lead us toaverage circuit models. Further, the ripple is approximated toprovide a correction to the average model. The resulting modelsproduce much faster simulations than their exact devices. Theo-retical considerations show that the averaged models agree wellwith the original system, and this is confirmed by PSPICE andMATLAB simulations. Additionally, experimental results arepresented to validate the developed models.

Index Terms—Active filter (AF), average circuit model, aver-aging technique, static compensators (STATCOM), state-spaceaveraging.

I. INTRODUCTION

THE use of FACTS controllers can potentially overcomesome problems of electromechanically controlled trans-

mission systems. An active filter (AF) can be employed as a par-allel device in ac power distribution systems to provide the loadharmonic currents [1]. Also, a static compensator (STATCOM)is used in both transmission and distribution systems to controlreactive power, unwanted harmonics, and three-phase voltageunbalance [2], [3]. Different voltage-sourced inverter topolo-gies could be implemented using gate turn-off thyristors (GTOs)and/or insulated gate bipolar transistors (IGBTs) for these highpower utility applications.

The analysis of a power electronic system is complex, dueto its switching behavior. Therefore, there is a need for simpler,approximate models. One common approach to the modeling ofpower converters is averaging. This approximates the operationof the discontinuous system by a continuous-time model. This

Manuscript received July 1, 2007; revised September 6, 2007. Recommendedfor publication by Associate Editor J. Enslin.

M. T. Bina is with the Faculty of Electrical Engineering, K. N. Toosi Univer-sity of Technology, Tehran 14317, Iran (e-mail: [email protected]).

A. K. S. Bhat is with the Department of Electrical and Computer Engineering,University of Victoria, Victoria, BC V8W 3P6, Canada (e-mail: [email protected]).

Digital Object Identifier 10.1109/TPEL.2007.915174

model produces waveforms that approximate the time-averagedwaveforms of the original system, while simplifying analysisand making it easier to understand the system’s behavior understeady state and transient conditions. Averaged models have theadvantage that they speed up simulation. They can also be usedfor control and design purposes, in power systems issues suchas voltage and current unbalance investigations.

This paper introduces average models for STATCOM andAF, which are used to predict the performance of completeworking devices much faster than their exact models at theexpense of losing some of the high frequency details in thewaveforms. Although an average model was proposed and usedin the analysis of converters [4], their use in STATCOM andAF is not reported in the literature. Note that here the modelingneeds to be concerned with the main power system frequencyof 50/60 HZ in addition to the dc voltages of the converter.Also, when the modulation strategy employs variable switchingfrequency, then it is necessary to decide on a convergentaveraging period for the model. In fact, possible switchingstatus within an averaging period can be different for fixedand variable frequency modulation. Thus, fixed and variableswitching frequencies are analyzed separately. We start withthe time-varying state-space equations of AF and STATCOM,approximating them by averaged equations to obtain a mathe-matical model. Then an equivalent circuit model is introduced,which provides a useful tool for analytical purposes. Finally, weextend our approximate model to incorporate ripple effects. Theaverage model gives good agreement with the original system,as demonstrated using PSpice and MATLAB simulations alongwith practical work taken from a 250 kVAr and a 75 kVArstatic compensator.

II. AVERAGE MODELING PRINCIPLES

State-space averaging (SSA) was established by Middlebrookand Cuk [4], and has been widely used for modeling dc–dc con-verters. The time-piecewise state equations are averaged overa switching cycle to give a continuous-time description. Essen-tially SSA assumes that the averaged state equations will givewaveforms that are close to the averaged exact waveforms. Thisis true only at zero perturbation frequency, and when perturba-tions approach the switching frequency the error is ill defined.In classical SSA, the switching frequency is absent from the av-erage model, while it is clearly an important parameter of a realsystem. However, in [5] a switching-frequency dependent av-erage model for dc–dc converters was proposed, giving moreaccurate results than standard SSA.

To put averaging on a firmer basis, a review in [6] surveyedthe Bogoliubov theorem for finding a bound for approxi-mation of the time-varying state equation by averaging. It

0885-8993/$25.00 © 2008 IEEE

Page 2: IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. …IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. 2, MARCH 2008 723 Averaging Technique for the Modeling of STATCOM and Active

724 IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. 2, MARCH 2008

also described the Krylov–Bogoliubov–Mitropolskii (KBM)method for finding the approximation error. The averagingtheory discussed in [6] has been extended to cases in whichstate discontinuities occur [7]. A general feedback pulsewidthmodulation (PWM) was discussed based on an integral form ofthe state equations rather than the standard differential form. Atheorem was proved to this effect: for an arbitrarily large butbounded time interval and a sufficiently small switching period,the exact system and its average model can remain arbitrarilyclose to each other [7]. Moreover, if the average model tendsto an asymptotically stable equilibrium point, the theoremcan be extended to an infinite time interval [8]. Furthermore,multi-frequency averaging of dc–dc converters are introducedin [9], and synthesis of averaged circuit models for switchedpower converters are discussed in [10].

A. Application to AF or STATCOM

Consider an AF or STATCOM connected to a power system.When operated in open loop, the switching transitions occur atpredetermined times. However, when the shunt device is em-bedded in a control loop, the transitions will occur at times de-termined by the state variables themselves. With this in mind,the open-loop average equations are obtained in a standard formthat can later be modified for closed-loop control

(1)

where is the state vector, is the input vector andis the vector of switching function.

Note that at this stage we do not consider the duty ratio to bea continuous function of time, but rather a discrete value asso-ciated with an individual switching period. We now apply theaveraging operator [11]

(2)

to (1) over , to get an average model described by

(3)

where is the average state vector, and is the ap-proximate continuous averaged switching function in connec-tion with the approximate continuous duty ratio . This newvector is a continuous function of time that is controlledby the AF or STATCOM. Additionally, the developed averagedmodel of (3) can be further identified using a neural network tobe simulated very fast with EMTP-like simulators for single-fre-quency applications in power systems. From (1) and (3) it caneasily be shown that [11]

(4)

Fig. 1. Three-phase shunted AF or STATCOM.

Starting from (4), a theorem in [4] describes the closenessof and . Assume and are positive realvalues. For any small and large (take here),there exists a (a function of and ) and a positive constant

such that for switching period

(5)

Now let . Equation (5) says that for anybounded time interval, and can remain close toeach other, provided the switching period is small enough.Another theorem in [4] states if approaches an asymptot-ically stable equilibrium point, then there exists a sufficientlysmall (a function of ) such that for switching period

. Therefore, if the averagedmodel is asymptotically stable, which is generally true,will be very close to . As the low frequency 50/60 Hzsinusoidal utility voltages vary slowly compared to the highaveraging frequency, these theorems validate the averagingapproach to modeling AF or STATCOM [11].

III. VARIABLE SWITCHING FREQUENCY MODEL

Fig. 1 shows a three-phase AF or STATCOM, comprising avoltage-sourced inverter connected through an inductance in se-ries with a transformer to a stiff power-system bus [12]–[15]. Inprinciple, the leakage inductance of the coupling transformermight be used in FACTS devices as the commutation induc-tance. The capacitors carry the dc levels and , where

. The converter current can be controlledto emulate a certain application. Extracting different strategiesfor reference currents as well as applications of shunt activepower filters are examined in [12]–[19]. Here the hysteresis cur-rent-controlled strategy is considered for high power shunt AFor STATCOM to keep the instantaneous error between the refer-ence current and the actual current within a band of width

. If is kept constant, a variable modulation frequencyis produced that is analyzed in this section.

A. State-Space Model

In this section we apply the foregoing methodology to de-velop an average model of AF or STATCOM, shown in Fig. 1.

Page 3: IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. …IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. 2, MARCH 2008 723 Averaging Technique for the Modeling of STATCOM and Active

BINA AND BHAT: AVERAGING TECHNIQUE FOR THE MODELLING OF STATCOM AND ACTIVE FILTERS 725

There are two topological modes for every leg. The state equa-tions for the two modes can be obtained separately then, intro-ducing the switching function , combined into asingle state equation

(6)

(6a)

where is the unit matrix, is an matrix ofzeros, is an —by— matrix of ones, and the throw of is equal to while its four other entries arezero. Then (6) is averaged over a switching period to developa continuous-time model, in the form of (3). Applying the av-eraging operator of (2), let , the averaged state vector, bedefined as

(7)

Now, it can be shown that [11]

(8)

Integrating (6) over and applying (7) and (8), weget

(9)

Here, is the averaging period, which should be determined.Note that because the switching frequency is variable, it is es-sential to decide on the value of . Hence, we approximate atriangular behavior for the ripples of actual current as shown by

Fig. 2. Approximate linearized ripple along with the converter exact voltage.

Fig. 2. Further, the effect of losses is neglected, and the con-verter output voltages has a rectangular wave-form of amplitudes and with a variable period of .The durations of positive and negative pulses are and ,respectively, . Meanwhile, the converteraverage voltage is assumed constant during a modulationperiod. In the case that , using Fig. 2, itcan be shown that (see Appendix 1 for details)

(10)

where the switching period is variable, if is constant.Using the explained theorems on closeness of and ,the averaging period is assumed less than or equal to theminimum of as follows:

(11)

The waveform of during has six possibleforms, as shown in Fig. 3. Each of these forms can be substi-tuted as the switching functions in the right hand side of (9).A detailed analysis was done by expanding the correspondingTaylor series, and taking the worst case leads us to

(12)

Here, is the average switchingfunction, where is the sub-interval of duringwhich the th phase upper switch is closed. Ifthe average of taken over is close to its average takenover the sub-intervals shown by Fig. 3, the error term in (12),

, will be negligible (see Appendix 2 for more de-tails). The slower the variation of and lower the averagingperiod , the smaller the error. This is true for power-systems

Page 4: IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. …IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. 2, MARCH 2008 723 Averaging Technique for the Modeling of STATCOM and Active

726 IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. 2, MARCH 2008

Fig. 3. Six possible forms of s(�) over [t � TC; t].

applications in which the averaging frequency is much biggerthan the synchronous frequency, resulting in a slow variation of

during an averaging period. The switching function av-erage in Fig. 3 over , for all possible cases, is

(13)

introducing a continuous duty-ratio function . Hence, theresultant averaged state equation is

(14)

where is the average of the input vector . In practice,duty ratio is positive for all . For the hysteresis current referencevector , the converter reference voltage is

(15)

Dividing by gives a switching reference,which is substituted in (13) to get three continuous duty ratios

and . It is noticeable thatcan be mathematically subjected to error, and this error can betechnically lowered. Nevertheless, in circuit simulators (e.g.,PSpice), (15) can be modeled using a current-dependent cur-rent-source of that is connected through an inductance

and a resistance to an independent voltage source of .Thus, the voltage across the current-dependent current-sourcepresents the desired voltage reference . Alternatively,this can be done using the available outcome of the modulator

that is integrated like (13) (see Section V and Fig. 12for more explanation).

B. Average Circuit Model

Five states of (14) describe the average inductor currents andcapacitor voltages. The first three equations can be interpreted asmeaning that the average inductor current of each phase depends

on the voltage difference between the utility and a voltage-con-trolled voltage source (VCVS). These three VCVS are named

, and obtained by comparing the firstthree equations of (14) with (15) as follows:

(16)

The fourth equation shows that the current of capacitor (av-eraged over every ) is the sum of three average currents ofupper switches, each can be represented by a current-controlledcurrent source (CCCS) . The fifth equa-tion similarly defines the average current of capacitor as thesum of three average currents of lower switches

, forming six CCCS in total:

(17)

The resulting equivalent circuit model is shown in Fig. 4, and issuitable for SPICE-like circuit simulators. A small impedance

connecting the neutral point to the earth is shown in Fig. 4,which is useful for protection design of the STATCOM.

C. Ripple Estimation

The difference between the state vectors of the exact andaverage models is the switching ripple vector (plus anyresidual error in the average model) expressed by

. We can consider being the state vector of a ripplemodel. Taking (6) and (14), the state equation of the ripplemodel can be obtained and solved to provide a perfect cor-rection to the average model. However, this is computationallyequivalent to solving the exact model itself. In practice, someuseful economies can be made. Considering Fig. 1, writing twoKVLs for the actual current vector during and [sim-ilar to (15)], combining with a KVL for the average currentand ignoring will provide an approximate ripple on top ofthe average currents. Then, using the resulting ripples for thephase currents, the capacitor voltage ripples are obtained. Thus,by doing a detailed analysis, the ripple vector can be given as(18), shown at the bottom of the next page, where , and

are three switching ripples of the AF or STATCOM currents,and are the ripples of the two capacitor dc voltages.

Adding the approximate to the average waveformgives waveforms that are usefully close to the exact ones. Wecall this the average-plus-ripple model.

D. Simulation and Experimental Results

In this section we compare various simulation results forour models, performed with MATLAB and PSpice. Theparameters used here are based on those of a 250 kVArpractical STATCOM, providing good agreement with theperformed simulations. The three-phase input voltages were

, and mH, 1.2 mF,0.04 . The reference current vector was

, and

Page 5: IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. …IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. 2, MARCH 2008 723 Averaging Technique for the Modeling of STATCOM and Active

BINA AND BHAT: AVERAGING TECHNIQUE FOR THE MODELLING OF STATCOM AND ACTIVE FILTERS 727

Fig. 4. Equivalent average circuit model for shunt applications, suitable forSPICE-like circuit simulators.

the hysteresis half-band was 8 A. The following simulationshave been performed.

1) Steady state: An inductive case with reference parameters50 A and 0 was simulated with PSpice using

the average circuit model (see Fig. 4), comparable withthose of experimental three-phase currents absorbed by thecompensator. Fig. 5(a)–(b) show the waveforms.

2) Harmonic absorption: A simple filtering example was sim-ulated with PSpice using the average circuit model. Theshunt device absorbs reactive current with reference pa-rameters A and , being distorted by fifthharmonic current that is about 7.5% of its fundamental re-active current. Fig. 5(c)–(d) present the three-phase cur-rents concerned with both the averaged simulation and theexperimental results.

3) Ripple estimation: The average-plus-ripple model was em-ployed to add the ripples on top of the three-phase currentswith MATLAB. Fig. 5(e) shows the simulation results, andthe shapes can be compared with those of the practicalcase illustrated by Fig. 5(f). The hysteresis half-band usedin the simulation was 8 A since a small band providesthe possibility of showing high-frequency ripple simula-tions. Whereas, the experimental results are obtained witha hysteresis half-band much higher than 8 A with a lowerswitching frequency in order to reduce the losses. For the-oretical modeling and design, experimental results are notnecessarily needed.

The equivalent circuit model of Fig. 4, simulated with PSpice[Fig. 5(a), (c)], demonstrates the compatibility of the averagemodel for the involved perturbation frequency. Simulation re-sults given by Fig. 5(a) and (c) introduce waveforms so that theirshapes can be compared with those of experimental outcomesof Fig. 5(b) and (d), respectively. Ignoring the high switching

frequency ripples the average simulations are in good agree-ment with those of the exact practical results, validating the av-erage circuit model as well as the mathematical average model.Simulation results obtained by the average-plus-ripple model inFig. 5(e) are very close to the exact hysteresis waveforms inFig. 5(f), validating the average-plus-ripple model. But the de-veloped average models ran much faster than the exact model(our PSpice simulations confirm that when the time step forthe exact system has to be small, then the average models per-form at least 60 times faster than the exact system simulations),offering useful savings in situations where extremely accuratewaveforms are not important (e.g., for investigating the effectsof three-phase unbalance on the operation of STATCOM or AF).

IV. FIXED SWITCHING FREQUENCY MODEL

Fig. 6(a) shows an isolated three-phase STATCOM, con-trolled by a PWM scheme [20]. The capacitor carries thedc voltage is the power system voltage and convertercomposed voltage is . By varying , reactive power canbe controlled to emulate a certain application such as voltageregulation. In a STATCOM, there is a small phase difference

between the converter voltage and the ac system voltage.In other words, current that flows through STATCOM containboth reactive and active components. In fact, changingwill vary the dc voltage , and consequently the converteroutput . In [21], [22], the explained mode of operation ismodeled by transforming the STATCOM state equations to asynchronous frame, showing a stable system with oscillatorydynamic response for the STATCOM.

A typical steady state operation of STATCOM as a func-tion of is depicted in Fig. 6(b). Three state variablesand give the equivalent active current, reactive current, anddc voltage, respectively. This figure shows almost a linear re-lationship for the reactive current as a function of over

, although the state equations represent a nonlinearsystem. When is negative, STATCOM works in capacitivemode, while positive corresponds to inductive mode. Thissuggests a way of controlling STATCOM, mainly by .

Note that the control loop focuses on to get the requiredoperational setting points [see Fig. 6(b)], while the PWM mod-ulation index is fixed close to one. In other words, the convertervoltage is varied by control parameter over the linear region.Thus, there are two main periods involved in STATCOM: thereference period (obtained from the mains supply frequency)and the switching period (depending on ), the period ofthe PWM carrier, typically a few kilohertz. As is usual in PWM,

(18)

Page 6: IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. …IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. 2, MARCH 2008 723 Averaging Technique for the Modeling of STATCOM and Active

728 IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. 2, MARCH 2008

. Further, it is assumed that is an integer multipleof . We define

(19)

(20)

where is the switching function within the th switchingperiod and is the duty ratio for the th switching pe-riod. Note again that, at this stage, the duty ratio is considered asa discrete value associated with an individual switching period.

A. State-Space Model

Consider the STATCOM of Fig. 6(a). Applying the methodof Section III-A, and introducing the switching function

, the state equations can be obtained

(21)

(21a)

Then (21) is averaged over a switching period to develop acontinuous-time model, in the form of (3). Let and ,the averaged state vector and its derivative, be considered as in(7) and (9), respectively. Note that here the switching periodis fixed. Integrating (21) over and applying (7) and(9), we get

(22)

The waveform of during has four possible forms,as shown in Fig. 7. Each of these forms can be substituted in theright hand side of (22) as the switching waveform. Taking theworst case leads us to

(23)

Here, , where is the sub-intervalof during which the upper switch is closed. Again,the slower is the variation of and higher is the PWM fre-quency, the smaller is the error (see Appendix 2 for more de-tails). Since the power-system frequency is much smaller thanthe PWM frequency, the error term is expected to be small. Inte-grating the PWM switching functions in Fig. 7 over ,the switching function average is

(24)

giving the continuous duty-ratio function . The resultantaverage state equation is

(25)

where is the average of the input vector . In prac-tice, has a sinusoidal waveform. Here, the special case isconsidered where the PWM has a carrier waveform that rampsbetween and , and a sinusoidal reference of

for phase a, being the modulation index. Considering aFourier series for , its fundamental phasoris substituted in (23) and (24) (the dc term and higher harmonicsbeing neglected), to find the continuous as

(26)

where is the ratio of the carrier frequency over the mains fre-quency. Similar approximations could be given for and

. Note that the phase angle will not be different forthree phases when is chosen as an odd multiple of three. Here

45 is considered for the installed device. A MATLAB pro-gram was written to calculate the error between the exact dutyratio (at and the continuous ap-proximation in (26). For 45 (e.g., 2.25 kHz carrier, 50 Hzreference), the worst-case error is less than 1.5%.

B. Average Circuit Model

To get the average circuit model, based on available termswithin (21) and (25), first two independent voltage sources alongwith two voltage-controlled voltage sources (VCVS) are definedas follows in (27) and (28), respectively

(27)

(28)

Three state (25) describe the average inductor currents andcapacitor voltage. The first two equations can be interpreted

Page 7: IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. …IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. 2, MARCH 2008 723 Averaging Technique for the Modeling of STATCOM and Active

BINA AND BHAT: AVERAGING TECHNIQUE FOR THE MODELLING OF STATCOM AND ACTIVE FILTERS 729

Fig. 5. Simulation and practical results for the developed average models: (a)–(b) PSpice simulation of an inductive case using the average circuit model comparedto the experimental three-phase currents; (c)–(d) PSpice simulation of an active-filter example using the average circuit model, absorbing about 7.5% fifth harmonicon top of the fundamental component, compared to experimental three-phase currents; and (e)–(f) MATLAB adds the ripples on top of the average currents usingthe average-plus-ripple model compared to the actual currents.

as meaning that the average inductor currents depend on thevoltage difference between the independent sources (27) anddependent sources (28).

The third equation shows that the current of capacitor (av-eraged over every ) is composed of two current-controlled

current sources (CCCS) and , each as a function of dutyratios and line currents, namely

(29)

Page 8: IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. …IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. 2, MARCH 2008 723 Averaging Technique for the Modeling of STATCOM and Active

730 IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. 2, MARCH 2008

Fig. 6. (a) Equivalent three-phase circuit of STATCOM and (b) equivalent reactive current, active current, and capacitor voltage as a function of �.

Fig. 7. Four possible forms of s(�) over [t � T ; t].

The resulting equivalent circuit model is shown in Fig. 8, andis suitable for circuit simulators such as SPICE. Two big im-pedances connect the capacitor circuit to inductor circuits forPSpice simulation purposes, leaving negligible effect on the cir-cuit behavior.

C. Simulation Results

In this section we compare various simulation results forSTATCOM and our models, performed with PSpice (as a cir-cuit simulator) and MATLAB (as a mathematical time domaindifferential equation simulator). The parameters used here arebased on those of an experimental 75 kVAr STATCOM tovalidate the proposed models.

1) MATLAB Simulations: First, the average modelof STATCOM was simulated. The input voltage was

155.6, and STATCOM parameters are 1.0 mH,

1.2 mF, 0.06 , and the modulation indexwas fixed at 0.9. Figs. 9(a) and 10(a) show the state variablesof STATCOM for two cases: 1 (inductive mode) and

1 (capacitive mode). These results show that the capac-itor voltage tends to increase for 1 , while it decreasesfor 1 , both converge to certain steady state conditions.The line currents and can be added together to get theother line current .

Fig. 8. Equivalent circuit average model of STATCOM, suitable for SPICE-likecircuit simulators.

2) PSpice Simulation Results: The equivalent circuit modelof Fig. 8 together with the exact switched-system model ofFig. 6(a) were simulated with PSpice. The parameters are thesame as those of MATLAB simulations of Figs. 9 and 10.Figs. 9(b) and 10(b) depict the state variables for both the exactand the average models starting at 120 ms. Apart from theripples, the agreement is good, demonstrating the compatibilityof the average model for the involved perturbation frequency.The PSpice simulation results can also be compared withthose of MATLAB, presented by Figs. 9 and 10. Again theagreement is good, validating the equivalent circuit as well asthe mathematical average model.

3) Experimental Result: A 75 kVAr IGBT-based(SKM200GB124D: 1700 V, 200 A devices) STATCOMwas used for experimental tests, with the parameters alreadygiven in Section IV-C1. Figs. 9(c) and 10(c) provide a typ-ical STATCOM current along with the capacitor voltage forboth inductive and capacitive modes. Comparing PSpice andMATLAB simulations with practical outcomes, the agreementis good, validating the introduced models.

4) An Application Example: As an application of the devel-oped circuit model, here a transient of STATCOM is simulatedwith PSpice. Initially, the STATCOM is injecting reactive power

1 . At 130 ms, the control angle is changed to

Page 9: IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. …IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. 2, MARCH 2008 723 Averaging Technique for the Modeling of STATCOM and Active

BINA AND BHAT: AVERAGING TECHNIQUE FOR THE MODELLING OF STATCOM AND ACTIVE FILTERS 731

Fig. 9. Simulation results for the average model of STATCOM, operating in aninductive mode (� = 1 ): (a) MATLAB simulation of the average mathemat-ical model; (b) PSpice simulation of the average and the exact circuit models;and (c) experimental results validating both the simulations and models.

1 using a step function, which forces the STATCOM toabsorb the same reactive power. Fig. 11(a) shows this simula-tion, containing both the exact and average waveforms of thecapacitor voltage and the inductor current . Also, the ap-plied voltage is included. Similarly, Fig. 11(b) shows experi-mental results for the transient case, where at about labeled120 ms the same change as that of the simulation case was ap-

Fig. 10. Simulation results for the average model of STATCOM, operatingin a capacitive mode (� = �1 ): (a) MATLAB simulation of the averagemathematical model; (b) PSpice simulation of the average and the exact cir-cuit models; and (c) experimental results validating both the simulations andthe models.

plied. Comparison of Fig. 11(a)–(b) indicate that both simula-tion and practical work take about one cycle to approach theirnew operating points, again validating the average models.

Page 10: IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. …IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. 2, MARCH 2008 723 Averaging Technique for the Modeling of STATCOM and Active

732 IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. 2, MARCH 2008

Fig. 11. Transient of STATCOM, changing from a capacitive mode (� =�1 ) to an inductive mode (� = 1 ) using a step function: (a) PSpice sim-ulation of both the exact and the average circuit models; and (b) experimentalresults validating the general shape of the simulations.

Fig. 12. Typical application of the aveage model in designing the power systemvoltage controller; where S(t) and D(t) are the vectors of the switching statesand the duty ratios, respectively.

V. CONTROL DESIGN APPLICATIONS

The developed models of (14) and (25) can be used for controldesign purposes. Duty ratio in (14) is supplied to the model asthe switching pulses are modulated by the reference signal. Fur-ther, this was embedded in (25) using the sinusoidal modulationof (26) for reactive power control of STATCOM. In practice,embedding the duty ratio is not necessary, and can be managedby the control design and modulating process.

Fig. 12 shows the use of the average model in designing thevoltage regulator of a power system bus. Inputs of the average

model of (25) are the phase difference , input vector and thevector of duty ratios . The phase angle is provided by thecontroller, by the power system bus and is supplied byintegrating the outcome of the modulator. Note that bold linesare used to show the power circuit parts while the normal linespresent the control diagram.

VI. CONCLUSION

An average technique has been used to approximate thebehavior of power electronic shunt devices connected to apower system, both for variable and fixed switching frequency.Starting with the exact state equations, average mathematicalmodels were developed. Then, equivalent circuit models werederived from the resulting equations. The exact systems (sim-ulated with PSpice and obtained by practical tests) and theirapproximate models (simulated with MATLAB and PSpice)are all in good agreement. The provided analytical discussionsverify that the necessary and sufficient conditions of the av-eraging theorems in [7] are satisfied by the proposed models.This is further verified by simulation and experimental results.

APPENDIX IVARIABLE SWITCHING PERIOD

Consider Fig. 2 to derive the variable expression given by(10). Assume the converter output voltage averagedover is . Two slopes and in Fig. 2 can beworked out as and respectively.In the mean time, by neglecting , a KVL in Fig. 1 relates

and , and another KVL in Fig. 4 relatesand as follows:

(30)

These two equations are then combined together by eliminatingfrom (30) to get (using or

in Fig. 2, i.e., assuming that thecapacitor voltages are equal)

(31)

where there exist two approximate expressions for that haveto be identical. Similarly, this is true for , leading to

(32)

By adding to , we get an expression for the variableswitching period given by (10).

APPENDIX IIDETAILED AVERAGE AND ERROR ANALYSIS

Page 11: IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. …IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. 2, MARCH 2008 723 Averaging Technique for the Modeling of STATCOM and Active

BINA AND BHAT: AVERAGING TECHNIQUE FOR THE MODELLING OF STATCOM AND ACTIVE FILTERS 733

Here the details of the error analysis are presented. First, theerror term in (12) and (23) is introduced for the possible casesillustrated in Figs. 3 and 7. Second, an upper bound is assignedto the error term. Let be the error term. Consider the topleft graph in Fig. 3. By substituting its parameters in the secondterm of (12), we have

(33)

Assuming , and in thisgraph, we have . Also, considering thatthe integral of is equal to ,then (33) could be rewritten as

(34)

Now, , and are expandedby their Taylor series ( , and being very small). For ex-ample, wherethe higher terms are ignored as is very small, and issmooth. Substituting these relationships in (34), leads us to thefollowing equation:

(35)

The first term on the RHS is the average, and the second term is the error . A

similar procedure was carried out for the other three graphs inFig. 3. The resulting error functions are

(36)

Now an upper bound is assigned to the error function.The error function has different forms as stated in (36).Here it is shown that the error function always obeys

. Considering the top left graph in Fig. 3,it is clear that . As

, it can easilybe found that . Duty ratiovaries over , resulting in .This implies . This was also carried out

for other graphs, resulting in the same upper bound for allpossible cases in the worst case. As a result of this analysis,

in (12) and (23) is substituted by .

REFERENCES

[1] C. A. Quinn, N. Mohan, and H. Mehta, “A four-wire current-controlledconverter provides harmonic neutralization in three-phase, four wiresystems’,” in Proc. IEEE Appl. Power Electron. Conf. (APEC’93),1993, pp. 841–846.

[2] A.-A. Edris et al., “Proposed terms and definitions for flexible ac trans-mission systems (FACTS),” IEEE Trans. Power Delivery, vol. 12, no.4, pp. 1311–1317, Oct. 1997.

[3] M. T. Bina, M. D. Eskandari, and M. Panahlou, Design and Installa-tion of a�25 kVAr D-STATCOM for a Distribution Substation. Am-sterdam, The Netherlands: Elsevier, Mar. 2005, pp. 383–391.

[4] R. D. Middlebrook and S. Cuk, “A general unified approach to mod-eling switching-converter power stages,” in Proc. IEEE Power Elec-tron. Spec. Conf., 1976, pp. 18–34.

[5] B. Lehman and R. M. Bass, “Switching frequency dependent averagedmodels for PWM dc–dc converters,” IEEE Trans. Power Electron., vol.11, no. 1, pp. 89–98, Jan. 1996.

[6] P. T. Krein, J. Bentsman, R. M. Bass, and B. C. Lesieutre, “On the useof averaging for the analysis of power electronic systems,” IEEE Trans.Ind. Electron., vol. 5, no. 2, pp. 182–190, Apr. 1990.

[7] B. Lehman and R. M. Bass, “Extension of averaging theory for powerelectronic systems,” IEEE Trans. Power Electron., vol. 11, no. 4, pp.542–553, Jul. 1996.

[8] B. Lehman, J. Bentsman, S. V. Lunel, and E. Verriest, “Vibrationalcontrol of nonlinear time lag systems: Averaging theory, stabilizability,and transient behavior,” IEEE Trans. Automat. Control, vol. 32, no. 3,pp. 509–517, May/Jun. 1996.

[9] V. A. Caliskan, G. C. Verghese, and A. M. Stankovic, “Multifrequencyaveraging of DC/DC converters,” IEEE Trans. Power Electron., vol.14, no. 1, pp. 124–133, Jan. 1999.

[10] S. R. Sanders and G. C. Verghese, “Synthesis of averaged circuitmodels for switched power converters,” IEEE Trans. Circuits Syst.,vol. 38, no. 8, pp. 905–915, Aug. 1991.

[11] M. T. Bina and D. C. Hamill, “Average model of the bootstrap variableinductance,” in Proc. IEEE Power Electron. Spec. Conf. (PESC’00),Jun. 2000, [CD ROM].

[12] M. I. M. Montero, E. R. Cadaval, and F. B. Gonzalez, “Comparison ofcontrol strategies for shunt active power filters in three-phase four-wiresystems,” IEEE Trans. Power Electron., vol. 22, no. 1, pp. 229–236,Jan. 2007.

[13] A.-A. Edris, S. Zelingher, L. Gyugyi, and L. J. Kovalsky, “FACTSsystem studies,” IEEE Power Eng. Rev., pp. 4–6, Jun. 2002.

[14] R. Adapa, “FACTS system studies,” IEEE Power Eng. Rev., pp. 17–22,Dec. 2002.

[15] H. Fujita and H. Akagi, “Voltage-regulation performance of a shuntactive filter intended for installation on a power distribution system,”IEEE Trans. Power Electron., vol. 22, no. 3, pp. 1046–1053, May 2007.

[16] A. García-Cerrado, O. Pinzón-Ardila, V. Feliu-Batle, P. Ron-cero-Sánchez, and P. García-González, “Application of a repetitivecontroller for a three-phase active power filter,” IEEE Trans. PowerElectron., vol. 22, no. 1, pp. 237–246, Jan. 2007.

[17] L. Asiminoaei, C. Lascu, F. Blaabjerg, and I. Boldea, “Performanceimprovement of shunt active power filter with dual parallel topology,”IEEE Trans. Power Electron., vol. 22, no. 1, pp. 247–259, Jan. 2007.

[18] N. G. Hingorani and L. Gyugyi, Understanding FACTS: Concepts andTechnology of Flexible ac Transmission Systems. New York: IEEEPress, 2000, Book.

[19] K. R. Padiyar, FACTS Controllers in Power Transmission and Distribu-tion. New Delhi, India: New Age International Publishers (FormerlyWiley Eastern Limited), 2007.

[20] C. D. Schauder, M. Gernhardt, E. Stacey, T. Lemak, L. Gyugyi, T. W.Cease, and A. Edris, “Development of a�100MVAR static condenserfor voltage control of transmission systems,” IEEE Trans. Power De-livery, vol. 10, no. 3, pp. 1486–1496, Jul. 1995.

[21] C. Shauder and H. Mehta, “Vector analysis and control of advancedstatic VAR compensators,” Proc. Inst. Elect. Eng. C, vol. 140, no. 4,pp. 299–306, Jul. 1993.

[22] P. Rao, M. L. Crow, and Z. Yang, “STATCOM control for powersystem voltage control application,” IEEE Trans. Power Delivery, vol.15, no. 4, pp. 1311–1317, Oct. 2000.

Page 12: IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. …IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. 2, MARCH 2008 723 Averaging Technique for the Modeling of STATCOM and Active

734 IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 23, NO. 2, MARCH 2008

M. Tavakoli Bina (SM’07) received the B.Sc. andM.Sc. degrees from the University of Tehran, Tehran,Iran, in 1988 and 1991, respectively, and the Ph.D.degree from the University of Surrey, Guilford, U.K.,in 2001, all in power electronics and power systemutility applications.

From March 1992 to November 1997, he was withthe K. N. Toosi University of Technology, Tehran,as a Lecturer working on power systems. In January1998, he enrolled as a doctoral student in the De-partment of Electronics and Computer Engineering,

University of Surrey. Since September 2001, he has been with the Faculty ofElectrical and Computer Engineering, K. N. Toosi University of Technology(KNTU), Tehran. Currently, he is an Associate Professor at KNTU. His mainresearch interests include power converters, modulation techniques, control andmodeling of FACTS controllers, distribution systems, and power system con-trol.

Ashoka K. S. Bhat (S’82–M’85–SM’87–F’98)received the B.Sc. degree in physics and mathfrom Mysore University, India, in 1972, the B.E.degree (with distinction) in electrical technology andelectronics and the M.E. degree (with distinction)in electrical engineering from the Indian Institute ofScience, Bangalore, in 1975 and 1977, respectively,and the M.A.Sc. and Ph.D. degrees in electricalengineering from the University of Toronto, Toronto,ON, Canada, in 1982 and 1985, respectively.

From 1977 to 1981, he worked as a scientist in thePower Electronics Group, National Aeronautical Laboratory, Bangalore, India,and was responsible for the completion of a number of research and develop-ment projects. After working as a Postdoctoral Fellow for a short time, he joinedthe Department of Electrical Engineering, University of Victoria, Victoria, B.C.,Canada, in 1985, where he is currently a Professor of Electrical Engineering andis engaged in teaching and conducting research in the area of power electronics.He was responsible for the development of the Electromechanical Energy Con-version and Power Electronics courses and laboratories in the Department ofElectrical Engineering, University of Victoria.

Dr. Bhat is a Fellow of the Institution of Electronics and Telecommunica-tion Engineers (India), and a registered Professional Engineer in the provinceof British Columbia, Canada.