ePHASORSIM Interface

Documentation Home Page HYPERSIM Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

ePHASORSIM Interface


Prerequisite

To use ePHASORSIM Interface in HYPERSIM, Dashboard must be enabled in the Preferences

Overview

ePHASORSIM is a real-time phasor simulation tool integrated into the HYPERSIM environment. It is primarily used for simulating large power systems with a focus on phasor-domain behavior. This document provides a high-level description of ePHASORSIM and its role within the HYPERSIM simulation platform.

Key Features

  1. Phasor-Based Simulation:

    • ePHASORSIM operates in the phasor domain, performing dynamic simulations of power systems where electromechanical phenomena occur (up to 10 Hz). This capability is ideal for transient stability studies. The solver also effectively handles steady-state analysis of electrical systems, emphasizing voltage, current, and power at the phasor level rather than detailed waveform analysis.

    • This approach allows for faster simulation of large networks compared to time-domain simulations.

  2. Real-Time Capabilities:

    • ePHASORSIM supports real-time simulation, making it a valuable tool for hardware-in-the-loop (HIL) testing, system protection, and control studies.

    • It can model and simulate thousands of buses in real time.

  3. Integration with HYPERSIM:

    • Within the HYPERSIM platform, ePHASORSIM is tightly integrated, enabling it to simulate large power grids alongside detailed electromagnetic transient (EMT) simulations.

    • Users can seamlessly switch between EMT and phasor domain simulations depending on the needs of the study.

  4. Applications:

    • Stability Analysis: ePHASORSIM is used to assess the stability of large power grids under various disturbances.

    • Protection Studies: It facilitates protection relay testing by simulating fault conditions and validating relay responses.

    • Real-Time Power System Operation: Enables the simulation of real-world operational scenarios for large-scale systems.

  5. Simulation Environment:

    • ePHASORSIM provides an intuitive user interface to configure and run a simulation.

    • Users can set up system models, define faults and events, and configure various simulation parameters via the HYPERSIM interface.

ePHASORSIM Workflow and Model Setup in HYPERSIM

This guide provides a step-by-step walkthrough to configure and run an ePHASORSIM model using HYPERSIM. The configuration window for setting up the simulation is shown in the screenshot and explained below.

  1. Model Setup:

    • Add an ePHASORSIM Interface from library Network Interface

      image-20241023-193656.png

       

    • By double clicking on the empty component, the ePHASORSIM UI is presented

image-20250918-131935.png
Model import view - Excel format
image-20250918-132039.png
Model import view - PSS/E format
image-20250918-132104.png
Model import view - Powerfactory format

 

Some ePHASORSIM features described below require a specific license key. If that is the case, the feature is identified with a lock and key icon in the table below.

Import settings

 

Import settings

 

Import format

The format of the files used to import the model.

The possible values are:

  • Excel

  • PSS/E

  • Powerfactory

 

License keys required:

  • EPHASOR_INPUTFORMAT_PSSE

  • EPHASOR_INPUTFORMAT_POWERFACTORY


Import format

Import file(s)

Excel

Power system model (*.xlsx)

PSS/E

  • I/O pins file (*.xlsx)

  • DYR file (*.dyr)

  • RAW file (*.raw)

Powerfactory

  • I/O pins file (*.xlsx)

  • DGS file (*.xml)

Model conversion options

 

Import switches (Powerfactory)

When importing a model using the Powerfactory format, it is possible to filter switch components out of the original Powerfactory model.

Selected filter

Description

All switches

All switches are imported from the model.

No switch

Switches are excluded out of the model.

Switches with events only

Only switches associated to events in the original Powerfactory model are imported.

 

Common settings

 

External components (optional)

If external components are required in the simulation, they can specified here.

Details on how to include FMUs to an ePHASORSIM model are found in the ePHASORSIM documentation (Integrating a User-Defined GenUnit FMU).

Select Folder: This optional step allows importing additional external components that may interact with the power grid (e.g., renewable energy sources, control devices). This could include external code or custom models from external simulations.

Mappings (required conditionally)

When including external components to a model whenever the import format is PSS/E or Powerfactory, the mappings field is required.

The format specification of the mappings file is found in the ePHASORSIM documentation (.yaml FMU Specification).

Select File: Click this button to provide the component identifier to external component mapping.

Time Step

The time step is critical in determining how frequently the phasor domain equations are solved during the simulation.

Time Step: Enter the time step value in seconds. A typical value could be 0.01 seconds or other values depending on the desired simulation speed and accuracy. This defines the simulation's resolution and determines how accurately phasor behavior is captured over time.

Number of cores

This setting determines the number of CPU cores used to parallelize computation during the simulation. The system automatically assigns each simulation thread to a distinct CPU core. When the number of cores is set to 1, no parallelization occurs.

Parallelization is only supported on OPAL-RT Linux

License keys required:

  • EPHASOR_NUM_CORES

  • EPHASOR_PARALLELIZE_GENUNITS

Number of partitions

This field is reserved for future use to enhance parallelization performance gains. At this time, the only possible value for this field is 1.

License keys required:

  • EPHASOR_PARTITION_POWERSYSTEM

  • EPHASOR_PARALLELIZE_GENUNITS

Timeout for sync client

This advanced simulation setting allows more time for signal acquisition synchronization when initializing the simulation. It may be necessary to increase this value for large models.

This is an expert setting; it is recommended to leave the setting to the default value.

Load flow settings

 

Calculate load flow

Enabling load flow initializes bus voltages correctly, allowing the dynamic simulation to start with the network in a steady-state condition.

Calculate load flow: This step is optional and can be disabled if the load flow has already been calculated and integrated into the import source files.

License key required:

  • EPHASOR_FEATURE_POWERFLOW

Max iterations

Max Iterations: Set the maximum number of iterations for the load flow solver to converge. Typically set to 100, but the load flow usually converges in less than 5-10 steps for stable networks.

Tolerance

Tolerance: This defines the convergence tolerance of the load flow solver. For high accuracy, a value like 1.0000e-8 is appropriate, ensuring that the mismatch, on the per unit value of the active and reactive power, between successive iterations is small enough to consider the solution converged.

Initialization mo

When setting the ePHASORSIM simulation in HYPERSIM, the Initialization Mode determines how the load flow starts. Since the Newton Raphson method used for this calculation is very sensitive to the starting point, this setting can make the load flow converge on a difficult network.

Here’s a breakdown of the three initialization modes available:

1. From Input Data

  • Description: This mode uses the pre-defined operational conditions provided in the input file for bus voltages. The simulation starts with these values, assuming that they are already in a steady state.

  • Use Case: Ideal when the input includes load flow results, makes it easy for the Newton Raphson algorithm to converge faster

  • Example: When using PowerFactory input, if load flow was performed before exporting the xml file, the load flow results get included in the xml input file.


2. Flat Start

  • Description: In this mode, all voltages are initialized to a flat, predefined condition. Typically, this means that all the PQ busses are set to “Vmag=1, Vang=0”. for all other busses (PV and Slack) voltage angle is set to 0 and voltage magnitude is left untouched.

  • Use Case: This is the default mode used when there is no data about the typical values of the bus voltages

  • Example: When designing a network using Excel input information about typical values of the bus voltage magnitude and angle are not available.


3. Smart Start

  • Description: In this mode, ePHASORSIM start from Flat Start and runs a single iteration of linear load flow to get some initial values for Newton Raphson to work with. This will increase the possibility of convergence in very large or unstable networks.

  • Use Case:

    • When the input data is incomplete or does not converge due to differences caused by incomplete import

    • When the load flow doesn’t converge using Flat Start or takes too many steps before converging

  • Example:

    • A network from a third-party software was imported but there are some components that are not supported and were removed in ePHASORSIM. This means that if running the load flow is required, it would converge to a different point. In some cases, using input data will cause divergence in Newton Raphson due to the difference. In such cases, Smart Start helps Newton Raphson to start from a close point and converge to a valid solution.

    • A very large network was designed in an using the Excel format file and information about the bus voltages is not available. If the network is big enough, the Newton Raphson algorithm will struggle starting from Flat Start so by choosing Smart Start the algorithm will have a better chance of converging.

Controls

 

Create

Once all settings have been configured:

Create: Click the "Create" button to set up the simulation environment with the specified configurations.

Once the “Create” button has been clicked and the operation succeeded, modifications of the import source files are not possible. For modifications on the import source files to be reflected, it is required to create a new block and reconnect any existing connection.

See Current Limitations.

Revert

Undo all user inputs made in the current session.

Cancel

Closes the window effectively cancelling the configuration of the simulation environment.

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter