Escolar Documentos
Profissional Documentos
Cultura Documentos
Dan Lascu
Politehnica University Timişoara
Faculty of Electronics and Telecommunications,
Bd. Vasile Pârvan 2, 1900 Timişoara, Romania
Phone: 0040-56-204332, ext. 642, Fax: 0040-56-190608,
Email: d.lascu@caspoc.com
Abstract
In this paper a new multilevel simulation/animation tool Caspoc®, [Simulation Research, 2001] is
described, which during simulation animates the power electronic circuit. The user sees the level of
the node-voltages, the level of the branch currents and most important, he can see the current path in
the circuit. The simulation tool can animate any power electronic circuit or electrical drive.
Examples of power electronic and electrical drive animations are given, which show the advantage of
animation.
Keywords
Animation, modeling, simulation, power electronics, electrical drives, teaching
1. Introduction
Teaching and understanding Power Electronics and Electrical Drives have been done with the use of
books and the blackboard. Many of us will remember the times drawing the basic waveforms of
converter operation on paper while keeping the state of the converter in mind.
Simulation made a change here, because it gave us the possibility to use a computer for drawing
while keeping our attention to the operation of the converter. Simulation enabled us to study the
behavior for different parameters and conditions. Still the user has to keep the converter in mind and
he has to make an interpretation of the simulation results.
The next logical step is to present the operation of the converter as a result of the simulation.
Accustomed as we are to cartoons, this logical step is called animation. During the simulation the
converter operation is presented as a cartoon. The resulting animation gives the user an insight in the
converter operation, which was not possible with books and blackboard. Even a real operating
converter does not show so many operating details as during animation, simply, because of the high
switching frequencies. For example, even in a 50Hz rectifier, the step by step operation goes too fast
to follow by the human brain and we use a scope to store the waveforms during the operation.
In animation you can actually see the converter switching, see how integrators in controllers build up
charge and how motors start to rotate.
In section 2, an introduction is given in the mathematical methods, which are used in simulation
programs for Power Electronics and Electrical Drives. The importance of simulation for education is
briefly described in section 3. A short discussion on modeling of components is presented in section 4.
In section 5 the visualization of simulation results is discussed. The fact that animation is not just a
toy is described in section 6 and the impact of the animation on the simulation speed is discussed in
section 7. The examples in this paper will focus on the animation of power electronic circuits and
electrical drives. The user has the possibility to define his own motion control models in a high-level
programming or a block-diagram, enabling him to model, for example, a field oriented controller or
controls for application specific drives, such as fans, pumps and automotive applications. Various
examples of animation, for example the Vienna-Rectifier, conclude this paper in section 8 to 13, with
final concluding remarks in section 14.
The modeling of a component in a Power Conversion System (PCS) is not unique. Depending on the
need of the user, a model can be either simple, detailed, or can contain just enough details to model the
time-domain behavior satisfactory.
The complexity of the mathematical model is not necessarily related to the complexity of the model of
the component. As shown in figure 1, a simple model can contain a (non-linear) acausal mathematical
relation and therefore a Differential Algebraic Equation DAE, [Schwarz, 1987], has to be used for the
mathematical model:
The DAE describes the non-linear, possible acausal, relations among the time-varying state variables
x(t), their time-derivative x (t), the variables y(t) and the input variables u(t) of a PCS.
On the other side, if a more detailed model doesn't contain any acausal relations, it can be described by
a Ordinary Differential Equation ODE:
x (t) = f ODE ( x(t), u(t) )
(2)
y(t) = g ODE ( x(t), u(t) )
The parameters of the matrix A are dependent on the variables and state variables in the vector x(t).
Vector b(t) stores the values of the independent sources. The time derivative of x(t) is replaced by a
numerical integration approximation, where the parameter h is the step size of the numerical integration
Multilevel modeling [Franz, 1990], [Duijsen, 1994] is a technique where different mathematical model
descriptions, such as DAE, MNA and ODE, can be combined. A multilevel simulation is based on the total
mathematical model of the multilevel model. A multilevel model can contain different types of models.
The multilevel modeling technique is advantageous compared to other modeling techniques for two
major reasons.
1. Efficient modeling, because each part of the implementation like the power electronic circuit, the load
or the control is described by its most efficient modeling technique. This allows a straightforward
description without, for example, modeling an inverter in a block diagram or modeling a control
algorithm by lumped circuit elements.
2. The simulation time can be decreased, because each part of the implementation can be solved more
efficiently.
4. Models
For the simulation of Power Electronics basic models are required, which do not exist in standard
simulation programs, such as the early Spice-based programs. Recent Spice-based simulation
programs have a library of sub-circuits for Power Electronic components such as the SCR, GTO,
Mosfet, IGBT and, for example, electrical machines.
The complexity of the model is a very important aspect in modeling. For most simulations a basic
switching behavior is satisfactory. For example, the basic switching behavior of a diode, SCR or GTO,
is in many cases satisfactory to model a three-phase rectifier. A linear inductance modeled at the
input is enough to simulate the commutation between the diodes in a rectifier. The produced
harmonics are basically only depending on the line impedance of the input of the rectifier.
For calculating the efficiency of a SMPS, also the energy that is required to control the Mosfet is
important. Here the non-linear gate capacitance has a large influence on the efficiency of the SMPS.
In this case a model where the gate charge of a Mosfet is modeled is required. Multilevel modeling
simplifies the modeling process for these various components.
6. Importance of animation.
Animation of electric circuit may look like a toy. This is however absolutely wrong. Animation is a
viable tool for teaching, gaining insight, checking the behavior, or searching for failure modes.
The advantages for teaching are clear. Students, for example, can see the current-paths in rectifiers
or understand the freewheeling and discontinuous mode in SMPS.
For complex topologies, such as the Vienna-Rectifier [Kolar, 1994], animation can be very helpful to
understand and verify the principle of the converter. During animation, it becomes clear to the user
how the converter is behaving.
During animation, failure modes are detected. Even those failure modes, the user was not aware of.
During failure analysis without animation it requires a lot of time to check each component. With
animation, each failure is directly displayed, for example a switch is opened or closed at a wrong
interval. Or some voltage levels are too high.
7. Practical implementation.
Animation costs time. A simulation should be as fast as possible. Animation slows down the
simulation. Therefore the user should have the ability to turn the animation on or off.
If a circuit is animated, the simulation in most cases has to be slowed down, in order to follow the
behavior of the system. Therefore the time-consumption of animation is in many cases not a problem.
In order to speed up the animation it is not always necessary to show each simulation step. For
example, if a small time step is required for the simulation but the animation is slow varying,
compared to the time step, not each time step has to be displayed. This can be achieved by not
displaying each time step in the animation. Figure 2 shows a typical dialog box for animation
properties.
To visualize the values of voltage and current, two different levels are required. For example a SMPS
operating at the AC-mains can have current levels of only up to 1 Ampere. Also the control signals
can vary in value from the voltage and current level. Typical control signals can range between 0 and
1, where the on-status of a control signal is clearly signaled by a red color and the off-status is
signaled by a black color.
Figure 2: Animation properties.
To prevent that the schematic starts blinking like a Christmas tree, the user should have the possibility
to turn on or off various animation effects. For example, the constant display of numerical values at
each node can make the schematic very crowded and therefore the user should have the possibility
to turn it off.
8. Example Vienna-Rectifier
In figure 3 the Vienna-Rectifier [Kolar, 1994] is displayed. The current-path, which is colored during
the animation, is shown thick in this figure. One can see clearly that the complexity of the current-
path gives valuable information on the functioning of the converter.
D6 D11 D15
UUS UUT
SM
D2 D3 D7 S2 D8 D13 S3 D17
RA 1m D1 D9 D18
RB 1m RC 1m
LOUT
C3
STERN C2
C1 60u
60u D19 D20
60u
1u CHP2 1u CHP3 1u
HP1 HP2 HP3 1.00
L1 18u R=10m L2 18u R=10m L3 18u R=10m D21
320 RHP2 320RHP3 320 ZP2 ZP3
STERN
L4 15u L5 15u L6 15u
+
UNR UNS UNT
B2 B3
-
GROUND
G1 G2 G3
D4 D5 D6 ABS COMP
+
L1A L1B L2A L2B L3A L3B I1 ABS1 COMP1
V1 1800 I1 + FFL AND
890
- G1 G2 G3 - FFL1 G1
D1 D2 D3 R Q
C1
0 S
COMP
870 COMP2
+
SCOPE3 -
C1 C2 C3 I 1 I2 I 3
SRM461 LOAD1 SCOPE1
ABS COMP
C1 C2 C3 I1 I2 I 3 L1
L1AL1A N
J J N I2 ABS2 COMP3
L1BL1B T TIN T I1 + FFL AND
890
L2AL2A W WRWR - FFL2 G2
R Q
L2BL2B F JL
TLOAD C2
S
L3AL3A COMP
L3BL3B 54 870 COMP4
+
BR BS JRLMAX
LMINNR NS R 4. 7M
-
R MUL
MNAME SRM68PARAMETERS1 N TLOAD ABS COMP
M 13.5 I3 ABS3 COMP5
s rm64 I1 + FFL AND
890
- FFL3 G3
R Q
C3
S
COMP
870 COMP6
+
-
In figure 6 the model for a SRM is shown. The SRM is modeled inside the library block SRM46, which
contains the model for a 6-stator and 4-rotor pole machine. On the left side the electrical connection
to the converter is made. The inductances of the machine are connected to the converter via the
nodes L1A-L1B, L2A-L2B and L3A-L3B. The parameters for the machine are supplied via a .model
database as shown below:
.model srm68_1 user br=0.436 bs=0.349 jr=0 lmax=110m lmin=10m nr=6 ns=8 r=50
.model srm68_2 user br=0.436 bs=0.349 jr=0 lmax=210m lmin=10m nr=6 ns=8 r=20
.model srm64 user br=0.581 bs=0.465 jr=0 lmax=2.84m lmin=0.284m nr=4 NS=6
r=0.8
The name of the .model has to be specified in the block MName. The parameters for the machine are
supplied at the bottom of the model.
On the right side a mechanical load is connected to the SRM. The load has an inertia of 54Kg.m 2 and
the torque Tload from the load equals 13.5*N, where N is the number of revolutions per min. In the
scope at the right side of the Load block the speed of the rotor is displayed.
At the top side of the SRM the control signals and the currents through the inductances are exported.
With a current regulator the current through each inductance is limited between 870 and 890 Ampere,
using two comparators, a Flip-Flop and an AND-gate. The IGBT's are only closed if the position of a
rotor pole is in front of a stator pole and is indicated by the nodes C1, C2 and C3.
During the animation the rotor is rotating and the value of L1 is displayed in a scope. The dependence
of the inductance on the position of the rotor is visualized during the animation.
STUNIHALF1 SCOPE1
GB2 GB1
LA1 GA1 A
LA2 GA2 A
LB1 GB1 A LB 50mH R=100 B=EB
A
LB2 GB2
A H1 H1
INTMOD H1 H1 D7 D8
2 A H1 LA
i1 GB1 GB2
6.28 50m R=100 B=EA
i2
GA1 GA2
D1 D3
+
V2 40
-
GA2 GA1
D2 D4
0
EA EB H1 RA RB
CURRENT STBERBIP1 LOAD1 SCOPE2
wT
T wT
wTw
IA EA EB H1 RA RB
I(LA) IA J J N
IB TE TIN T T
CURRENT
WR WR
I(LB) IA2
JR K P F JLTLOAD
0 50M2 0
0.00001
1M
OBJECT
300 OBJECT1
80
30
H1
At the bottom the parameters for the brushless machine are defined, being the back-emf constant K
and the inertia of the rotor. Other parameters for the machine are fixed inside the block, so the
example runs also under the, in nodes limited, freeware version of Caspoc. At the top the angle of the
rotor is exported, which is required for a simple control of the IGBT's. The node A indicates the angle
of the rotor in radians and is connected to the left side of the block GATECTRL, which fires the
IGBT's as function of the angle A. In scope 3 the currents during start-up are shown.
14.Conclusions
Animation gives valuable information about the simulation of Power Electronics and Electrical Drives.
Displaying current-paths gives insight in the behavior of the circuit and can reveal failure modes. It
reveals more insight in the circuit operation then only displaying simulation results in graphs. If
animation is based on simulation, also complex circuits can be animated. This makes animation a
practical tool for designing power electronics and electrical drives.
For power electronic circuits the values of nodal voltages and branch currents can be visualized
during the simulation and the conducting semiconductors can be identified. The different modes of
operation can be identified and the animation gives an overview of current distribution among the
switches.
The example of the Vienna-Rectifier shows that complex current paths can be visualized to gain a
better understanding of the operation of the rectifier.
For electrical drives, the moving or rotating objects can be visualized. In the case of a SRM, the
dependency of the inductance on the rotor position can be displayed, giving insight in the correctness
of the functioning of the model. The example of the crane with DC machine visualizes the operation
of a total system, where the control of such systems can be displayed. If the machine would not stop
at the desired length of the crane cable, this is clearly visible in the animation.
Animation is not a toy, it can give valuable information to the designer not only on how his design is
operating but can also show the fault conditions arising during the normal operation.
15.References
[1] Ho C-W, Ruehli A.E., Brennan P.A., The modified nodal approach to network analysis, IEEE
Transactions on Circuits and Systems, Vol CAS-22, No 6, pp. 504-509, june 1975.
[2] Schwarz A.F., Computer-aided design of microelectronic circuits and systems, Vol 1, Academic press
1987.
[3] Franz G.A., Multilevel simulation tools for power converters, IEEE APEC CH2853-0/90/0000-0629,
1990.
[4] Duijsen P.J. van, Multilevel modeling and simulation of power electronic converters and drive
systems, Proceedings Power Conversion and Intelligent Motion (PCIM), 1994.
[5] Kolar J.W., and Zach, F.C., A Novel Three-Phase Three-Switch Three-Level PWM Rectifier.
Proceedings of the 28th Power Conversion Conference, Nuremberg, June 28-30, pp. 125-138
(1994).