Stability analysis with ANDES

Two dynamic studies run on ANDES: transient stability simulates the response to a fault or line trip over time, and eigenvalue analysis shows how well oscillation modes are damped.

Transient Stability (ANDES Time-Domain Simulation)

ANDES

Transient Stability shows how the network responds over time to a bus fault or line trip: rotor swings, voltage recovery, and whether machines stay in synchronism. It also simulates the reactive current of STATCOMs in a voltage dip and the UPS of data centres, and says whether a data centre rides through. Standalone overview: Transient stability guide.

Where to find it

Simulate → Transient Stability (ANDES). Requires a subscription. You need at least one dynamic device: a Generator with dynamics, a Static Generator with a plant model, a STATCOM (SSC), or a data-centre load (a Load with the computational load model). An External Grid with ordinary loads alone is not enough.

When to use

  • Synchronism after a fault (speed and angle swings)
  • Comparing clearing times and fault locations
  • Voltage recovery after a clear or line trip
  • Fault ride-through of a data centre: does its UPS drop the IT load from the grid, and does it come back (details)
  • How much a STATCOM holds the voltage up in a dip, with its k-factor and current limit

How to run

  1. Place a synchronous Generator and fill the Dynamics tab (defaults are applied if fields are empty).
  2. Click Simulate → Transient Stability (ANDES).
  3. Set end time, optional fault bus and clear times, and optional line outage.
  4. Run and inspect generator speed/angle and bus voltage vs time.
How Electrisim maps the diagram to ANDES
  1. Electrisim serialises the diagram (buses, lines, transformers, loads, generators, STATCOMs) to the backend.
  2. The backend builds an ANDES system: static models (Bus, Line, PQ, PV/Slack) plus dynamic models (GENROU or GENCLS, exciters, governors, REGCA1 + REECA1 for converters and STATCOMs, ZIP for data-centre loads).
  3. Each External Grid becomes a stiff source behind its short-circuit impedance, so a fault on or near it lowers the voltage. It has large inertia and damping that stands for the primary frequency response of the external system: after a power change its frequency settles back within about half a second instead of drifting.
  4. Missing Dynamics-tab fields receive textbook defaults (reported in the result).
  5. Optional disturbances from the study dialog: bus fault (apply/clear times) and/or a line outage at a given time.
  6. PFlow.run() establishes the operating point; TDS.run() integrates to tf. Before every time step a callback applies the UPS logic and the constant power of the data-centre loads.
  7. When a fault clears, the pre-fault bus voltages and angles are restored as the starting point of the solver, so buses behind the fault recover instead of staying at zero voltage.
  8. Results return as time series: generator ω, δ, bus voltages, and an approximate system frequency from mean ω.

Input Parameters

Parameter Description Type Typical values Default
Frequency System base frequency number 50 or 60 Hz 50
System Base (MVA) ANDES system MVA base for per-unit conversion number 100 100
tf Simulation end time (s) number 5–20 10
Fault Bus Bus where a three-phase fault is applied (optional) select Any bus on the diagram (none)
fault_tf / fault_tc Fault apply and clear times (s) number 1.0 / 1.1 1.0 / 1.1
fault_xf / fault_rf Fault reactance and resistance in p.u. on the system base. 0.0001 is a bolted fault; a larger reactance leaves part of the voltage, like a fault further away in the grid. number 0.0001–0.5 0.0001 / 0
Line Outage Optional line to trip via ANDES Toggle select Any AC line (none)
toggle_t Line outage time (s) number 2.0 2.0
POI bus Bus whose voltage is checked against the ride-through curve of the data-centre load. With (none), the bus of the first data-centre load is used. select The point of interconnection First bus

Results

  • Multi-series charts: generator speed ω (pu), rotor angle δ (rad), bus voltage (pu), mean frequency (Hz)
  • With data-centre loads: the ride-through verdict of each data centre (above the charts), what its UPS did, and a chart of the power it draws from the grid
  • With STATCOMs: reactive power before and after the disturbance, and charts of the reactive power (Mvar) and reactive current (p.u. of its rating)
  • Summary: tf, point count, generator/bus counts, event settings, POI voltage against the ride-through curve and the data-centre ride-through verdict
  • List of applied dynamic defaults and mapping warnings (e.g. skipped DC lines, static generators)
  • CSV export of the time series

Requirements & Limitations (MVP)

  • At least one dynamic device (Generator, Static Generator with a plant model, STATCOM or data-centre load); mark one generator as slack or include an External Grid
  • Static generators are not modelled as SynGen in this MVP (warned in results)
  • RMS simulation, not EMT: the UPS and the STATCOM act once per time step (1/30 s unless you set the time step)
  • Three-winding transformers and DC lines are skipped
  • Full ANDES model catalogue (100+ models) is not exposed — GENROU/GENCLS, EXDC2/SEXS, TGOV1 only

Technical References

Based on: ANDES PFlow + TDS. Demo model: transient_stability_two_machine_demo.py (File → Import).

Related: Eigenvalue Analysis · Generator Dynamics tab · Motor Starting (dynamic) · Grid-Forming STATCOM Sizing (fault ride-through duty) · Grid-Forming STATCOM EMT Test

Data centres and STATCOMs in a fault (ride-through)

A data centre draws most of its power through UPS rectifiers. When the voltage dips, the UPS moves the IT load to its battery, so the grid suddenly loses hundreds of MW, and the load comes back only seconds later. Grid operators increasingly ask large loads to ride through: to stay connected and keep drawing their power while the voltage stays above a ride-through curve. Transient Stability simulates this and says whether the data centre rides through. A STATCOM next to the data centre can hold the voltage up with reactive current.

Model the data centre

Open the Load → Computational load tab and tick Enable computational load model. In Transient Stability the Load is then split into two parts:

  • IT (IT / constant-P share, default 85 %): constant power behind the UPS.
  • Cooling (the rest): Constant Impedance and Constant Current percentages from the Load Flow tab, constant power for the remainder.

Constant power becomes constant current below 0.7 p.u. (as the PQBRAK setting of PSS/E), so the solver stays stable at zero voltage. The load flow is unchanged: it uses the whole Load as set on the Load Flow tab.

UPS behaviour

State When IT power drawn from the grid
On the grid Normal operation All of it
On battery The bus voltage falls below the UPS transfer voltage (default 0.85 p.u.) None
Walk-in The voltage has stayed above the UPS return voltage (default 0.9 p.u.) for the return delay (default 1 s) Ramps from zero to all of it over the walk-in time (default 5 s)
IT load lost The UPS has been on battery longer than its hold-up time (default 300 s for a new Load) None, for the rest of the run

A hold-up time of 0 means no UPS: the IT power supplies bridge one cycle (20 ms) below the transfer voltage, then the servers restart and the IT load is lost.

Ride-through curve and verdict

The Voltage ride-through curve of the Load lists time_s, v_min_pu, with the time counted from the start of the disturbance (the fault, line outage or generator trip). Two lines at the same time make a step; at that instant the lower value applies, so “0 p.u. for 150 ms” is written as:

0,0
0.15,0
0.15,0.7
2,0.85
3,0.9

While the voltage at the POI bus stays on or above the curve, the facility must ride through: stay connected, and have its power back at 90 % of the value before the disturbance within Power back within seconds (default 1 s) after the voltage has recovered. The voltage counts as recovered when it is back at the last value of the curve (0.9 p.u. without a curve). Before the disturbance and after the last point the last value applies. In a close-in fault no load can draw power at zero voltage, so a short UPS transfer is not a failure in itself: what counts is how quickly the power comes back.

Verdict Meaning
PASS The voltage stays inside the curve, and the UPS either never left the grid or the power is back within the allowed time after the voltage recovered.
FAIL (power back too late) The voltage stays inside the curve, the UPS moved the IT load to its battery and the power came back later than allowed (return delay plus walk-in). The grid sees a load loss that lasts longer than the disturbance.
FAIL (IT load lost) The voltage stays inside the curve, but the UPS ran out of hold-up time, or there is no UPS and the servers restarted.
Outside the curve The voltage falls below the curve, where the facility may disconnect. The results still show what the UPS did.

For each data centre the results also give the power before the disturbance and the lowest power, the load dropped, the time on battery and with the IT load off the grid, when the voltage recovered, the time until the power is back to 90 % after it (and the time allowed), and the UPS events with their times and voltages.

STATCOM in the time domain

Each STATCOM (SSC) with a Q rating is a converter without active power (ANDES REGCA1 + REECA1 with reactive-current priority). Set it on the Dynamics (ANDES) tab of the STATCOM:

  • Regulate the bus voltage: a PI controller (proportional and integral gain on the STATCOM rating, defaults 20 and 100) holds the voltage of the load flow. Unticked, the STATCOM holds its load-flow reactive power.
  • k-factor and voltage deadband: in a dip the STATCOM adds k·(ΔU − deadband) of reactive current (the continuous characteristic of ANDES).
  • Current limit: the largest current of the converter in a disturbance, on its rating.

Its rating is the larger of the two Q ratings. A STATCOM whose bus voltage is already held by a generator or the grid is left out, with a warning.

Example: the data centre fault ride-through template

File → New → Tutorials → Data centre fault ride-through (STATCOM and UPS): a 300 MW data centre (85 % IT behind a UPS) on a 34.5 kV campus bus, fed from a 138 kV utility pocket (8000 MVA) through a 400 MVA transformer, with a ±150 Mvar STATCOM on the campus bus and the curve above. Run Transient Stability at 60 Hz with the POI bus POI_138 and a fault from 1.0 to 1.15 s:

Case What happens Verdict
Fault on Utility_138, xf = 0.1 p.u., with the STATCOM The campus voltage starts at 1.0 p.u. and dips to about 0.88 p.u., above the 0.85 p.u. transfer voltage: the UPS stays on the grid. PASS
The same fault, STATCOM out of service The campus voltage starts at 0.97 p.u. and dips to 0.84 p.u.: the UPS moves about 257 MW to its battery and the power is back about 5.5 s after the voltage. FAIL (power back too late)
Bolted fault on POI_138, default UPS (return delay 1 s, walk-in 5 s) Zero voltage for 150 ms is inside the curve; every UPS transfers, and the 300 MW come back about 5.5 s after the voltage. FAIL (power back too late)
The same fault, UPS return delay 0.2 s and walk-in 0.5 s The power is back 0.7 s after the voltage. PASS

Limits. RMS simulation, not EMT. The UPS switches once per time step. Cooling is a static ZIP load, so induction-motor stalling is not modelled. The UPS settings are your assumptions: use the data of the UPS supplier and the ride-through curve the grid operator gives.

Eigenvalue Analysis (ANDES Small-Signal Stability)

ANDES

Eigenvalue analysis linearises the system around the current operating point and plots modes in the complex plane: damping and oscillation frequency. Negative real parts are stable; positive real parts grow.

Where to find it

Simulate → Eigenvalue Analysis (ANDES). Same requirement as Transient Stability: at least one Generator with dynamics.

When to use

  • Small-signal stability at the current dispatch
  • Poorly damped local or inter-area modes
  • Effect of inertia, droop, or exciter gains (Generator Dynamics tab)

How to run

  1. Use the same dynamic network as for transient stability (no fault is required).
  2. Click Simulate → Eigenvalue Analysis (ANDES).
  3. Run and inspect the s-plane plot, damping ratios, and optional participation factors.
Solver steps
  1. Build the ANDES system as for time-domain simulation (no fault or line-trip disturbances).
  2. Run power flow, then the eigenvalue study.
  3. Return all eigenvalues plus the least-damped oscillatory modes (frequency and damping ratio).
  4. Optionally include participation factors for the top modes.

Input Parameters

Parameter Description Default
Frequency / System Base Same as TDS (Hz / MVA) 50 / 100
n_modes Number of least-damped oscillatory modes to highlight 10

Results

  • Stability verdict: stable, marginally_stable, or unstable
  • Counts: positive / zero / negative eigenvalues
  • s-plane scatter plot and table of σ, ω, f (Hz), damping ratio ζ
  • Participation factors for highlighted modes (when available)

Technical References

Based on: ANDES eigenvalue tutorial.

Related: Transient Stability · Generator Dynamics tab

Last updated: November 2026

Electrisim on YouTube · Frontend on GitHub