Swing Curve Simulation for Power System Stability Analysis

It considers the rotor angle response and visualizes additional parameters such as rotor speed, electrical power, and generator terminal V

You are now following this Submission

The swing curve simulation is an essential tool for analyzing power system stability following a fault clearance. This MATLAB code provides a comprehensive simulation of the swing curve, allowing users to understand the behavior of synchronous generators in response to disturbances.
The code starts by defining the necessary parameters such as simulation time, fault clearance time, time constants, and time step. The swing curve is then computed based on the defined parameters using a mathematical model. The rotor angle response is calculated by considering different stages of fault clearance and sinusoidal variations.
In addition to the rotor angle, the code also calculates and visualizes other important parameters. These include the rotor speed, electrical power, and generator terminal voltage. The rotor speed represents the angular velocity of the generator's rotor, while the electrical power reflects the power generated by the machine. The generator terminal voltage is a crucial parameter that indicates the electrical potential difference at the output terminals of the generator.

Cite As

recent works (2026). Swing Curve Simulation for Power System Stability Analysis (https://se.mathworks.com/matlabcentral/fileexchange/131808-swing-curve-simulation-for-power-system-stability-analysis), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0