Design and Implementation of a Real-Time Hardware-in-the-Loop Platform for Prototyping and Testing Digital Twins of Distributed Energy Resources
Abstract
:1. Introduction
2. Design Considerations for the DT Testing Platform
- Representation of the physical system: As mentioned previously, DT is a virtual replica of a physical system. In a real-world application, the physical system is the actual assets, e.g., DERs. However, in a testing environment, it is not always possible to have the physical DERs due to issues with hardware availability, system capacity, cost, etc. Therefore, when testing a DT-based system, the representation of the physical entity should be carefully considered. The following are a list of options:
- –
- Direct use of the original physical system: suitable when the original physical system is available and typically small in capacity, and can be installed in the lab environment.
- –
- Representing the physical system via real-time simulator (RTS): this option can model the physical system in an RTS to emulate the physical entity, which is relatively low cost and scalable, but the real-time model needs to be validated against the physical system’s behaviors.
- –
- Power-Hardware-in-the-Loop (PHiL) simulation: this option is a balance of the first two options, where a small DER can be coupled with the RTS via an amplifier to represent a scaled version of the physical system while largely maintaining the accurate realistic behavior of the physical system.
- Hosting and execution of the DT: for a DT testing platform, DTs have to be hosted and executed on a platform to emulate its real-world application environment. Depending on the targeted application of the DTs, the performance requirements of the platform for hosting and executing the DTs can be significantly different. The key consideration is to ensure the platform’s computation capability is sufficient to execute the DT within each specified time-step.
- Investigation of impact of data reporting rate: DTs need to receive actual/emulated measurement data with certain rates in order to accurately represent the physical system status. The test platform should allow for investigation of a suitable data reporting rate for the DTs and test how varied data rates could affect the DTs’ performance.
- Evaluation of communication performance impact: the link with real-time data via communication links is one of the key differences and advantages of DT compared with conventional models. The communication performance can have significant impact on the DTs’ accuracy, so the testing platform should contain the elements that allow the evaluation of such impacts.
- Validation of services provided by the DTs: DTs can be used to enable a wide range of applications, e.g., monitoring and control, and the testing platform should contain elements for executing and demonstrating such applications using the DTs to ensure the DTs are fit for purpose.
3. Design and Implementation of the Testing Platform for Digital Twins of Distributed Energy Resources (DERs)
3.1. Overview of the DT Testing Platform
- The physical DERs are represented with real-time DERs models simulated in an RTDS simulator.
- The DTs of the DERs are accurate models, along with communication interfaces and other associated functions. In this work, for demonstration purpose, the DTs are used for monitoring the DERs’ active power output for frequency studies, so they are compiled as executable programs hosted on a dedicated high-performance PC to emulate a cloud server.
- The real-time measurement data (e.g., frequency, voltage, etc.) are transmitted via a Socket-based Giga-Transceiver Network (GTNET-SKT) card, which is a network interface in RTDS. The exact data to be transmitted depend on the targeted application of the DTs. The data reporting rate can be controlled in RTDS to evaluate its impact on DTs’ accuracy.
- The communication channels between the emulated DERs in RTDS and their DTs are emulated by via the GTNET card and an Ethernet switch, along with a dedicated software-based communication delay emulator implemented in this platform, which will be discussed in detailed in Section 3.4.
- The services provided by the DTs, e.g., the estimated active power outputs and critical status information of the DERs, are used by the applications that are hosted also in the same PC with the DTs.
3.2. Representation of Physical DERs
3.3. Execution and Host of DTs
3.4. Emulation of Communications
3.4.1. Delay Jitter Emulator
3.4.2. Protocol
3.5. Measurements for DTs
3.6. Services Provided by DTs
4. Case Studies
4.1. System Description
- Figure 5 presents the block diagram of the BESS with droop controller that is implemented in RTDS. The input of the control loop is the grid frequency measured by PMU and the reference power set-point. The characteristic of a Triphase 15 kVA converter is represented by its equivalent transfer function. Therefore, with the knowledge of every pre-configured reference value (e.g., reference power and nominal frequency), a DT with the same I/O ports with BESS is developed.
- The input of GAST is the measured rotational speed of the SG. To apply droop control, the input is firstly converted into per unit frequency followed by the droop and damping multiplication. As shown in Figure 6, first-order transfer functions are used to represent the functional subsystems of SG including speed governor, combustion chamber and exhaust gas temperature limiter.
- For the VSM model, a grid forming converter, as shown in Figure 7, is implemented in RTDS with conventional nested controller and inertia emulator. The output voltage of this converter is regulated by following the dedicated frequency and voltage magnitude references. Even though the final reference power determined by droop control algorithm is the most of interest, the inertia and damping power are also essential criteria to be investigated.
4.2. Validation of DTs’ Real-Time Tracking Capability
- Frequency deviation event in grid-connected mode (50 Hz to 49 Hz). At 2 s, upon the activation of the first scenario, the main grid frequency witnesses a significant drop from 50 Hz to 49 Hz with the Rate of Change of Frequency (RoCoF) at −0.5 Hz/s. This scenario is designed to emulate the effect of the loss of generation in the main grid.
- Frequency restoration in grid-connected mode (49 Hz to 50 Hz). The frequency is recovered from 49 Hz to 50 Hz in the second scenario to emulate the frequency control process.
- System transition from grid-connected mode to islanded mode. As the microgrid is connected with main grid, the power imbalance test of generation and load could only be performed under islanded mode. Otherwise, the active power from the main grid would be fed into the microgrid to maintain the balance condition. Therefore, the third scenario is used to monitor the tracking capability of DT when the microgrid status changes from grid-connected mode to islanded mode.
- Load power change (3.3 MW to 3.6 MW). In the fourth scenario, the load power is increased from 3.3 MW to 3.6 MW to demonstrate the power imbalance occurring in the islanded microgrid.
- Load power change (3.6 MW to 2.9 MW). In the fifth scenario, the load power is decreased from 3.6 MW to 2.9 MW to demonstrate the power imbalance occurring in the islanded microgrid.
4.3. Impact of Communication Delay Jitter on DTs
4.3.1. Impact of DTs’ Time-Step
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
Abbreviations
ADC | Analog-to-Digital Converter |
BESS | Battery Energy Storage System |
COP26 | The 26th UN Climate Change Conference of the Parties |
DERs | Distributed Energy Resources |
DT | Digital Twin |
GAST | Gas Turbine and its associated Speed Governor |
GPS | Global Positioning System |
GTAI | Giga-Transceiver Analogue Input |
GTAO | Giga-Transceiver Analogue Output |
GTNET-SKT | Socket-based Giga-Transceiver Network |
HiL | Hardware-in-the-Loop |
PCC | Point of Common Coupling |
PHiL | Power Hardware-in-the-Loop |
PMU | Phasor Measurement Unit |
RoCoF | Rate of Change of Frequency |
RTDS | Real-Time Digital Simulator |
RTS | Real-Time Simulator |
SG | Synchronous Generator |
UDP | User Datagram Protocol |
VSM | Virtual Synchronous Machine |
WAN | Wide-Area Network. |
References
- Danaher, L. COP26 Keeps 1.5c Alive And Finalises Paris Agreement; UNCC: Bonn, Germany, 2021. [Google Scholar]
- Guerrero, J.M.; Blaabjerg, F.; Zhelev, T.; Hemmes, K.; Monmasson, E.; Jemei, S.; Comech, M.P.; Granadino, R.; Frau, J.I. Distributed Generation: Toward a New Energy Paradigm. IEEE Ind. Electron. Mag. 2010, 4, 52–64. [Google Scholar] [CrossRef]
- IEEE Std 1547.2-2008; IEEE Application Guide for IEEE Std 1547(TM), IEEE Standard for Interconnecting Distributed Resources with Electric Power Systems. IEEE: Piscataway, NJ, USA, 2009; pp. 1–217. [CrossRef]
- Collier, S.E. The Enernet: Smart Grid Visibility and Control. IEEE Smart Grid Newsletter, April 2016. [Google Scholar]
- Vaziri, M.; Vadhva, S.; Oneal, T.; Johnson, M. Distributed generation issues, and standards. In Proceedings of the 2011 IEEE International Conference on Information Reuse & Integration, Las Vegas, NV, USA, 3–5 August 2011; pp. 439–443. [Google Scholar] [CrossRef]
- Coster, E.J.; Myrzik, J.M.A.; Kruimer, B.; Kling, W.L. Integration Issues of Distributed Generation in Distribution Grids. Proc. IEEE 2011, 99, 28–39. [Google Scholar] [CrossRef]
- Blaabjerg, F.; Yang, Y.; Yang, D.; Wang, X. Distributed Power-Generation Systems and Protection. Proc. IEEE 2017, 105, 1311–1331. [Google Scholar] [CrossRef]
- Zhao, C.; Topcu, U.; Low, S.H. Optimal Load Control via Frequency Measurement and Neighborhood Area Communication. IEEE Trans. Power Syst. 2013, 28, 3576–3587. [Google Scholar] [CrossRef]
- Yang, T.; Lu, J.; Wu, D.; Wu, J.; Shi, G.; Meng, Z.; Johansson, K.H. A Distributed Algorithm for Economic Dispatch Over Time-Varying Directed Networks With Delays. IEEE Trans. Ind. Electron. 2017, 64, 5095–5106. [Google Scholar] [CrossRef]
- Wang, Y.; Syed, M.H.; Guillo-Sansano, E.; Xu, Y.; Burt, G.M. Inverter-Based Voltage Control of Distribution Networks: A Three-Level Coordinated Method and Power Hardware-in-the-Loop Validation. IEEE Trans. Sustain. Energy 2020, 11, 2380–2391. [Google Scholar] [CrossRef]
- Grieves, M. Digital Twin: Manufacturing Excellence through Virtual Factory Replication; Dassault Systèmes: Paris, France, 2014. [Google Scholar]
- Wu, P.; Qi, M.; Gao, L.; Zou, W.; Miao, Q.; Liu, L.L. Research on the virtual reality synchronization of workshop digital twin. In Proceedings of the 2019 IEEE 8th Joint International Information Technology and Artificial Intelligence Conference (ITAIC), Chongqing, China, 24–26 May 2019; pp. 875–879. [Google Scholar] [CrossRef]
- Lu, Y.; Maharjan, S.; Zhang, Y. Adaptive Edge Association for Wireless Digital Twin Networks in 6G. IEEE Internet Things J. 2021, 8, 16219–16230. [Google Scholar] [CrossRef]
- Wang, Y.; Kang, X.; Chen, Z. A Survey of Digital Twin Techniques in Smart Manufacturing and Management of Energy Applications. Green Energy Intell. Transp. 2022, 100014, in press. [Google Scholar] [CrossRef]
- Liu, S.; Bao, J.; Lu, Y.; Li, J.; Lu, S.; Sun, X. Digital twin modeling method based on biomimicry for machining aerospace components. J. Manuf. Syst. 2021, 58, 180–195. [Google Scholar] [CrossRef]
- NASA. APOLLO 13 Mission Report; NASA-Manned Spacecraft Center: Huston, TX, USA, 1970.
- Fang, Y.; Peng, C.; Lou, P.; Zhou, Z.; Hu, J.; Yan, J. Digital-Twin-Based Job Shop Scheduling Toward Smart Manufacturing. IEEE Trans. Ind. Inform. 2019, 15, 6425–6435. [Google Scholar] [CrossRef]
- Venkatesan, S.; Manickavasagam, K.; Tengenkai, N.; Vijayalakshmi, N. Health monitoring and prognosis of electric vehicle motor using intelligent-digital twin. IET Electr. Power Appl. 2019, 13, 1328–1335. [Google Scholar] [CrossRef]
- Jain, P.; Poon, J.; Singh, J.P.; Spanos, C.; Sanders, S.R.; Panda, S.K. A Digital Twin Approach for Fault Diagnosis in Distributed Photovoltaic Systems. IEEE Trans. Power Electron. 2020, 35, 940–956. [Google Scholar] [CrossRef]
- Milton, M.; De La Castulo, O.; Ginn, H.L.; Benigni, A. Controller-Embeddable Probabilistic Real-Time Digital Twins for Power Electronic Converter Diagnostics. IEEE Trans. Power Electron. 2020, 35, 9850–9864. [Google Scholar] [CrossRef]
- Han, J.; Hong, Q.; Syed, M.H.; Khan, M.A.U.; Yang, G.; Burt, G.; Booth, C. Cloud-Edge Hosted Digital Twins for Coordinated Control of Distributed Energy Resources. IEEE Trans. Cloud Comput. 2022, 1–15. [Google Scholar] [CrossRef]
- Omar Faruque, M.D.; Strasser, T.; Lauss, G.; Jalili-Marandi, V.; Forsyth, P.; Dufour, C.; Dinavahi, V.; Monti, A.; Kotsampopoulos, P.; Martinez, J.A.; et al. Real-Time Simulation Technologies for Power Systems Design, Testing, and Analysis. IEEE Power Energy Technol. Syst. J. 2015, 2, 63–73. [Google Scholar] [CrossRef]
- Lauss, G.F.; Faruque, M.O.; Schoder, K.; Dufour, C.; Viehweider, A.; Langston, J. Characteristics and Design of Power Hardware-in-the-Loop Simulations for Electrical Power Systems. IEEE Trans. Ind. Electron. 2016, 63, 406–417. [Google Scholar] [CrossRef]
- Kotsampopoulos, P.C.; Lehfuss, F.; Lauss, G.F.; Bletterie, B.; Hatziargyriou, N.D. The Limitations of Digital Simulation and the Advantages of PHIL Testing in Studying Distributed Generation Provision of Ancillary Services. IEEE Trans. Ind. Electron. 2015, 62, 5502–5515. [Google Scholar] [CrossRef]
- Kotsampopoulos, P.C.; Kleftakis, V.A.; Hatziargyriou, N.D. Laboratory Education of Modern Power Systems Using PHIL Simulation. IEEE Trans. Power Systems 2017, 32, 3992–4001. [Google Scholar] [CrossRef]
- Feng, Z.; Peña-Alzola, R.; Seisopoulos, P.; Syed, M.; Guillo-Sansano, E.; Norman, P.; Burt, G. Interface compensation for more accurate power transfer and signal synchronization within power hardware-in-the-loop simulation. In Proceedings of the IECON 2021—47th Annual Conference of the IEEE Industrial Electronics Society, Toronto, ON, Canada, 13–16 October 2021; pp. 1–8. [Google Scholar] [CrossRef]
- Hong, Q.; Abdulhadi, I.; Tzelepis, D.; Roscoe, A.; Marshall, B.; Booth, C. Realization of High Fidelity Power-Hardware-in-the-Loop Capability Using a MW-Scale Motor-Generator Set. IEEE Trans. Ind. Electron. 2020, 67, 6835–6844. [Google Scholar] [CrossRef]
- Alipoor, J.; Miura, Y.; Ise, T. Power System Stabilization Using Virtual Synchronous Generator With Alternating Moment of Inertia. IEEE J. Emerg. Sel. Top. Power Electron. 2015, 3, 451–458. [Google Scholar] [CrossRef]
- Tao, F.; Zhang, M.; Liu, Y.; Nee, A. Digital twin driven prognostics and health management for complex equipment. CIRP Ann. 2018, 67, 169–172. [Google Scholar] [CrossRef]
- Thieling, J.; Frese, S.; Roßmann, J. Scalable and Physical Radar Sensor Simulation for Interacting Digital Twins. IEEE Sens. J. 2021, 21, 3184–3192. [Google Scholar] [CrossRef]
- Ren, Z.; Wan, J.; Deng, P. Machine-Learning-Driven Digital Twin for Lifecycle Management of Complex Equipment. IEEE Trans. Emerg. Top. Comput. 2022, 10, 9–22. [Google Scholar] [CrossRef]
- Liao, X.; Wang, Z.; Zhao, X.; Han, K.; Tiwari, P.; Barth, M.J.; Wu, G. Cooperative Ramp Merging Design and Field Implementation: A Digital Twin Approach Based on Vehicle-to-Cloud Communication. IEEE Trans. Intell. Transp. Syst. 2022, 23, 4490–4500. [Google Scholar] [CrossRef]
- Feng, Z.; Peña-Alzola, R.; Seisopoulos, P.; Guillo-Sansano, E.; Syed, M.; Norman, P.; Burt, G. A scheme to improve the stability and accuracy of power hardware-in-the-loop simulation. In Proceedings of the IECON 2020 The 46th Annual Conference of the IEEE Industrial Electronics Society, Singapore, 18–21 October 2020; pp. 5027–5032. [Google Scholar] [CrossRef]
- Weik, M.H. User datagram protocol. In Computer Science and Communications Dictionary; Springer: Boston, MA, USA, 2001; p. 1872. [Google Scholar] [CrossRef]
- Hong, Q.; Ji, L.; Blair, S.M.; Tzelepis, D.; Karimi, M.; Terzija, V.; Booth, C.D. A New Load Shedding Scheme With Consideration of Distributed Energy Resources’ Active Power Ramping Capability. IEEE Trans. Power Syst. 2022, 37, 81–93. [Google Scholar] [CrossRef]
- Pourbeik, P. “Dynamic Models for Turbine-Governors in Power System Studies,” Power System Dynamic Performance Committee, Power System Stability Subcommittee, Task Force on Turbine-Governor Modeling. 2013. Available online: https://site.ieee.org/fw-pes/files/2013/01/PES_TR1.pdf (accessed on 3 July 2022).
- Uddin Khan, M.A.; Hong, Q.; Liu, D.; Alvarez, A.E.; Dyśko, A.; Booth, C.; Rostom, D. Comparative Evaluation of Dynamic Performance of a Virtual Synchronous Machine and Synchronous Machines. In Proceedings of the 9th Renewable Power Generation Conference (RPG Dublin Online 2021), Online, 1–2 March 2021; Volume 2021, pp. 366–371. [Google Scholar] [CrossRef]
- Synaptec. Synaptec Interrogators: How do Synaptec Interrogators Work? Techreport; Synaptec: Glasgow, UK, 2022. [Google Scholar]
Parameters | Description | Value |
---|---|---|
R | BESS: Droop constant | 0.05 |
BESS: Active power output | Variable | |
BESS: Active power output set-point | 0.1 MW | |
R | GAST: Droop constant | 0.05 |
GAST: Active power output set-point | 0.8 MW | |
GAST: Turbine damping constant | 0 | |
GAST: Temperature limiter gain | 2 | |
VSM: Converter output filter inductance | 1 mH | |
VSM: Converter output filter capacitance | 2500 uF | |
VSM: Damping constant | 50 | |
H | VSM: Inertia constant | 2 |
R | VSM: Droop constant | 0.05 |
Grid frequency measurement | Variable | |
Nominal grid frequency | 50 Hz | |
Change of grid frequency | Variable |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Han, J.; Hong, Q.; Feng, Z.; Syed, M.H.; Burt, G.M.; Booth, C.D. Design and Implementation of a Real-Time Hardware-in-the-Loop Platform for Prototyping and Testing Digital Twins of Distributed Energy Resources. Energies 2022, 15, 6629. https://doi.org/10.3390/en15186629
Han J, Hong Q, Feng Z, Syed MH, Burt GM, Booth CD. Design and Implementation of a Real-Time Hardware-in-the-Loop Platform for Prototyping and Testing Digital Twins of Distributed Energy Resources. Energies. 2022; 15(18):6629. https://doi.org/10.3390/en15186629
Chicago/Turabian StyleHan, Jiaxuan, Qiteng Hong, Zhiwang Feng, Mazheruddin H. Syed, Graeme M. Burt, and Campbell D. Booth. 2022. "Design and Implementation of a Real-Time Hardware-in-the-Loop Platform for Prototyping and Testing Digital Twins of Distributed Energy Resources" Energies 15, no. 18: 6629. https://doi.org/10.3390/en15186629
APA StyleHan, J., Hong, Q., Feng, Z., Syed, M. H., Burt, G. M., & Booth, C. D. (2022). Design and Implementation of a Real-Time Hardware-in-the-Loop Platform for Prototyping and Testing Digital Twins of Distributed Energy Resources. Energies, 15(18), 6629. https://doi.org/10.3390/en15186629