Faster-Than-Real-Time_Hardware_Emulation_of_Transients_and_Dynamics_of_a_Grid_of_Microgrids
Faster-Than-Real-Time_Hardware_Emulation_of_Transients_and_Dynamics_of_a_Grid_of_Microgrids
This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/
36 VOLUME 10, 2023
Cao et al.: Faster-Than-Real-Time Hardware Emulation of Transients and Dynamics of a Grid of Microgrids
impact of multiple MGs on the AC grid with which they are Recently, the FPGA-based platform has caught a lot of
integrated. attention due to its strong computation capability. The FPGA
While there is still further research needed related to is capable of performing high-speed real-time simulations
real-time simulation of the MGs, significant progress has with time-steps in the sub-microsecond range [32], [33],
been made in the literature which can be categorized into [29], however, a single FPGA board is limited by its finite
four aspects: 1) the design and modeling of MG compo- amount of logical resources to perform parallel computations
nents to achieve real-time simulation [13], [14], [15], [16], in solving a large-scale system. As presented in [34], a large
[17], [18], [19], [20]; 2) the utilization of existing com- system is deployed on a single FPGA board by utilizing
mercial real-time simulators [21], [22], [23], [24]; 3) the parallel computation method, and the real-time simulation
development of real-time virtual test bed for MGs [25], can be achieved. However, the steady-state estimation is taken
[26], [27]; 4) novel computational approaches for distribution into consideration in [34], which only provides a single state
grids [29], [30]. Real-time simulation prefers the models power estimation. The emulation of modern power grids
with lower computational burden, and therefore, the rela- requires each circuit component to be modeled in detail to
tively simpler models or equivalent dynamic models have properly reflect the dynamic processed and performance of
been developed. Machine learning (ML) based models have the system. Nevertheless, low latency and hardware resource
also been investigated to selectively model and simulate occupation are also critical for industrial practice. In this
MG components [15], [16], which significantly reduced the work, comprehensive modeling of microgrids for faster-than-
hardware consumption; however, the ML-based models may real-time (FTRT) emulation on multiple FPGA boards is
ignore some dynamics of the MG components to obtain a proposed, which can not only provide real-time HIL simu-
higher simulation speed. Thus, these modeling approaches lation services for testing local MG control and protection
still require further research to meet the requirements of functions, but also enable the energy control center with
modern power systems for dynamic security assessment. effective strategies to improve the stability and security of
Commercial real-time simulators are usually executed on the larger grid. It is quite challenging, even for real-time HIL
high-performance processors or supercomputers to realize simulation, to model and emulate a microgrid cluster.
the high-speed simulation for microgrids [35], which are able Compared with the available commercial real-time simu-
to conduct the simulation of MG components in real-time. lation tools, the FPGA-based FTRT emulation has following
Although their accuracy and efficiency can be guaranteed due advantages: firstly, both the FPGAs and RT tools are able to
to the high processing frequency, the cost of the computing realize the HIL emulation, however, the FPGAs can achieve
equipment is the main factor that limits their widespread the FTRT emulation with the help of a creative solution
application. Meanwhile, the hardware-in-the-loop (HIL) sim- algorithm, and efficient parallel implementation, which is
ulation is also utilized in modern power systems and has much faster than the RT tools. Secondly, the capability and
also been applied to investigating microgrids [26], [36]. scalability of the FPGA-based FTRT platform are better than
The hardware resources of the existing simulators restricts currently available commercial RT simulators. Take the case
the scale of MG or MG clusters. Only a relatively small study in [32] (which was done with RTDS Technologies Inc.,
scale microgrid is tested and neither power dispatch nor Winnipeg, Canada) for example, the 141-bus system with
interactions among grid components are investigated in the 38 generators is simulated using RTDS and 4 PB5 racks
above papers. Virtual testbeds for cyber and physical data were needed [32]. To reduce the hardware resource cost, only
acquisition have caught a lot of attention in MG simulation, 5 buses and 2 generators are simulated on RTDS, while the
which can also coordinate with other unconventional mod- rest of the system parts are simulated on FPGA boards. The
eling methods to realize real-time simulation [27]. Due to cost and the hardware resource occupation of an FPGA-based
their flexibility and scalability, virtual testbeds are conve- platform are much lower than the RT simulators if the sys-
nient to reconfigure and adapt to various systems without tem scale becomes larger. Due to its accelerated mode of
depending on specialized hardware; however, they have lim- execution, an FTRT emulator can conduct traditional control
ited real-time simulation capabilities, especially in applica- center functions such as dynamic state estimation, power
tions that require deterministic, low-latency feedback loops flow, and contingency analysis much faster to predict the
for real hardware [27]. The lack of efficient physical inter- system condition in response to adverse events. It can then run
faces is also another one of their drawbacks. Furthermore, multiple scenarios in parallel to devise and recommend viable
some novel approaches were also proposed for real-time solutions to dynamically restore the voltages and frequencies
simulation of MGs. Commonly, EMT simulation method to nominal values.
is adopted for detailed representation of MG components For a realistic power system, the role of the FTRT emula-
described by non-linear differential algebraic equations. Par- tion might be more prominent, as it is able to collect real-time
allel solution approaches were therefore put forward to data from the field and provide an optimal solution without
gain a high-speed execution. These methods usually require cutting off the fault area. FTRT emulation improves the grid
sufficient hardware resources for parallel processing, and stability by predicting the grid performance, which is beyond
multiple FPGA boards are utilized to realize real-time the capability of real-time (RT) simulation tools [37]. Further-
simulation [30], [31]. more, the FPGAs require lower cost and power consumption
A. AC GRID MODELING
1) SYNCHRONOUS GENERATOR AND CONTROL
SYSTEM
Transient stability simulation is basically solving a series
of nonlinear differential algebraic equations (DAEs), which
can represent the detailed dynamics of synchronous genera-
tors. Meanwhile, the network equations containing transmis-
sion lines and loads are given in (28), which calculate the
non-generator bus voltages and generator output currents of
the AC system.
FIGURE 7. Excitation system of the synchronous generator.
Ẋ(t) = F(X, U, t), (27)
G(X, U, t) = 0, (28) electrical equations. Therefore, the excitation system con-
tributes 3 additional state variables in vector X and the 9th -
where U refers to the vector of inputs such as field voltages order differential equations are utilized for representing the
(Vfd ) and mechanical torque (Tm ), X represents the vector synchronous generators of the proposed AC system, which
of state variables of the synchronous machine. In this work, are solved by the explicit 4th -order Adams-Bashforth (AB4)
a detailed synchronous machine model is utilized, which given as:
contains two mechanical equations and four rotor electrical
h
equations with 2 windings on the d-axis and 2 damping x(t + h) = x(t) + · [55F(t) − 59F(t − h)
windings on the q-axis, and therefore, the vector X can be 24
+ 37F(t − 2h) − 9F(t − 3h)], (30)
expressed as
X(t) = [δ(t), 1ω(t), ψfd (t), ψd1 (t), ψq1 (t), ψq2 (t), . . .]T , where h refers to the time-step of AC grid, which is defined
as 1 ms.
(29)
where δ refers to the rotor angle, and 1ω represents the 2) AC NETWORK EQUATIONS
derivative of angular velocity. Meanwhile, an excitation sys- The AC network mainly contains the transmission lines,
tem with automatic voltage regulator (AVR) and power sys- transformers, and loads. In order to reduce the computa-
tem stabilizer (PSS) is also included in the synchronous tional burden during the hardware execution, the transmis-
generator as given in Fig. 7, where vt refers to the terminal sion lines and transformers are represented by the lumped π
voltage of the synchronous machine, TR , Kstab , Tw , T1 , and model. According to [43], only the fundamental frequency is
T2 are constant parameters, which can be found in [43], and considered, which means the other frequency ranges except
v1 , v2 , and v3 are the intermediate variables in the excitation for the system fundamental frequency between the micro-
system, which are solved together with the mechanical and grids and the AC network are ignored. The fixed loads
[16] J. Zhao, F. Li, S. Mukherjee, and C. Sticht, ‘‘Deep reinforcement learning- [39] N. Lin, S. Cao, and V. Dinavahi, ‘‘Comprehensive modeling of large
based model-free on-line dynamic multi-microgrid formation to enhance photovoltaic systems for heterogeneous parallel transient simulation of
resilience,’’ IEEE Trans. Smart Grid, vol. 13, no. 4, pp. 2557–2567, integrated AC/DC grid,’’ IEEE Trans. Energy Convers., vol. 35, no. 2,
Jul. 2022, doi: 10.1109/TSG.2022.3160387. pp. 917–927, Jun. 2020.
[17] U. Tamrakar, D. A. Copp, T. A. Nguyen, T. M. Hansen, and R. Tonkoski, [40] N. Lin, S. Cao, and V. Dinavahi, ‘‘Adaptive heterogeneous transient anal-
‘‘Real-time estimation of microgrid inertia and damping constant,’’ IEEE ysis of wind farm integrated comprehensive AC/DC grids,’’ IEEE Trans.
Access, vol. 9, pp. 114523–114534, 2021. Energy Convers., vol. 36, no. 3, pp. 2370–2379, Sep. 2021.
[18] L. M. Tolbert et al., ‘‘Reconfigurable real-time power grid emulator for [41] G. Abad, J. López, M. Rodríguez, L. Marroyo, and G. Iwanski, Doubly Fed
systems with high penetration of renewables,’’ IEEE Open Access J. Power Induction Machine: Modeling and Control for Wind Energy Generation
Energy, vol. 7, pp. 489–500, 2020. Applications. Hoboken, NJ, USA: Wiley, 2011.
[19] F. Huerta, R. L. Tello, and M. Prodanovic, ‘‘Real-time power-hardware-in- [42] Texas A&M University College of Engineering. Accessed: Nov. 21, 2022.
the-loop implementation of variable-speed wind turbines,’’ IEEE Trans. [Online]. Available: https://electricgrids.engr.tamu.edu/electric-grid-test-
Ind. Electron., vol. 64, no. 3, pp. 1893–1904, Mar. 2017. cases/new-england-ieee-39-bus-system/
[20] N. Bazmohammadi et al., ‘‘Microgrid digital twins: Concepts, applica- [43] P. Kundur, Power System Stability and Control. New York, NY, USA:
tions, and future trends,’’ IEEE Access, vol. 10, pp. 2284–2302, 2022. McGraw-Hill, 1994.
[21] M. H. Cintuglu and D. Ishchenko, ‘‘Real-time asynchronous information [44] V. Dinavahi and N. Lin, Real-Time Electromagnetic Transient Simulation
processing in distributed power systems control,’’ IEEE Trans. Smart Grid, of AC-DC Networks. Hoboken, NJ, USA: Wiley, 2021.
vol. 13, no. 1, pp. 773–782, Jan. 2022.
[22] A. A. Memon and K. Kauhaniemi, ‘‘Real-time hardware-in-the-loop test-
ing of IEC 61850 GOOSE-based logically selective adaptive protection of
AC microgrid,’’ IEEE Access, vol. 9, pp. 154612–154639, 2021.
[23] H. F. Habib, N. Fawzy, and S. Brahma, ‘‘Performance testing and assess-
ment of protection scheme using real-time hardware-in-the-loop and IEC SHIQI CAO (Graduate Student Member, IEEE)
61850 standard,’’ IEEE Trans. Ind. Appl., vol. 57, no. 5, pp. 4569–4578, received the B.Eng. degree in electrical engineer-
Sep. 2021. ing and automation from the East China Univer-
[24] M. Manbachi et al., ‘‘Real-time co-simulation platform for smart grid volt- sity of Science and Technology, Shanghai, China,
VAR optimization using IEC 61850,’’ IEEE Trans. Ind. Informat., vol. 12, in 2015, and the M.Eng. degree in power system
no. 4, pp. 1392–1402, Aug. 2016. from Western University, London, ON, Canada,
[25] S. Nigam, O. Ajala, and A. D. Dominguez-Garcia, ‘‘A controller hardware- in 2017. He is currently pursuing the Ph.D. degree
in-the-loop testbed: Verification and validation of microgrid control archi- in electrical and computer engineering with the
tectures,’’ IEEE Electrific. Mag., vol. 8, no. 3, pp. 92–100, Sep. 2020. University of Alberta, Canada. His research inter-
[26] A. S. Vijay, S. Doolla, and M. C. Chandorkar, ‘‘Real-time testing ests include transient stability analysis, power
approaches for microgrids,’’ IEEE J. Emerg. Sel. Topics Power Electron.,
electronics, and field programmable gate arrays.
vol. 5, no. 3, pp. 1356–1376, Sep. 2017.
[27] D. L. Marino, C. S. Wickramasinghe, V. K. Singh, J. Gentle, C. Rieger, and
M. Manic, ‘‘The virtualized cyber-physical testbed for machine learning
anomaly detection: A wind powered grid case study,’’ IEEE Access, vol. 9,
pp. 159475–159494, 2021.
[28] C. Dufour and J. Belanger, ‘‘On the use of real-time simulation technology NING LIN (Member, IEEE) received the B.Sc.
in smart grid research and development,’’ IEEE Trans. Ind. Appl., vol. 50, and M.Sc. degrees in electrical engineering
no. 6, pp. 3963–3970, Nov. 2014.
from Zhejiang University, Hangzhou, China, in
[29] J. Xu, K. Wang, P. Wu, and G. Li, ‘‘FPGA-based sub-microsecond-level
2008 and 2011, respectively, and the Ph.D. degree
real-time simulation for microgrids with a network-decoupled algorithm,’’
IEEE Trans. Power Del., vol. 35, no. 2, pp. 987–998, Apr. 2020.
in electrical and computer engineering from the
[30] M. Milton, A. Benigni, and A. Monti, ‘‘Real-time multi-FPGA simulation University of Alberta, Edmonton, AB, Canada,
of energy conversion systems,’’ IEEE Trans. Energy Convers., vol. 34, in 2018. From 2011 to 2014, he was an Engineer
no. 4, pp. 2198–2208, Dec. 2019. of substation automation, flexible AC transmis-
[31] Y. Chen and V. Dinavahi, ‘‘Multi-FPGA digital hardware design sion systems, and high-voltage direct current trans-
for detailed large-scale real-time electromagnetic transient simulation mission control and protection. Currently, he is a
of power systems,’’ IET Gener., Transmiss., Distrib., vol. 7, no. 5, Senior Power Systems Consultant. His research interests include AC/DC
pp. 451–463, May 2013. grids, electromagnetic transient simulation, real-time simulation, transient
[32] C. Yang, Y. Xue, X.-P. Zhang, Y. Zhang, and Y. Chen, ‘‘Real-time stability analysis, heterogeneous high-performance computing of power sys-
FPGA-RTDS co-simulator for power systems,’’ IEEE Access, vol. 6, tems, and power electronics.
pp. 44917–44926, 2018.
[33] J. Xu et al., ‘‘FPGA-based submicrosecond-level real-time simulation of
solid-state transformer with a switching frequency of 50 kHz,’’ IEEE
J. Emerg. Sel. Topics Power Electron., vol. 9, no. 4, pp. 4212–4224,
Aug. 2021.
[34] J. Zhu, L. Pan, Y. Yan, D. Wu, and H. He, ‘‘A fast application-based supply VENKATA DINAVAHI (Fellow, IEEE) received
voltage optimization method for dual voltage FPGA,’’ IEEE Trans. Very the B.Eng. degree in electrical engineering from
Large Scale Integr. (VLSI) Syst., vol. 22, no. 12, pp. 2629–2634, Dec. 2014. the Visvesvaraya National Institute of Tech-
[35] R. Dai, G. Liu, and X. Zhang, ‘‘Transmission technologies and implemen- nology (VNIT), Nagpur, India, in 1993, the
tations: Building a stronger, smarter power grid in China,’’ IEEE Power M.Tech. degree in electrical engineering from the
Energy Mag., vol. 18, no. 2, pp. 53–59, Mar. 2020. IIT Kanpur, India, in 1996, and the Ph.D. degree
[36] Y. Huo and G. Gruosso, ‘‘Hardware-in-the-loop framework for validation
in electrical and computer engineering from the
of ancillary service in microgrids: Feasibility, problems and improve-
University of Toronto, ON, Canada, in 2000. Cur-
ment,’’ IEEE Access, vol. 7, pp. 58104–58112, 2019.
[37] S. Cao, N. Lin, and V. Dinavahi, ‘‘Faster-than-real-time hardware emu-
rently, he is a Professor with the Department of
lation of extensive contingencies for dynamic security analysis of large- Electrical and Computer Engineering, University
scale integrated AC/DC grid,’’ IEEE Trans. Power Syst., early access, of Alberta, Edmonton, AB, Canada. He is a fellow of the Engineering
Mar. 28, 2022, doi: 10.1109/TPWRS.2022.3161561. Institute of Canada. His research interests include real-time simulation of
[38] S. Cao, N. Lin, and V. Dinavahi, ‘‘Flexible time-stepping dynamic emu- power systems and power electronic systems, electromagnetic transients,
lation of AC/DC grid for faster-than-SCADA applications,’’ IEEE Trans. devicelevel modeling, large-scale systems, and parallel and distributed
Power Syst., vol. 36, no. 3, pp. 2674–2683, May 2021. computing.