Skip to main content
QUICK REVIEW

[Paper Review] PowerSimulationsDynamics.jl -- An Open Source Modeling Package for Modern Power Systems with Inverter-Based Resources

José Daniel Lara, Rodrigo Henriquez-Auba|arXiv (Cornell University)|Aug 5, 2023
Real-time simulation and control systemsEngineering3 citations
TL;DR

This paper introduces PowerSimulationsDynamics.jl, an open-source Julia-based simulation toolbox for modeling low-inertia power systems with high penetration of inverter-based resources (IBRs). It supports both quasi-static phasor (QSP) and electromagnetic transient (EMT) simulations using dynamic network representations, enabling accurate transient and small-signal stability analysis with validation against commercial tools like PSS®E and EMT software such as PSCAD.

ABSTRACT

In this paper we present the development of an open-source simulation toolbox, PowerSimulationsDynamics.jl, to study the dynamic response of power systems, focusing on the requirements to model systems with high penetrations of Inverter-Based Resources (IBRs). PowerSimulationsDynamics.jl is implemented in Julia and features a rich library of synchronous generator, inverter, and load models. In addition, it allows the study of quasi-static phasors and electromagnetic dq models that use a dynamic network representation. Case studies and validation exercises show that PowerSimulationsDynamics.jl results closely match other commercial and open-source simulation tools.

Motivation & Objective

  • Address the limitations of commercial quasi-static phasor (QSP) tools in simulating systems with high inverter-based resource (IBR) penetration and weak grid conditions.
  • Overcome the computational infeasibility of full electromagnetic transient (EMT) simulations for large-scale system studies by providing a scalable, extensible simulation framework.
  • Enable researchers to develop, test, and compare novel IBR control strategies and dynamic models through a modular, open-source software architecture.
  • Provide a unified platform that supports both QSP and EMT modeling with consistent component modeling and numerical solvers.
  • Facilitate reproducible, large-scale, and extensible dynamic simulations by decoupling model definition from solver implementation.

Proposed method

  • Implement a domain-specific modeling layer in Julia using a metamodeling approach that standardizes ports and states across power system components, enabling modular and composable device modeling.
  • Integrate advanced numerical solvers such as Rodas5P with adaptive time-stepping and high-accuracy tolerances (1e-9) for stiff differential-algebraic equations (DAEs) arising in power system dynamics.
  • Support both quasi-static phasor (QSP) modeling using admittance matrix representations and electromagnetic transient (EMT) modeling using dynamic dq-frame network models.
  • Leverage automatic differentiation (AD) via the ForwardDiff.jl package to compute Jacobians for small-signal stability analysis with high precision.
  • Use symbolic modeling and numeric computation pipelines to enable efficient simulation of complex systems with detailed IBR and synchronous generator models.
  • Validate results against established tools: PSS®E for QSP and PSCAD for EMT simulations, using contingency studies and eigenvalue comparisons.
Figure 1 : Software dependencies in PSID.jl .
Figure 1 : Software dependencies in PSID.jl .

Experimental results

Research questions

  • RQ1How accurately can PowerSimulationsDynamics.jl reproduce the dynamic behavior of large power systems with high IBR penetration compared to commercial QSP tools like PSS®E?
  • RQ2To what extent does the EMT formulation in PowerSimulationsDynamics.jl capture fast network dynamics and high-frequency oscillations compared to point-on-wave EMT simulations?
  • RQ3Can the software’s small-signal stability analysis capabilities, enabled by automatic differentiation, produce eigenvalue results consistent with established tools like ANDES and DSATools SSAT?
  • RQ4How does the modularity of the component metamodeling framework support rapid prototyping and comparison of different IBR control and modeling strategies?
  • RQ5What is the trade-off between model fidelity (QSP vs. EMT) and computational cost in large-scale system simulations?

Key findings

  • The average Root Mean Square Error (RMSE) for voltage traces between PSID.jl and PSS®E was 1.08×10⁻⁵ per unit (pu), with a maximum error of 2.59×10⁻⁵ pu across 595 trace comparisons.
  • The average RMSE for generator speed was 1.60×10⁻⁶ pu, and for bus angle, it was 3.17×10⁻² degrees, indicating high fidelity in transient response simulation.
  • Small-signal eigenvalue analysis showed an RMSE of approximately 0.2872 between PSID.jl and ANDES, confirming close agreement with validated reference tools.
  • The EMT model captured fast oscillations with large imaginary parts in eigenvalues, which were absent in the QSP model, demonstrating its ability to represent high-frequency dynamics.
  • The software successfully simulated 329 line trips and 195 generator trips, enabling comprehensive contingency analysis with consistent results across multiple metrics.
  • The use of automatic differentiation enabled accurate Jacobian computation for small-signal analysis, with eigenvalues closely matching those from ANDES and DSATools SSAT.
Figure 2 : Implementation of the state space indexing.
Figure 2 : Implementation of the state space indexing.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.