Analysis and Validation of A Real-Time AC Drive Simulator, 2004.
Analysis and Validation of A Real-Time AC Drive Simulator, 2004.
2, MARCH 2004
Abstract—This paper presents the analysis and validation of a eventually be installed on the grid, by interconnecting an actual
real-time ac drive simulator. Real-time simulation has been used controller to a simulated grid. This in turn opens the possibility
for over a decade in power systems engineering to test controllers of testing the various controllers much more thoroughly, in ways
thoroughly, efficiently, and safely. The development and testing
of large ac drives could benefit from this type of simulation, but that are impossible on a real power system, either for safety rea-
real-time power system simulators have modeling restrictions sons or simply because of the high cost of performing “live”
preventing stable and accurate simulation of isolated drives tests. Such simulators are used to test, among others, static reac-
switching at high frequencies. These restrictions can be overcome tive power (VAR) compensation systems (SVS) and controllers
by combining in a single model both the power converter and for HVDC systems [1].
motor models. After discussing the salient issues related to the
real-time simulation of ac drives, a prototype real-time simulator Engineers responsible for designing and prototyping high-
for drives is described. Its ability to accurately emulate the power ac drives could benefit from a real-time drives simulator
behavior of large drives is demonstrated through two case studies. just as the power engineering community has. Although there
A first case study demonstrates the feasibility of simulating a drive are numerous simulation tools dedicated to the simulation of
of typical complexity in real-time. The second case study demon- drives, to our knowledge there currently exists no real-time sim-
strates how the controller for a PWM VSI fed induction motor,
switching at 4 kHz, is designed, implemented in a microcontroller ulator that allows interconnecting an ac drive’s controller to a
and tested in real-time using a simulated inverter, motor and load. simulated plant (i.e., power source, converter, machine and load)
Comparisons against results obtained with another simulation and characterized by a converter switching frequency in the
tool, which uses extremely accurate variable-step integration kHz range. Although current real-time power system simulators
algorithms, demonstrates the validity of our approach. include power converter and electric machinery models, limi-
Index Terms—AC motor drives, hardware-in-the-loop testing, tations of these models and/or the overall simulation strategy
real time simulation, state space methods. prevents their use in the study of drives. The main limitation
(with respect to simulating drives) of existing real-time power
I. INTRODUCTION system simulators resides in the fact that machines are indepen-
dent models, as is the case in most simulation packages that
vector controlled induction motor, but their simulation consists under study, which can be a tedious task [9]. However, we will
in a simulated motor connected to a real controller and power describe in subsequent sections a fully automated process which
converter, therefore bypassing the difficulties associated to the obtains the state equations of any drive.
simulation of high frequency switching devices contained in
the converter. Abourida et al. [5] present a real-time simulator B. Machine Equations
which they claim can simulate drives in real-time, but the exam- Electric machinery modeling is a topic that has been ex-
ples provided don’t support this claim. Moreover, they specifi- tensively covered in the literature (see for instance [10]).
cally state that for PWM simulations (which use passive loads However, in the context of a real-time simulation, there are a
instead of motors), their system is limited to a switching fre- few important points which must be considered carefully. In
quency of 2 kHz for a 50 time step and uses averaging sim- this paper, we consider a three-phase three-wire wye connected
ulation models for switching frequencies beyond this limit. squirrel-cage induction machine. The fact that we are consid-
This paper presents the analysis and validation of a proto- ering a squirrel-cage machine implies that the rotor voltages are
type real-time ac drive simulator that offers new possibilities zero, while the three-wire connection implies that there is no
to drive designers. The rest of this paper is organized as fol- homopolar component in the voltages or currents. Moreover,
lows. Section II discusses various modeling issues related to there are only two independent stator voltages, for instance
the individual central components of a drive, namely the power and , and two independent currents, for instance and ,
converter and the electric motor. An innovative method of up- in both the stator and rotor.
dating converter-related state equations is described. Section III In order to simplify the differential equations describing the
presents a global model created by Davat [6], based on the state dynamic behavior of machines, it is common practice to con-
variable approach (SVA), which includes both the machine and sider machine equations in a set of transformed coordinates
inverter. This model is a key factor in our ability to simulate . The most common reference frames are
ac drives in real-time. Section IV demonstrates the feasibility • the rotor reference frame, associated to the Park transfor-
of the proposed approach by providing results from two case mation;
studies. The first case study, where all drive components are • the stationary reference frame, associated to the Clarke or
simulated (including the controller), is used to show how drives transformation;
with multiple power converters (for instance a rectifier and an • the synchronous reference frame.
inverter) are handled in our approach. In the second case study, The choice of a reference frame transformation depends on
a drive consisting of a PWM VSI inverter fed induction motor the application [10]. In our case, the rotor voltages are zero but
is simulated. The (real) controller uses a PI speed regulator the stator will be fed by a power converter. This encourages
and space vector PWM with a switching frequency of 4 kHz. us to use either the stationary or synchronous reference frame
This case study provides a quick walkthrough of the process in- transformation. Because it yields simpler (constant) transforma-
volved in designing and prototyping a drive’s controller using tion matrices, we have chosen the stationary reference frame.
our approach. Validation of both case studies’ results is per- The transformation equations for stator voltages and currents
formed by comparing them to those obtained with another simu- are then given by (3) and (4), where the subscript indicates
lation tool well adapted for the simulation of drives, namely the stator quantities
Power System Blockset (PSB) [7]. Finally, we provide a few
concluding remarks and discuss future work. (3)
(1)
(2)
(12)
quantities relating to the converter only, while subscript The relation between the fictitious current sources and the
is used to indicate quantities relating to the machine only. The machine’s stator currents in the reference frame is given
rotor voltages and currents, and , are the only quanti- by
ties which fall in this last category. Finally, subscript is used
to indicate quantities which are common to both the converter (13)
and machine parts of the system. For the moment, the fictitious
current sources and voltages across them are the variables where is the reference-frame transformation matrix defined
common to both parts. in (4). The next step toward our final system of equations con-
We mentioned earlier how we obtain the state-space repre- sists in finding the relation between the machine’s stator volt-
sentation of the source and converter using linear graph theory. ages in the reference frame, , and the voltage across the
Using (1) and splitting the input vector into two vectors and fictitious current sources, . First, we define
, we obtain (8), where the state vector consists in twig ca-
pacitor voltages and link inductor currents , (14)
as described earlier
where matrices , and are obtained through linear graph
(8)
theory and are simply sub matrices of the converter output ma-
trices and . Finally, the machine’s stator voltages are re-
For the machine, the state-space representation of the elec-
lated to the fictitious current source voltages by
trical part was shown in (5). This equation can be written in
compact form as (9), where subscript indicates machine-re-
lated quantities
(15)
(9)
Combining (13) and (8), and then (15) and (12), we obtain
The machine’s state and input vectors are redefined as follows the global state-space representation (16) of the electrical part
to conform to the system in Fig. 5 of the entire drive, where the state variables are the converter
twig capacitor voltages and link inductor currents (in the
(10) reference-frame), and the machine’s stator and rotor currents in
(11) the stationary reference frame. In (16), subscript indicates
“final” state matrices. Because of the way the switch is modeled
Since we are considering a squirrel-cage induction machine, (two-valued resistor), matrices , , and will change
and are zero and therefore is zero and is no every time a switch changes state. Also, the terms in (16)
340 IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 19, NO. 2, MARCH 2004
contain the machine’s rotor speed . This term is introduced A. Simulation Platform
by the reference-frame transformation Although this project concentrates on developing simulation
algorithms related to the real-time simulation of drives, the hard-
ware dimension of such simulations is also important. This sec-
tion therefore briefly describes the hardware aspect of imple-
menting a real-time drives simulator.
The simulator used in our work is not primarily meant for
the simulation of drives but is adequate for such use. This sim-
ulator is a Hypersim real-time power system simulator [13].
(16) Our setup consists of 15 computing nodes, each containing a
DEC Alpha 533 MHz processor and a SHARC DSP enabling
communications with six other processors. A set of digital and
analog inputs and outputs completes the simulator. This simu-
B. Numerical Integration
lator is perhaps too powerful for the simulation of drives. Un-
All the steps done so far involve continuous (not discrete) less the goal is to simulate a large number of interconnected
state matrices. Since we are seeking to implement a real-time drives, it is not required to have so many processors. Our first
simulation, we can’t consider variable-step integration algo- case study presented below uses three proces sors, while our
rithms. The iterative nature of these algorithms makes them second case study uses a single processor, as there is no rectifier
useless when considering real-time simulation of electrical in this case. Hence a much smaller (and less expensive) simu-
systems. Therefore, once and are computed, we must lator would be adequate for the simulation of one or perhaps a
compute their discrete equivalents, using some fixed-step few drives. We are currently investigating using PC clusters for
integration algorithm. our purposes, a trend which is also being investigated in the large
We have chosen to use the trapezoidal integration rule in our power system simulation community [14]. The main advantage
work. It is the most accurate implicit one-step method [12] and of using off-the-shelf PCs over custom built simulators is the
it is widely used in simulation of large power systems. Using substantially reduced cost, making the technology accessible to
this integration algorithm, we update the state vector at step a larger set of potential users. The main requirement for any
as in (17) [12], using a fixed time step ( is the identity hardware to be adequate for our purposes is the inter-processor
matrix) communication overhead and the I/O acquisition time, both of
which must be as low as possible, as they limit the smallest time
step that can be used for a real-time simulation.
(a)
(b)
Fig. 9. First case study: motor current, phase A. (a) First 4.5 s of the simulation. (b) Detail of the last few cycles, showing real-time (thin curve) and PSB (thick
curve) results.
prototype of a drive’s controller in a safe and efficient manner. The first step consists in building an offline simulation that
In the previous case study, the controller was simulated. Here, will serve as reference. To perform this simulation, a model of
we describe a system where the controller was actually designed the controller is assembled in Simulink. This model was actu-
and implemented in a microcontroller. The controller is then in- ally used to design the controller and takes into account physical
terfaced to the real-time simulator, which emulates the entire limitations of the actual controller, such as the various sampling
high-power stage of the drive, namely the power source, con- rates used in different parts of the controller. The ac drive chosen
verter, machine and load. The rest of this section is a walk- for the study is a PWM VSI inverter fed induction motor. The
through of the process involved. PWM modulator is based on the space vector scheme [17] and
CHAMPAGNE et al.: ANALYSIS AND VALIDATION OF A REAL-TIME AC DRIVE SIMULATOR 343
Fig. 11. Second case study: offline simulation used as reference (Simulink/PSB).
Fig. 13. Second case study, rotor speed: offline simulation with PSB (thin line), proposed real-time method (thick line).
the switching frequency is 4 kHz. The drive uses a 5 HP motor ulation. Fig. 14 shows the line current in phase of the motor,
and a fan-type load. The motor speed is regulated by a PI con- again using both simulation methods. There is a small difference
troller. Fig. 11 shows the PSB/Simulink block-diagram of the in rotor speed, resulting in the currents drifting away from each
complete drive. other. However, the envelopes of the two current waveforms are
Once the offline simulation model is built, a real-time ver- nearly identical and both curves exhibit the same frequency con-
sion is obtained simply by removing the controller part (since tent.
the intent is to interface a real controller to a simulated in- It is important to note that we are comparing waveforms from
verter and motor). The controller is implemented using a Mo- two very different simulations. On the one hand, the offline sim-
torola MC68332 microcontroller. The controller and simulator ulation uses a model of the controller, while on the other hand,
are electrically isolated from each other through phototransis- a real controller is interfaced to a simulated power stage. The
tors. The setup is shown in Fig. 12. small differences obtained in the speed and current waveforms
The test performed consists in starting the drive from stall, can probably be attributed to the fact that the controller model
imposing a speed reference of 300 rpm. After stabilization of used in the offline simulation does not represent all the sub-
rotor speed and motor current, the speed reference is stepped to tleties of the real controller. Moreover, the converters through
a new value of 600 rpm. Fig. 13 shows the rotor speed obtained which signals transit between the controller and the simulator
with both the reference offline simulation and the real-time sim- are simply modeled as zero-order holds in the offline simula-
344 IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 19, NO. 2, MARCH 2004
(a)
(b)
Fig. 14. Second case study, motor phase A current using both simulation methods. (a) Overall view. (b) Detail of last few cycles using PSB (thin line) and
proposed real-time method (thick line).
tion. Last but not least, the reference offline simulation uses For instance, there are many industrial drives in motion ap-
variable-step variable-order integration algorithms, while our plications based on the permanent magnet synchronous motor
real-time approach uses fixed-step integration. (PMSM), or dc brushless motor. Ongoing work is also being
performed in order to use more affordable PC-based simulators
V. CONCLUSION and to improve the communications and acquisition overhead,
We have described in this paper a promising tool, a real-time in order to reduce the time step of the simulations. Alternative
simulator for ac drives. After discussing simulation issues re- algorithms are also currently under investigation.
lated to the individual components of the drive, a global state-
space model containing both the inverter and the motor was pre- ACKNOWLEDGMENT
sented. The use of this model is a key factor in the success of The authors wish to thank the anonymous reviewers for
the proposed approach, as it eliminates the one time step delay their constructive comments, which undoubtedly improved the
inherently present when the two components are simulated in quality of this publication.
separate models. A first case study demonstrated how to handle
systems that can’t be simulated in a single processor, which is REFERENCES
the case when there is more than one power converter. This case
[1] H. Nakra, G. Sybille, C. Gagnon, and M. Toupin, “The IREQ simu-
study illustrates a limitation of the proposed approach, in the lator—a test bench for closed loop testing of controllers of high power
sense that some types of drives require a smaller time step than electronics apparatus,” in Proc. Int. Conf. Power Electron. Drives En-
the one we are currently able to use to represent the full dy- ergy Syst. (PEDES), New Delhi, India, 1996.
[2] H. Le-Huy, G. Sybille, P. Giroux, J.-C. Soumagne, and F. Guay, “Dig-
namics of the drive. However, the results obtained with our ap- ital real-time simulation of a four-quadrant dc drive for static transfer
proach in this case study are more than acceptable for the early switch testing,” in Proc. IEEE Power Eng. Soc. Winter Meeting, 1999,
design stage of drives. A second case study demonstrated how a pp. 761–765.
[3] N. Sureshbabu, S. Seshagiri, A. Masrur, and B. K. Powell, “On real-time
simulated plant, containing the entire high power stage, can be simulation on induction motors,” in Proc. Amer. Contr. Conf., 1999, pp.
interfaced to a real drive controller in order to assist in designing 719–723.
and testing it. This case study used an induction motor fed by [4] Z. M. Zhao, S. Meng, and X. N. Yue, “A flexible virtual system for real
time simulation and evaluation of motor drives,” in Proc. IEEE 1999 Int.
a PWM VSI switching at close to 4 kHz. The results from both Conf. Power Electron. Drive Syst. (PEDS), 1999, pp. 361–365.
case studies prove that we are able to simulate such a system [5] S. Abourida, C. Dufour, J. Bélanger, G. Murere, N. Léchevin, and B. Yu,
in real-time and obtain results that compare very well to those “Real-time PC-based simulator of electric systems and drives,” in Proc.
17th Annu. IEEE Appl. Power Electron. Conf. Expo. (APEC), 2002, pp.
obtained with a different offline simulation tool which uses vari- 433–438.
able-step variable-order integration algorithms. Although the [6] B. Davat, “Étude-Mise au point et applications d’une méthode de simu-
PSB is able to simulate drives using fixed-step algorithms, com- lation globale de convertisseurs statiques connectés à des charges élec-
triques complexes. Study—Design and applications of a global simula-
paring our real-time results to a simulation using very accurate tion method of static converters connected to complex electric loads (in
variable-step integration makes our results that much more cred- French),” Ph.D. dissertation, Inst. Nat. Polytech. de Toulouse, Toulouse,
ible. France, 1979.
[7] L.-A. Dessaint, K. Al-Haddad, H. Le-Huy, G. Sybille, and P. Brunelle,
Follow-up work of this project will include testing the pro- “A power system simulation tool based on Simulink,” IEEE Trans. Ind.
posed approach with other converter and motor combinations. Electron., vol. 46, pp. 1252–1254, Dec. 1999.
CHAMPAGNE et al.: ANALYSIS AND VALIDATION OF A REAL-TIME AC DRIVE SIMULATOR 345
[8] N. Balabanian and T. A. Bickart, Electrical Network Theory. New Louis-A. Dessaint (M’88–SM’91) received the
York: Wiley, 1969. B.Ing., M.Sc.A., and Ph.D. degrees from the École
[9] O. Wasynczuk and S. D. Sudhoff, “Automated state model generation Polytechnique de Montréal, Montreal, QC, Canada,
algorithm for power circuits and systems,” IEEE Trans. Power Syst., vol. in 1978, 1980, and 1985, respectively, all in electrical
11, pp. 1951–1956, Nov. 1996. engineering.
[10] P. C. Krause, O. Wasynczuk, and S. D. Sudhoff, Analysis of Electric He was a Research Assistant at the Hydro-Québec
Machinery. New York: IEEE Press, 1995. Research Institute (IREQ) from 1980 to 1985, where
[11] R. Champagne, “Simulation en temps réel à l’aide de la représentation he worked on the simulation and control of a wind
d’état: application à un entraînement électrique basé sur une machine energy conversion system. He is currently a Professor
asynchrone. Real-Time simulation using the state variable approach: ap- of electrical engineering at the École de Technologie
plication to a drive based on an asynchronous machine,” Ph.D. disserta- Supérieure, Montréal. From 1992 to 2001, he was the
tion, École de Technologie Supérieure, Montréal, QC, Canada, 2001. Director of the Groupe de Recherche en Électronique de Puissance et Com-
[12] T. T. Hartley, G. O. Beale, and S. P. Chicatelli, Digital Simulation of mande Industrielle (GREPCI) (a research group on power electronics and dig-
Dynamic Systems: a Control Theory Approach. Englewood Cliffs, NJ: ital control). Since 2002, he has been the TransÉnergie Chair on Power Systems
Prentice-Hall, 1994. Simulation and Control. He is an author of the SimPowerSystems simulation
[13] V. Q. Do and J.-C. Soumagne, “Hypersim, an integrated real-time sim- software.
ulator for power networks and control systems,” in Proc. 3rd Int. Conf. Dr. Dessaint received the “Outstanding Engineer Award” from IEEE-Canada
Digital Power Syst. Simulators (ICDS), Västerås, Sweden, 1999. in 1997.
[14] C. Larose, S. Guerette, F. Guay, A. Nolet, T. Yamamoto, H. Enomoto,
Y. Kono, Y. Hasegawa, and H. Taoka, “A fully digital real-time power
system simulator based on PC-cluster,” in Proc. 7th Int. Conf. Modeling
Simulation Elect. Machines, Converters Syst. (Electrimacs’02), Mon-
tréal, QC, Canada, 2002.
[15] I. Takahashi and T. Noguchi, “A new quick-response and high-efficiency
control strategy of an induction motor,” IEEE Trans. Ind. Applicat., vol.
22, pp. 820–827, 1986.
[16] R. Champagne, L.-A. Dessaint, G. Sybille, and B. Khodabakhchian, “An Handy Fortin-Blanchette received the B.Eng. and M.Eng. degrees from École
approach for real-time simulation of electric drives,” in Proc. Canadian de Technologie Supérieure, Montréal, QC, Canada, in 2001 and 2003, respec-
Conf. Elect. Comput. Eng. (CCECE), Halifax, NS, Canada, 2000. tively, where he is currently pursuing the Ph.D. degree in electrical engineering.
[17] K. Zhou and D. Wang, “Relationship between space-vector modulation He has been working with the Groupe de Recherche en Électronique de Puis-
and three-phase carrier-based PWM: a comprehensive analysis,” IEEE sance et Commande Industrielle (GRÉPCI) (a research group in power elec-
Trans. Ind. Electron., vol. 49, pp. 186–196, Feb. 2002. tronics and industrial control) as a Research Assistant for the past three years.