You are on page 1of 5

1

On the Use of Real Time Simulators for the Test


and Validation of Protection and Control
Systems of Micro Grids and Smart Grids
T. Ilamparithi, Simon Abourdia, Thomas Kirk, OPAL-RT Technologies

 vital to test and validate the control and protection aspects of


Abstract—This paper brings out the necessity of real time micro-grids and smart grids.
simulators for studies on micro-grids and smart grids. Micro- A major challenge in testing and validating these complex
grids and smart grids have many complex, multi-layered and control schemes is that access to real test grids is both limited
sophisticated protection and control systems. Real time simulators
and expensive. It is in this context, a real time simulator gains
are inevitable in testing and validating such protection and
control algorithm as access to real test grids is limited and not tremendous significance.
always feasible. Three applications namely reverse power flow
detection using phasor measurement unit, supervisory control II. REAL TIME SIMULATION
validation of a micro-grid and cyber security assessment in a
Real time simulation is a discrete simulation with fixed step
smart grid are presented in this paper. In each of the application,
a real time simulator provides a safe platform to model the size. In traditional discrete simulation (off-line simulation), the
network of choice and validate the performance of interfaced wall clock time required to solve all equations of a system can
components under test. be lower or higher than the fixed time step. However, in real
time simulation, computation of the system equations as well
Index Terms— Microgrid, Smart grid, Hardware-In-Loop, as communication with other simulation nodes start only at the
Cybersecurity, Phasor measurement unit, Supervisory control beginning of a time step and must end within the same time
Real-time, Simulation. step. Figure 1 shows a pictorial representation of real time
simulation having 50 μs time step.
I. INTRODUCTION

T HE continuing integration of distributed energy resources


(DER) such as photo-voltaic (PV) arrays, wind turbines
and energy storage systems into electric power distribution has
Model
Calc
Output
Model
Calc
Output

Inputs Inputs
driven the need for advanced protection and control
technology, to ensure the efficient and reliable operation of 0μs 50μs 100μs
power grids [1-4]. While these resources have a large potential Fig. 1. Representation of real time simulation having time step of 50 μs
for providing uninterrupted green power in the form of micro-
grids, they also create technological and economic challenges Real time simulation ensures that simulated model and
for the bulk power system. The rapidly varying nature of physical component could interact with each other with proper
power generation and consumption in micro-grids introduces time synchronization. Real time simulation that involves
certain difficult scenarios, such as reverse power flow, connecting hardware devices (e.g. controllers, protection
islanding, and frequency and voltage instabilities that cannot relays, PMUs, and sensing devices such as CTs, PTs) to a
be neglected. Consequently, some special protection schemes simulated model is called hardware-in-the-loop simulation
have been investigated in [5], [6]. Further, micro-grids demand (HIL). A simple diagrammatic representation of HIL is shown
hierarchical control structures that rely on rapidly evolving in Fig. 2.
information and control technology (ICT) [7-9]. Such layered HIL simulation offers a cost-effective and comprehensive
control schemes must be implemented to handle various means of testing micro-grid/smart grid control and protection
scenarios that may occur in a micro-grid. Concurrently schemes by covering functional and robustness testing at both
cybersecurity aspect of the grid must be verified, as the impact the algorithmic and communication/interface levels. Detailed
of cyber threat is real and significant [10-12]. All these make it simulation models of the system under study are created in real
time platform to capture dynamic effects in the time-scales of
T. Ilamparithi is with OPAL-RT Technologies Inc., India. (e-mail: interest (i.e. EMT or transient stability) under a range of
t.ilamparithi@opal-rt.com). operating conditions. The important requirements of a real
Simon Abourida is with OPAL-RT Technologies Inc., Canada (e-mail:
simon.abourida@opal-rt.com). time HIL simulation setup is to ensure high fidelity of the
Thomas Kirk is with OPAL-RT Technologies Inc., Canada (e-mail: system modelled and minimum loop latency between the
thomas.kirk@opal-rt.com). physical device and virtual system in the simulator. Due to
2

these requirements, a HIL simulation of complex networks | V | is the measured line to ground voltage of bus 1 by a one
comprising of multiple components with different dynamic
phase voltage transformer
characteristics is a challenge. Hence, the choice of the real
time simulation tool is important. S is the apparent power, and
HARDWARE IN LOOP P, Q are the active and reactive powers transmitted from bus 1
REAL TIME SIMULATOR to bus 2, respectively.
RUNNING PLANT MODEL The measured impedance is a complex value and has real and
imaginary parts, which can be written as:
§ V2 ·
Communication ¨ ¸ (2)
channel R ¨ 2 2 ¸
uP
¨ P  Q ¸
© ¹
PHYSICAL § V 2
·
CONTROLLER, ¨ ¸ (3)
PMU, IED etc. X ¨ 2 2 ¸
uQ
¨P Q ¸
© ¹
Using (2) and (3) the squared magnitude of impedance can be
Fig. 2. Concept of Hardware-In-Loop real time simulation
written as
4
In this paper, three applications that highlight the use of V
R X
2 2 (4)
real time simulators for studies in micro-grids and smart grids P2  Q2
are presented. For each of the application the challenges For fixed apparent power, (4) represents a circle in the
involved in accomplishing a hard real time simulation and complex plane centered at (0,0) and with fixed radius as shown
solutions used are briefed. in Fig. 4.

III. REVERSE POWER FLOW DETECTION


The first application presented is the validation of a reverse
power flow detection algorithm based on phasor measurements
in a micro-grid with distributed renewable generation sources.
Reverse power flow in a grid connected with renewable energy
sources is a topic of concern as reported in [13], [14]. A PMU
is connected in the loop and, in real-time, apparent impedance
calculations are made using synchro phasors to determine
power flow direction, with alarms raised when reverse power
flow is detected.
A. Principle of Operation
Consider a simple network with two sources as shown
below. Apparent impedance is calculated by:
Fig. 4. Measured impedance trajectories for active and reactive power
variation while the apparent power is fixed

The position of the measured apparent impedance in the R-X


plane is indicative of the value and direction of active and
reactive power. Thus, by monitoring the quadrant of the
apparent impedance, any power reversal can be identified
easily.
Fig. 3. A sample network with two sources
2
| V | §¨ P  jQ ·¸ 2 V uS (1)
|Z| uV
| I | ¨© P 2  Q 2 ¸¹ 2
S

where
| Z | is the apparent impedance obtained by a measuring unit
installed at bus 1 in Fig. 3.
| I | is the line current flow from bus 1 to bus 2, measured by a
phase current transformer
3

C. Solution
The contradicting requirement of accomplishing good
accuracy (low time step) and accommodating large network
(large time step) is met by opting for a sophisticated real
time solver called ARTEMiS from OPAL-RT Technologies
[15]. This advanced solver uses a higher order
approximation compared to the traditional solver used in
MATLAB. With the higher order approximation, the
accuracy of the solution is improved significantly even with
larger time step. Further, the designed solver also exploits
some of the basic matrix properties such as sparse matrix to
ensure smaller execution time.
Fig. 5. Apparent impedance in R-X plane Another key benefit of the selected solver is its ability to
decouple a large network in to two smaller subsystems
B. Challenges without any time delay with its State-Space Nodal method
[16-18]. Such decoupling permits simultaneous execution of
In order to validate the reverse power flow detection
large network model in multiple computing units. Hence,
algorithm, a micro-grid comprising of a few distributed energy
large network can be split into many smaller networks thus
resources (DER) and storage element has to be simulated in
real time. A few phasor measurement units (PMU) will be bringing down the execution time.
interfaced with the test network to capture the currents and An example of such application is shown on Figure 7,
voltage phasors. A schematic of the test system is given in Fig. where IEEE 34-bus distribution system, connected to 4
6. generic microgrids (PV system, battery storage system, wind
generation system and loads); the whole power grid is
modelled with Simulink SimPowerSystems with
Distribution feeder
(ARTEMiS-SSN) library and solver, and it is simulated on
an OP5600 Real-Time Simulator, allowing it to be
connected to a physical real PMU as shown.

PMU 1

Solar PV power
Battery

Wind generation

Load
Microgrid

Fig. 6. Virtual micro-grid with a physical PMU connected

The micro-grid simulated comprises of multiple DER: a solar


PV source with associated converters, a wind energy system
with associated converters and a battery with converters. In Fig. 7. RT simulator of micro-grid connected to a physical PMU
addition, the simulated model has a part of the distribution grid
and consumers. This network comes with a two contradicting
requirements. The converters associated with DER systems IV. SUPERVISORY CONTROL OF MICROGRID
have a high switching frequency requirement. Hence, to The second application presented focuses on a test bench
accomplish high accuracy, a low time step is needed. At the with the ability to assess the performance of supervisory
same time, to execute the complete large network with controllers for micro-grids based on a set of metrics such as
multiple converters, distribution grids and loads, a large time voltage stability, peak-shaving kWh etc. The test bench could
step is needed to ensure hard real time execution. Only then, also be used to test prime-mover controls, distribution
PMU connected to the virtual micro-grid will be measuring controls, DER controls etc.
voltages and currents of the network at the right time.
A. Challenges
In this case, too, the challenges are similar to the previous
4

application in terms of fast switching power converters Real-time simulation can be employed as an efficient
embedded in a distribution network. In addition to those testing tool by simulating attacks and system failures. Real
challenges, this network considered for testing supervisory time simulators provide a platform for simulation of virtual
controller also comprises of detailed models of components grids where the testing of multiple scenarios can take place
such as diesel generators, induction motors, transformers and simultaneously and in real-time. A typical real time
dynamic loads that include effects such as saturation and simulation setup used in cyber security assessment studies is
hysteresis. Further, there are several breakers and associated shown in Fig. 9.
relays, whose status change depending upon the operating
conditions. Finally, as per IEEE 1547 standard
communication protocols such as Modbus over TCP need to
be used for appropriate information exchange.
B. Solution
To accommodate high frequency converters, and short-line
based distribution network, advanced solver ARTEMiS is
used as in the previous case. In addition, to ensure non-
linear effect such as saturation is modelled more accurately
and executed in real time, the model is slightly modified to
remove algebraic loops but still does not compromise on the
accuracy. Other non-linear components such as varistors are
executed in real time using a special iterative algorithm
embedded in ARTEMiS solver.
By making use of the special solver, a few supervisory
controllers for a virtual micro-grid were tested by MIT and
were reported [19]. Fig. 9. Typical real time simulation setup for cyber security assessment

V. CYBER SECURITY ASSESSMENT In cybersecurity applications, it is combined with a


The final application presented in this paper is a set-up communication network and simulation of various protocols
for assessing cyber security threats to networked control in order to effectively re-create communication failures or
systems and for validating counter measures to ensure cyberattacks and study their impact on the power grid.
system security. As the grid becomes smarter, there are Several types of cyberattacks threatening power grid can be
several layers of communication added between actual recreated using real time simulator. A few of them are
equipment and the operator. Fig. 8. displays a hierarchical Denial of Service, Man-in-Middle, and GNSS spoofing.
representation of multi-layered smart grid. Consequently, A. Denial of Service
cyber threats are real and significant.
Denial of Service can render a service unavailable either
through a direct or indirect attack. It also refers to physical
attacks on communication infrastructure, such as the cutting
of wires or wireless jamming.
B. Man-in-the-Middle
A Man-in-the-Middle situation occurs when an external
attacker is capable of intercepting, modifying, suppressing or
replaying network packets undetected by tricking two
communication nodes to believe they are still communicating
normally.
C. GNSS Spoofing
The act of causing Global Navigation Satellite System
(GNSS) receivers to lock onto simulated or replayed satellite
signals instead of real ones effectively causing the receiver to
locate itself at the wrong position and/or time. This class of
attack is a major threat to PMUs and synchro phasor systems,
which are heavily reliant on time synchronization.
The major challenge with respect to performing smart grid
Fig. 8. Modern multi-layered smart grid cyber security assessment studies is to ensure IEEE standard
communication protocols used in a physical grid work with the
real time simulation setup. In order to meet this requirement,
5

different types of communication protocols ought to be [10] Y. Yang, T. Littler, S. Sezer, K. McLaughlin and H. F. Wang, “Impact
of cyber security issues on smart grid,” in Proc. 2011 IEEE Innovative
supported by the real time simulator. This concern is addressed Smart Grid Tech. Europe Conf., pp. 1-7.
by developing software code for each type of communication [11] E. Y. Dari, and M. Essaaidi, “An overview of smart grid cyber security
protocol that work in dedicated computational unit of a real state of the art study,” in Proc. 2015 IEEE International Renewable and
time simulator. By adopting such an approach, large number of Sustainable Energy Conf., pp. 1-7.
[12] P. Kaster, and P. K. Sen, “Power grid cyber security: challenges and
physical components such as PMUs can be communicated impacts,” in Proc. 2014 IEEE North American Power Symposium, pp.
using appropriate protocol without compromising on real time 1-6.
simulation effect. [13] H. Hatta, M. Asari, and H. Kobayashi, “Study of energy management
for decreasing reverse power flow from photovoltaic power systems,” in
By making use of such communication protocols, research Proc. 2009 IEEE Conf. on Sustainable Alternative Energy, pp. 1-5.
related to cyber security issues have been carried out by many [14] J. C. Boemer, B. G. Rawn, M. Gibescu, M. A. M. M. van der Meijden,
research groups around the world. and W. L. Kling, “Response of wind power park modules in distribution
systems to transmission network faults during reverse power flows,” IET
Trans. Renewable Power Generation, vol. 9, pp. 1033-1042, Jun. 2015.
VI. CONCLUSION [15] ARTEMiSTM: For high precision real time simulation of
electromechanical systems [Online]: http://www.opal-
The need and capabilities of using real time simulators in
rt.com/sites/default/files/artemis_en.pdf
providing virtual micro-grid and smart grid is presented in this [16] C. Dufour, J. Mahseredjian , J. Bélanger: "A Combined State-Space
paper. The advantage of a real time simulator is that it Nodal Method for the Simulation of Power System Transients", IEEE
provides a platform to test and validate control and protection Transactions on Power Delivery, vol. 26, no. 2, pp. 928-935, April 2011
[17] C. Dufour, G. Sapienza: "Testing 750 node distribution grids and
systems by interfacing with physical components as well as by devices using optimized parallel delay-free real-time solvers and modern
exchanging information through appropriate communication grid protocols", Int. Symposium on Smart Electric Distribution Systems
protocols. To highlight the possibilities of usage, three and Technologies (EDST), Vienna, Austria, Sept. 8-11, 2015
[18] C. Dufour, S. Alma, S. Cuni, G. Scrosati, G. Valvo, G. Sapienza:
different applications namely reverse power flow detection "Renewable integration and protection studies on a 750-node
based on phasor measurements in a microgrid, supervisory distribution grid using a real-time simulator and a delay-free parallel
control and cybersecurity assessment are presented in this solver", CIRED, Lyon, France, June 15-18, 2015
[19] R. O. Salcedo, J. K. Nowoein, C. L. Smith and R. P. Rekha,
work. To ensure proper testing and validation, the real time “Development of a real-time hardware in the loop power systems
simulation solution must be able to replicate modern micro- simulation platform to evaluate commercial microgrid controllers,”
grid and smart grid with high fidelity. Some common Lincoln Laboratory, MIT, Massachusetts, Feb. 2016.
challenges encountered in performing real time simulation of
complex system such as micro-grid and smart grids are
VIII. BIOGRAPHIES
mentioned in this work. Finally, some of the solutions used to
overcome these challenges are also briefed.
T. Ilamparithi completed his B.E. from Anna University, M. Tech. from IIT-
Delhi and Ph.D. from University of Victoria, Canada. He has been with
VII. REFERENCES OPAL-RT Technologies since April 2013. He has worked on a few projects
[1] Y. W. Chen, and J. M. Chang, “EMaaS: Cloud-based energy including real time simulation of power systems for HVDC transmission and
management service for distributed renewable energy integration,” IEEE fault studies. He is a member of IEEE since 2010.
Trans. Smart Grid, vol. 6, pp. 2816-2824, Nov. 2015.
[2] M. Sandoval, and S. Grijalva, “Future grid business model innovation: Simon Abourida has a Master’s degree in electrical engineering from
distributed energy resources services platform for renewable energy Ecole Polytechnique de Montreal, and over 18 years of experience in
integration,” in Proc. 2015 IEEE Asia Pacific Conf. on Computer Aided electrical engineering, project management and business development. At
System Engineering, pp. 72-77. OPAL-RT, he led several projects in real-time and hardware-in-the loop
[3] H. Chen, “Key technologies for renewable energy integration – a full simulation in the fields of power systems, renewable energy systems, hybrid
scale demonstration at Hainan Island,” in Proc. 2013 IEEE Asia-Pacific vehicles, motor drives and power electronics.
Power and Energy Engineering Conf., pp. 1-6.
[4] K. Rahbar, C. C. Chai, and R. Zhang, “Real-time energy management Thomas Kirk joined OPAL-RT Technologies in 2014 following a M.A.Sc.
for cooperative microgrids with renewable energy integration,” in Proc. from the University of Waterloo, where he specialized in experimental fluid
2014 IEEE Intl. Conf. on Smart Grid Communications, pp. 25-30. dynamics. His work in simulation started first at Bechtel’s Aluminum Center
[5] C. Jian, H. Zheng-you, and J. Wei, “The overview of protection schemes of Excellence in Montreal. He has his B.Eng. from McGill University, and is
for distribution systems containing micro-grid,” in Proc. 2011 IEEE an IEEE and PES member.
Asia-Pacific Power and Energy Engineering Conf., pp. 1-4.
[6] Z. Li, Y. Li, G. Fu, and B. Li, “Directional protection based on fault
component energy function in micro-grid,” in Proc. 2012 IEEE
Innovative Smart Grid Tech. Conf., pp. 1-5.
[7] Y. Shi-Tian, Z. Lei, C. Zhi-Xin, W. Jia, and W. Bingbing, “A micro-
grid control system based on EtherCAT,” in Proc. 2011 IEEE
Information Technology, Computer Engineering and Management
Sciences Conf., pp. 385-388.
[8] W. Kohn, Z. B. Zabinsky, and A. Nerode, “A micro-grid distributed
intelligent control and management system,” IEEE Trans. Smart Grid,
vol. 6. Pp. 2964-2974, Nov. 2015.
[9] Z. Wang, R. Yang and L. Wang, “Intelligent multi-agent control for
integrated building and micro-grid systems,” in Proc. 2011 IEEE
Innovative Smart Grid Tech. Conf., pp. 1-7.

You might also like