NREL's EMT simulator: An Open Source, Parallelizable, and HPC-Compatible Large-Scale Power System Electro-Magnetic Transient (EMT) Simulator
Welcome to the ParaEMT simulation package! This open-source tool aims to provide a powerful and flexible platform for simulating electromagnetic transients (EMT) of large-scale inverter-based resource (IBR)-dominated power systems. The purpose of making it open source is to foster a community of EMT simulation and assist in exploring new EMT algorithms and applying advanced computational techniques to EMT simulation.
- EMT modeling
- EMT Network equation: nodal formulation based on Trapezoidal-rule method
- EMT network parallel solver: BBD
- Parallel computation of updateing device states and network historical current
- Compatible with HPC
- Compatible with dynamic-link library (DLL) supported dynamic models
- Compiled with the just-in-time (JIT) compiler, Numba, in Python
- Results down-sampling
- Save simulation progress as a snapshot file, and resume the simulation from a saved snapshot
- Test systems library: the Kundur two-area system, IEEE 9-bus system, IEEE 39-bus system, Western Electricity Coordinating Council (WECC) 179-bus system, and WECC 240-bus system
- Fully open source and transparent: Allows unrestricted access to the underlying source code and encourages active engagement and contributions from the community
- ParaEMT is under continuous development, and currently supports the following models:
![](https://private-user-images.githubusercontent.com/102193041/270497554-41ff1810-f951-4a28-9a48-3cfb455a627b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM3MjYyNTgsIm5iZiI6MTcyMzcyNTk1OCwicGF0aCI6Ii8xMDIxOTMwNDEvMjcwNDk3NTU0LTQxZmYxODEwLWY5NTEtNGEyOC05YTQ4LTNjZmI0NTVhNjI3Yi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxNVQxMjQ1NThaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xYzY4ZTI5ZWI0NjA5ZjAwNGUwMTk5YTVhMTk3MzBlZTUyN2Y5MDU3NDI4YjY4NDkwNWVlOTM0NjdmNzI3ZTczJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.UKc41g19oJn5-Lx3VLZdyWR5OQFoD_2LUO4SDpMrQvY)
- Work with Pyhton v3.7+.
- If you use ParaEMT for research or consulting, please cite the following paper in your publication that uses ParaEMT:
M. Xiong, B. Wang, D. Vaidhynathan, J. Maack, M. Reynolds, A. Hoke, K. Sun, D. Ramasubramanian, V. Verma, J. Tan, “An Open-Source Parallel EMT Simulation Framework,” Preprint. Golden, CO: National Renewable Energy Laboratory,” NREL/CP-5D00-87164. Sep. 2023.
- To conduct EMT simulations using PataEMT, follow these steps:
![](https://private-user-images.githubusercontent.com/102193041/270496743-72beb4a9-4aac-475b-a0ab-980435a339b0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM3MjYyNTgsIm5iZiI6MTcyMzcyNTk1OCwicGF0aCI6Ii8xMDIxOTMwNDEvMjcwNDk2NzQzLTcyYmViNGE5LTRhYWMtNDc1Yi1hMGFiLTk4MDQzNWEzMzliMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxNVQxMjQ1NThaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04YjA1MWNjZjE1ZGRiOTVjZTIxYzQ0MjYyZmZmYzg2NDJmMGVmYzgwNmQzOTNhYmZkZDM2NTE3MDEyOTU4MmI0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.srh_XWSn9YG09AYD2AgI_4uQ2gXn6X49FyKqMreU3yk)
-
Main Functions and Subfunction Libraries
The first function, main_step0_CreateLargeCases, serves the dual purpose of executing and storing the power flow solution and, optionally, generating synthetic large-scale systems. The second function, main_step1_sim, is responsible for initializing and simulating the system dynamics. The third function, main_step2_save, saves the simulation results.
-
Simulation Initialization
![](https://private-user-images.githubusercontent.com/102193041/270498919-a27215f5-9778-4ef9-b603-735a245e16ee.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM3MjYyNTgsIm5iZiI6MTcyMzcyNTk1OCwicGF0aCI6Ii8xMDIxOTMwNDEvMjcwNDk4OTE5LWEyNzIxNWY1LTk3NzgtNGVmOS1iNjAzLTczNWEyNDVlMTZlZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxNVQxMjQ1NThaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01YWMxYWE3ZTM0ODZjMzkzZmM3YTA3NDM0MzVkNGVhYTY5NWNlMjNmZDUxNGNhMjNjNzVmZGE5ZmU2NmRmNjI0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.gE7GpXShKPwgjAu7TNHy-Frkaa0AlNe7XmJDxFdb_yk)
- Time Domain Simulation
![](https://private-user-images.githubusercontent.com/102193041/270498931-b8094dd4-7015-4060-a999-521adb4bafc6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM3MjYyNTgsIm5iZiI6MTcyMzcyNTk1OCwicGF0aCI6Ii8xMDIxOTMwNDEvMjcwNDk4OTMxLWI4MDk0ZGQ0LTcwMTUtNDA2MC1hOTk5LTUyMWFkYjRiYWZjNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxNVQxMjQ1NThaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lNTQyNzhlNDhiZjk1NzA4OTZhYjgxODQ2Mjc1OTNiYzM4N2ViODE1ZGRlNDYzM2QwYmE0ODBhNGM2NzgwZWNiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.Z98WoJfsIzRVe_HYEcLOO_hOpDGuC0sfLnH6fj9AW6w)
- ParaEMT has been developed under a Laboratory Directed Research and Development (LDRD) project titled “Large-Scale Electro-magnetic Transient (EMT) Capability for Evaluating 100% Inverter-Based Systems” at the U.S. Department of Energy's National Renewable Energy Laboratory.
- ParaEMT has also been developed under the NREL project titled "Intelligent Phasor-EMT Partitioning (I-PEP) for Accelerated Large-scale IBR Integration Studies (Award # DE-EE00038457)".
- NREL Software Record of Invention : “Parallelizable Large-Scale Power System Electro-Magnetic Transient (EMT) Simulator”. Authors: Bin Wang, Jonathan Maack, Deepthi Vaidhynathan, Jin Tan, Matthew Reynolds. https://doelps.org/arntrn
- ParaEMT is released under a BSD.
- NREL Software Record of Invention: Bin Wang, Jonathan Maack, Deepthi Vaidhynathan, Jin Tan, Matthew Reynolds “Parallelizable Large-Scale Power System Electro-Magnetic Transient (EMT) Simulator”.
- For any questions, feedback, or inquiries, please contact our team at ParaEMT@nrel.gov.
- Report bugs or issues by submitting a GitHub issue