Rotor-Angle Stability and the Swing Equation
Every synchronous generator on a grid turns in lock-step with all the others. A fault near a power station cuts the electrical power the generator can send out, but the turbine keeps pushing: the rotor speeds up and its angle advances. When the fault is cleared, the electrical power returns and brakes the rotor. Whether it stops advancing and swings back, or slips a pole and falls out of step, is transient (rotor-angle) stability. This lesson derives the swing equation, linearises it to find the natural swing frequency, and integrates it numerically for plant P1 with different fault-clearing times.
Safety: generators, step-up transformers and transmission faults are studied here by calculation and simulation only. The bench analogue is a low-voltage RLC circuit.
The swing equation
Newton's law for the rotor: the accelerating torque is the difference between the mechanical (turbine) torque and the electrical (air-gap) torque. Written in per unit with the inertia constant , the kinetic energy stored at synchronous speed divided by the machine rating (typically to for thermal units, to for hydro),
where is the rotor angle in electrical radians relative to a synchronously rotating reference (the infinite bus), , and are in per unit on the machine base, and lumps damping (damper windings, load). As two first-order equations, ready for a numerical solver:
For a machine behind its transient reactance connected through a reactance to an infinite bus, the classical model holds the transient EMF constant during the first swing, and (The Power-Angle Curve), with the total reactance between and the infinite bus. A fault and its clearing change , and so change .
Plant P1
All reactances are in per unit on ; ; resistances and damping are neglected.
Worked example: the pre-fault operating point
Given: plant P1 delivers with its terminal voltage held at ; transformer plus two parallel lines give from the terminals to the infinite bus.
Find: , the initial angle , the power-angle amplitudes before the fault, during it and after line 2 is tripped, and the natural swing frequency.
Solve:
Linearising around : with the synchronising power coefficient , so
Check: the pre-fault angle is well below , so the machine sits on the stable side of its curve. Local generator-against-grid swings of to are typical; inter-area oscillations between groups of machines are slower, to .
In Python: integrating the swing for several clearing times
import numpy as np
from scipy.integrate import solve_ivp
import matplotlib.pyplot as plt
H, Pm, ws = 5.0, 0.8, 2 * np.pi * 50
Vt = np.exp(1j * np.arcsin(Pm * 0.30)) # terminal voltage 1.0 pu, 0.30 pu to the infinite bus
I = (Vt - 1) / 0.30j
E = Vt + 0.30j * I
Ep, d0 = abs(E), np.angle(E)
P_pre, P_fault, P_post = Ep / 0.60, 0.0, Ep / 0.80
print(f"E' = {Ep:.4f} pu at {np.degrees(d0):.2f} deg; Pmax pre {P_pre:.3f}, post {P_post:.3f}")
def swing(t, x, Pmax):
delta, dw = x
return [dw, ws / (2 * H) * (Pm - Pmax * np.sin(delta))]
def simulate(tc, T=2.0):
opts = dict(max_step=1e-3, rtol=1e-9, atol=1e-9)
a = solve_ivp(swing, [0, tc], [d0, 0.0], args=(P_fault,), **opts)
b = solve_ivp(swing, [tc, T], a.y[:, -1], args=(P_post,), **opts)
t = np.r_[a.t, b.t]; d = np.degrees(np.r_[a.y[0], b.y[0]])
return t, d
fig, ax = plt.subplots(figsize=(6, 3.5))
for tc in (0.10, 0.20, 0.25):
t, d = simulate(tc)
stable = d.max() < 180
print(f"clearing at {tc:.2f} s: delta at clearing {np.interp(tc, t, d):6.2f} deg, "
f"max {min(d.max(), 999):6.1f} deg ->", "stable" if stable else "loses synchronism")
ax.plot(t, np.clip(d, None, 360), label=f"tc = {tc:.2f} s")
ax.set_xlabel("t (s)"); ax.set_ylabel("rotor angle (deg)"); ax.set_ylim(-60, 360)
ax.grid(alpha=0.3); ax.legend(); fig.tight_layout()
plt.show()E' = 1.0568 pu at 27.01 deg; Pmax pre 1.761, post 1.321
clearing at 0.10 s: delta at clearing 34.21 deg, max 64.5 deg -> stable
clearing at 0.20 s: delta at clearing 55.81 deg, max 105.6 deg -> stable
clearing at 0.25 s: delta at clearing 72.01 deg, max 999.0 deg -> loses synchronism
While the fault is on, and the rotor accelerates freely: , which is at and at . Cleared at , the post-fault network cannot absorb the kinetic energy gained, and the angle runs away (pole slipping): the generator's out-of-step protection must trip it. The limit lies between and ; The Equal-Area Criterion finds it exactly. Without damping, the stable cases swing forever; real machines settle within a few seconds through damper windings and the power-system stabiliser.
Interactive: the swing as an RLC circuit
Linearised, with is a parallel RLC driven by a current step. Node voltage speed deviation ; capacitor (inertia); inductor (its current is the synchronising power ); resistor . A step of at : the inductor current (the extra electrical power) overshoots and rings around at about (the damped frequency at , ; undamped ). Slide RD down to add damping; at the swing is overdamped.
Guided lab: the analogue at audio frequency
Hand calculation. Scale the analogue to the bench: and resonate at ; for the same damping ratio as in the lab () use .
Simulation. Put these values in the netlist lab with a square-wave current source (PULSE) and read the ring frequency and the decay.
What you would measure. Drive the parallel RLC from a function generator through a resistor (an approximate current source) with a , square wave, and scope the node voltage: a ringing transient at about after each edge, decaying by . Expect the frequency within the inductor tolerance; the decay will be faster than predicted because the inductor's winding resistance adds damping, just as damper windings do in a real machine.
Hazards and safe setup. Signal levels only; the inductor's flyback at the square-wave edges is a few volts through the source resistor.
Pitfalls
- Degrees and radians. The swing equation integrates in electrical radians; is per radian.
- Mixing bases. must be on the same MVA base as and ; on a system base, .
- Classical model limits. Constant holds for the first swing (about one second). Later swings need flux decay, the excitation system and governors.
- Mechanical versus electrical angle. For a machine with poles, .
Practice
- A unit has on its own rating. What is on a base?
- During a bolted fault with , how far does P1's angle advance in the first ?
- If the post-fault were (both lines kept), would clearing at be stable? Reason qualitatively.
Answer
- .
- .
- More likely: a larger post-fault curve offers more decelerating area. (For the fault on the HV bus with both lines restored it would be stable; Equal-Area gives the numbers.)
Test yourself
The inertia constant H is…
- the moment of inertia in
- the stored kinetic energy at synchronous speed divided by the machine rating, in seconds
- the damping coefficient
- the time constant of the exciter
During a bolted three-phase fault at the generator's HV bus, the electrical power transferred is…
- unchanged
- zero, so the rotor accelerates
- doubled
- negative
With s, pu/rad at 50 Hz, the undamped swing frequency is about…
- 0.11 Hz
- 1.1 Hz
- 11 Hz
- 50 Hz
Clearing a fault later than the critical clearing time leads to…
- a smaller first swing
- loss of synchronism (pole slipping)
- higher fault current
- a lower frequency everywhere