Professional Documents
Culture Documents
I. NOMENCLATURE
COTS
DG
DSP
EMT
FACTS
FPGA
HIL
HVDC
IGBT
I/O
MBD
PWM
RES
RCP
SIL
TNA
Commercial off-the-shelf
Distributed Generation
Digital Signal Processor
Electromagnetic Transients
Flexible AC Transmission System
Field-programmable Gate Array
Hardware-in-the-Loop
High Voltage Direct Current
Insulated-gate Bipolar Transistor
Inputs and Outputs
Model-based Design
Pulse Width Modulation
Renewable Energy Sources
Rapid Control Prototyping
Software-in-the-Loop
Transient Network Analyzer
II. INTRODUCTION
38
Computation
f(t)
Sim. Clock
f(tn)
f(tn+1)
tn-1
f(tn+2)
tn
Time
tn+1
Time
f(tn)
Computation
f(t)
f(tn+1)
Time
Time
tn-1
tn
tn+1
Time
Jitter
Sim. Clock
tn-1
0.8
f(tn+1)
tn
Time
tn+1
1
0.8
Amplitude
Variation
0.6
0.6
0.4
0.4
0.2
0.2
Time
voltage (V)
Computation
f(t)
Time
f(tn)
Jitter
- 0.2
- 0.2
Source Voltage
- 0.4
- 0.4
Thyristor Curent
(Real Circuit)
- 0.6
- 0.6
Thyristor Curent
(uncompensated
Fixed-Step Simulation)
- 0.8
current (mA)
Sim. Clock
- 0.8
-1
-1
0
6
8
10
time (us)
(b) Thyristor Converter Voltages
12
39
Slow and Fast Dynamics &
Transients
Slow
Dynamics
Very
Large
Dyn.
Sim.
Computing Power
Ultra Fast
Transients
Multi-area
Power System
Multi
UAVs &
Vehicles
Mechanical
Systems
Vehicles
Robotics
Aircrafts
Fuel Cells
Batteries
1 kHz
1000 us
Large
Power System
Medium-area
Power System
Small equivalent
Power Systems
Controller Testing
FACTS
Active Filters
Multi-Converters
High-Power Drives
(1-10 MW)
Wind Farms
20 KHz
50 us
40 kHz
25 us
Interconnected
Mid-Power
Drives (100 kW)
10 kHz PWM
Very Low Power
Drives (<10 kW)
Low Power
Drives (100 kW) > 10 kHz PWM
IGBT Detailed
10 kHz PWM
models
Hybrid Vehicles
100 kHz
10 us
250 kHz
5 us
1 MHz
1us
Simulation Speed
40
selecting a suitable fixed step-size for models with increasing
complexity is a time-domain comparison of waveforms for
repeated runs with different step-sizes.
D. Rapid Control Prototyping
Real-time simulators are typically used in three different
application categories, as illustrated in Figure 4. In RCP
applications (Figure 4 (a)), a plant controller is implemented
using a real-time simulator and is connected to a physical
plant. RCP offers many advantages over implementing an
actual controller prototype. A controller prototype developed
using a real-time simulator is more flexible, faster to
implement and easier to debug. The controller prototype can
be tuned on the fly or completely modified with just a few
mouse clicks. In addition, since every internal controller state
is available, an RCP can be debugged faster without having to
take its cover off.
E. Hardware-in-the-Loop
For HIL applications, a physical controller is connected to a
virtual plant executed on a real-time simulator, instead of to a
physical plant. Figure 4 (b) illustrates a small variation to HIL;
an implementation of a controller using RCP is connected to a
virtual plant via HIL. In addition to the advantages of RCP,
HIL allows for early testing of controllers when physical test
benches are not available. Virtual plants also usually cost less
and are more constant. This allows for more repeatable results
and provides for testing conditions that are unavailable on real
hardware, such as extreme events testing.
41
Cost
Real-Time Simulation
Analog Similators
Requirements
Test
Offline Simulation
Architecture
Verification
Digital Supercomputer
Simulators
Design
Integration
Digital COTS
Simulators
FPGA
Simulation
On Chip
1960
1970
1980
1990
2000
Prototype
Concept
Assessment
Demonstration
Manufacture
In-service
2010 Time
42
complexity of models through the use of a hierarchical
approach. Modeling techniques have also been employed in
order to embed independent coded models inside the power
systems simulation tool PSCAD/EMTDC [23].
Most commercial simulation tools provide an Automatic
Code Generator that facilitates the transition from controller
model to controller implementation. The added value of realtime simulation in MBD emerges from the use of an
Automatic Code Generator [24], [25]. By using an Automatic
Code Generator with a real-time simulator, an RCP can be
implemented from a model with minimal effort. The prototype
can then be used to accelerate integration and verification
testing, something that cannot be done using offline
simulation. The same holds true for HIL testing. By using an
HIL test bench, test engineers become part of the design
workflow earlier in the process, sometimes before an actual
plant becomes available. For example, by using the HIL
methodology, automotive test engineers can start early testing
of a car controller before a physical test bench is available.
Combining RCP and HIL, while using the MBD approach, has
many advantages:
meter.
Online model configuration and full data availability make
previously unthinkable applications possible. For example,
verifying if a controller can compensate for changes in plant
dynamics caused by component aging.
VI. WHERE DOES IT FIT BEST?
A. Power Generation Applications
Testing of complex HVDC networks, SVCs, STATCOMs
and FACTS device control systems, under steady state and
transient operating conditions, is a mandatory practice during
both the controller development phase and before final system
commissioning [26], [27], [28]. Testing is performed in order
to reduce risks associated with conducting tests on physical
networks. HIL testing must be performed successfully with a
prototype controller before a real controller is installed in the
field. Thousands of systematic and random tests are typically
required to test performance under normal and abnormal
operating conditions. This testing can also detect instabilities
caused by unwanted interactions between control functions
and the power system, such as other FACTS devices that may
interact with the system under test.
Protection & insulation coordination techniques for large
power systems use statistical studies to deal with inherent
random events, such as the electrical angle at which a breaker
closes, or the point-on-wave at which a fault appears [29]. By
testing multiple fault occurrences, measured quantities can be
identified, recorded and stored in databases for later retrieval,
analysis and study. While traditional off-line simulation
software (e.g. ATP, EMTP) can be used to conduct statistical
43
Battery circuit
PWM inverter
Permanent
magnet motor
5200uF
2600uF
240 380 V
240- .
400 V
FPU
FPU
Digital IN
FPU
80kW
i550m vfuel_c
H
ell
DC-DC converter
duty cycle
Digital OUT
mot
Vuv
or
w
Motor controller
imot
or
44
9 -level GTO
bridge inverter
Phase A transformer
Diode rectifiers
(6 windings)
920 V
Phase A of Load
54 mF
+30 degree
920 V
Network
3000 V
3000V LL
R-L load
54 mF
+15 degree
SM
920 V
54 mF
0 degree
920 V
54 mF
-15 degree
Phase B transformers
-rectifier
Phase C transformersrectifiers
internal
neutral point
9-level
bridg
GTO
phase B inverte
e
r
9-level
bridg
GTO
phase C inverte
e
r
+
-
Motor
(c) Defence
45
12. This methodology implies that the real motor drive is
available at the RCP. Furthermore, this set-up requires a
second drive (such as a DC motor drive) to be connected to
the motor drive under test to emulate the mechanical load.
While this is a complex setup, it has proven very effective in
detecting problems earlier in the design process. In cases
where a physical drive is not available, or where only costly
prototypes are available, an HIL-simulated motor drive can be
used during the RCP development stage. In such cases, the
dynamometer, real IGBT converter and motor are replaced by
a real-time virtual motor drive model. This approach has a
number of advantages. For example, the simulated motor drive
can be tested with borderline conditions that would otherwise
damage a real motor. In addition, setup of the controlled-speed
test bench is simplified since the virtual shaft speed is set by a
single model signal, as opposed to using a real bench, where a
second drive would need to be used to control the shaft speed
1
Brake
signal
2
Accelerator Pedal
value
5
Switch
Regulator
NO
T
NO
T
AN
D
NO
T
3
Speed
Target
4
Actual Vehicle
Speed
Enabl
e
Speed
Target
Fuel
Quantity
Actual Vehicle
Speed
Speed
Regulator
1
Fuel
Quantity
H. Emerging Applications
Real-time simulation is in use in two additional emerging
applications. Since a real-time simulator can provide outputs
and read inputs, it is an ideal tool for equipment
commissioning and testing, as depicted in Figure 15 (a). Not
only can it mimic a real plant, it can emulate other devices,
play a recorded sequence of events and record a device under
test response. Modern simulators can also provide simulated
network connections such as CAN, GPIB and Ethernet. The
application of real-time simulators to equipment
commissioning and tests is common in the manufacturing of
electronic control modules (ECMs). For this application, the
use of real-time simulators saves test bench costs and reduces
testing time.
Real-time simulation can also be used for operator and
technician training, as illustrated in Figure 15 (b). While this
application category is in an early growth stage, it offers great
potential. For this category of application, both controller and
plant are modeled in the same simulator using an SIL-like
approach. The difference is that user interfaces are added in
order to allow the operator to interact with the simulation in a
user-friendly way. Interfaces such as control panels and
joysticks manage user inputs, but also provide feedback to the
user about the simulation state. The advantage of using a realtime simulator for training is that the user can get a feeling for
the controller and plant that correctly represents the real
system, without the delays and limitations commonly found in
training environments based on pre-recorded scenarios.
46
20
20
+
-
Motor
Automated Test
Sequencer
10
-10
-20
0.003
0.006
0.009
0.012
10
-10
-20
0.003
CAN
GPIB
SERIAL
0.009
0.012
(a) HIL Simulation (left) and Physical System (right) at 2.25 kHz PWM
20
Real-Time Simulator
20
10
-10
-20
0.003
0.006
0.009
0.012
10
-10
-20
0.003
0.009
0.012
(b) HIL Simulation (left) and Physical System (right) at 4.5 kHz PWM
User Interfaces
NETWORK
NETWORK
20
Motor
20
+
-
0.006
Time [sec]
Time [sec]
+-
10
-10
-20
0.003
0.006
0.009
0.012
Real-Time Simulator
3-phase
diode
source
rectifier
reactor
-10
-20
0.003
0.006
0.009
0.012
PWM
inverter
permanent
magnet motor Tload
N
S
x6
x6
(F pwm =9 kHz)
A. A Word on Validation
While the complexity of design projects has steadily
increased, engineers face growing pressure to reduce
development costs and time-to-market of new products. As a
result, testing and validation of complex systems has become
an important part of the design process. In the case of AC
motor drives, engineers use the HIL methodology to connect a
part of the system or its prototype to a real-time digital model
of the remaining part of the system.
The most critical criterion in conducting a real-time digital
simulation is how to obtain acceptable model accuracy with an
achievable simulation time-step. This is an especially
challenging task for simulation of fast-switching power
electronics and motor drives. These non-linear systems need
very small time-steps to achieve an acceptable degree of
accuracy.
A basic question then emerges: How can one trust the
validity of simulator results? To build trust in a simulation
tool, a large number of validation tests must be performed
using many different applications, configurations, time-steps
and I/O cards. In the example of the AC motor drive, a
validation test is performed against a physical test setup, as
illustrated by Figure 16 (d) and (e).
In this setup, PWM signals from the controller are captured
using an FPGA-based I/O card. By capturing PWM signals
with an FPGA-based card, the times of rising and falling
(c) HIL Simulation (left) and Physical System (right) at 9 kHz PWM
10
Time [sec]
Time [sec]
Operator
0.006
Time [sec]
Time [sec]
CAN
GPIB
SERIAL
NETWORK
Plant
IGBT
pulses
Currents
Quadrature
encoder signals
50
40
30
20
10
0
1.2
1.4
1.6
1.8
2.2
2.4
2.6
2.8
2.8
Cumulative probability
Number of samples
47
1
0.9
0.8
0.7
0.6
0.5
0.4
1.2
1.4
1.6
1.8
2.2
2.4
2.6
48
different fault durations and point-on-wave position of a
particular wind turbine. Furthermore, conditions that would be
costly and dangerous to create on a physical plant prototype or
in a real power system can be reproduced using a real-time
simulator capable of interfacing with fast-switching power
electronic control & protection systems. Automated repetitive
testing using a large number of samples can then help build
statistical distributions, such as in a Monte-Carlo study. This
provides valuable information that would be unattainable
using offline tools. From this data, worst-case scenarios are
identified and can be mitigated in advance.
VIII. CONCLUSION
Modern power systems continue to evolve requiring
constant evaluation of new constraints. Major studies will
require the use of very fast, flexible and scalable real-time
simulators.
This paper has introduced a specific class of digital
simulator known as a real-time simulator. By answering the
questions what is real-time simulation, why is it needed
and where does it fit best, the reader is better prepared to
understand how real-time simulation can contribute to present
and future research and study. Finally, by discussing the topics
of results validation, the mixing of offline & real-time
simulation and test coverage in complex systems, the role that
real-time simulation can play in fast-evolving areas of power
system development can be better understood.
IX. ACKNOWLEDGMENT
The authors gratefully acknowledge the contributions of
Opal-RT Technologies customers and distributors who agreed
to share their experience and applications of real-time
simulation.
X. REFERENCES
[1] The American Heritage Dictionary of the English Language.
[2]
[3]
[4]
[5]
[6]
[7]
[9]
[10]
[11]
[12]
[13]
[14]
[15]
[16]
[17] R.
[18]
[19]
[20]
[21]
[22]
[23]
M.
Ramanathan.
Pogo
Linux.
[Online].
http://www.pogolinux.com/learn/files/quad-core-06.pdf
J. Blanger, V. Lapointe, C. Dufour, and L. Schoen,
"eMEGAsim: An Open High-Performance Distributed RealTime Power Grid Simulator. Architecture and Specification",
Presented at the International Conference on Power Systems
(ICPS07), Bangalore, India, December 12-14, 2007.
M. Matar and R. Iravani, "FPGA Implementation of the Power
Electronic Converter Model for Real-Time Simulation of
Electromagnetic Transients", IEEE Transactions on Power
Delivery, April 2010, vol. 25, issue 2, pp. 852-860.
Wikipedia Fundation. (2009, Sep.) Wikipedia. [Online].
http://en.wikipedia.org/wiki/Model_based_design
D. Auger, "Programmable hardware systems using model-based
design", in 2008 IET and Electronics Weekly Conference on
Programmable Hardware Systems, London, 2008, pp. 1-12.
G. Sybille and H. Le-Huy, "Digital simulation of power systems
and power electronics using the MATLAB/Simulink Power
System Blockset", in IEEE Power Engineering Society Winter
Meeting, 2000., Singapore, 2000, vol. 4, pp. 2973-2981.
S.G.A. Perez, M.S. Sachdev, T.S. Sidhu, Modeling relays for
use in power system protection studies, in the 2005 Canadian
Conference on Electrical and Computer Engineering,
Saskatoon, Saskatchewan, Canada, 1-4 May 2005, pp. 566-569.
49
[24] H. Hanselmann, U. Kiffmeier, L. Koster, M. Meyer, and A.
[25]
[26]
[27]
[28]
[29]
[30]
[31]
[32]
[33]
[34]
[35]
[36]
[37]
[38]
[39]
[40]
[41]
[42]
[43]
[44]
XI. BIOGRAPHIES
Jean Blanger (M88) is the President, CEO and founder of Opal-RT
Technologies, Inc. He is an expert in Real-Time Simulation of power systems,
with more than 25 years of experience in the field, including many years as
part of the Simulation division of Hydro-Quebec where he helped developed
the worlds first 735 kV power transmission systems. He received his M.Sc.
from Laval University, Quebec. Since 2001, Mr. Blanger is a fellow of the
Canadian Academy of Engineering.
Philippe Venne (S'99) received the B.Eng. in computer engineering from
Universit du Qubec Hull, Canada in 2002 and the M.Sc. degree from
Universit du Qubec Rimouski, Canada in 2006. While enrolled as a Ph.D.
student with the Aalborg University in Denmark, he joined Opal-RT
Technologies in 2009 as a Power Systems Simulation Specialist with the EMS
team. His professional interests include wind turbine simulation and control,
as well as smart grids.
Jean-Nicolas Paquin (M08) is a Power Systems Simulation Specialist at
Opal-RT Technologies since 2007, and leader of the Modeling and Simulation
R&D team (EMS). He received his M.Eng. degree in 2006 from cole de
Technologie Suprieure (TS) in Montreal, Canada. His professional interests
include the simulation and study of HVDC control and protection systems as
well as inverter-based DG. He is involved in real-time simulation expertise
and consulting services.