TExcelTAD
Home › Power Systems: Three-Phase, Generation, Grids & Protection › Rotor-Angle Stability and the Swing Equation

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 HH, the kinetic energy stored at synchronous speed divided by the machine rating (typically 22 to 9 s9\ \text{s} for thermal units, 22 to 4 s4\ \text{s} for hydro),

2Hωs d2δdt2=Pm−Pe(δ)−D dδdt\frac{2H}{\omega_s}\,\frac{d^2\delta}{dt^2} = P_m - P_e(\delta) - D\,\frac{d\delta}{dt}

where δ\delta is the rotor angle in electrical radians relative to a synchronously rotating reference (the infinite bus), ωs=2π⋅50 rad/s\omega_s = 2\pi \cdot 50\ \text{rad/s}, PmP_m and PeP_e are in per unit on the machine base, and DD lumps damping (damper windings, load). As two first-order equations, ready for a numerical solver:

dδdt=Δω,d Δωdt=ωs2H(Pm−Pmax⁡sin⁡δ−D Δω)\frac{d\delta}{dt} = \Delta\omega, \qquad \frac{d\,\Delta\omega}{dt} = \frac{\omega_s}{2H}\left(P_m - P_{\max}\sin\delta - D\,\Delta\omega\right)

For a machine behind its transient reactance Xd′X'_d connected through a reactance to an infinite bus, the classical model holds the transient EMF E′E' constant during the first swing, and Pe=E′VXsin⁡δP_e = \frac{E' V}{X}\sin\delta (The Power-Angle Curve), with XX the total reactance between E′E' and the infinite bus. A fault and its clearing change XX, and so change Pmax⁡P_{\max}.

Plant P1

G1X'd = 0.30 T1 x = 0.10 HV bus line 1, x = 0.40line 2, x = 0.40 infinite busV = 1.0 pu F (3-phase, on line 2 at the HV bus)

All reactances are in per unit on 100 MVA100\ \text{MVA}; H=5 sH = 5\ \text{s}; resistances and damping are neglected.

Worked example: the pre-fault operating point

Given: plant P1 delivers P=0.8 puP = 0.8\ \text{pu} with its terminal voltage held at 1.0 pu1.0\ \text{pu}; transformer plus two parallel lines give 0.10+0.40/2=0.30 pu0.10 + 0.40/2 = 0.30\ \text{pu} from the terminals to the infinite bus.

Find: E′E', the initial angle δ0\delta_0, the power-angle amplitudes before the fault, during it and after line 2 is tripped, and the natural swing frequency.

Solve:

sin⁡θt=0.8⋅0.301.0⋅1.0⇒θt=13.89∘,I=1∠13.89∘−1∠0∘j0.30=0.806∠6.94∘ puE′=Vt+jXd′I=1.057∠27.01∘ puPmax⁡,1=1.057⋅1.00.30+0.30=1.761,Pmax⁡,2=0 (fault on the HV bus),Pmax⁡,3=1.0570.30+0.10+0.40=1.321\begin{aligned} \sin\theta_t &= \frac{0.8 \cdot 0.30}{1.0 \cdot 1.0} \Rightarrow \theta_t = 13.89^\circ, \qquad \mathbf{I} = \frac{1\angle 13.89^\circ - 1\angle 0^\circ}{j0.30} = 0.806\angle 6.94^\circ\ \text{pu} \\ \mathbf{E}' &= \mathbf{V}_t + jX'_d\mathbf{I} = 1.057\angle 27.01^\circ\ \text{pu} \\ P_{\max,1} &= \frac{1.057 \cdot 1.0}{0.30 + 0.30} = 1.761, \quad P_{\max,2} = 0\ (\text{fault on the HV bus}), \quad P_{\max,3} = \frac{1.057}{0.30 + 0.10 + 0.40} = 1.321 \end{aligned}

Linearising around δ0\delta_0: Pe≈Pm+Ps ΔδP_e \approx P_m + P_s\,\Delta\delta with the synchronising power coefficient Ps=Pmax⁡,1cos⁡δ0=1.569 pu/radP_s = P_{\max,1}\cos\delta_0 = 1.569\ \text{pu/rad}, so

ωn=ωsPs2H=314.16⋅1.56910=7.02 rad/s,fn=1.12 Hz\omega_n = \sqrt{\frac{\omega_s P_s}{2H}} = \sqrt{\frac{314.16 \cdot 1.569}{10}} = 7.02\ \text{rad/s}, \qquad f_n = 1.12\ \text{Hz}

Check: the pre-fault angle 27∘27^\circ is well below 90∘90^\circ, so the machine sits on the stable side of its curve. Local generator-against-grid swings of 11 to 2 Hz2\ \text{Hz} are typical; inter-area oscillations between groups of machines are slower, 0.10.1 to 0.8 Hz0.8\ \text{Hz}.

In Python: integrating the swing for several clearing times

python · try it yourself
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, Pe=0P_e = 0 and the rotor accelerates freely: δ=δ0+ωsPm4Ht2\delta = \delta_0 + \frac{\omega_s P_m}{4H}t^2, which is 34.2∘34.2^\circ at 0.1 s0.1\ \text{s} and 55.8∘55.8^\circ at 0.2 s0.2\ \text{s}. Cleared at 0.25 s0.25\ \text{s}, 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 0.200.20 and 0.25 s0.25\ \text{s}; 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, M Δδ¨+D Δδ˙+Ps Δδ=ΔPmM\,\Delta\ddot\delta + D\,\Delta\dot\delta + P_s\,\Delta\delta = \Delta P_m with M=2H/ωsM = 2H/\omega_s is a parallel RLC driven by a current step. Node voltage == speed deviation Δω\Delta\omega; capacitor C=M=31.83 mC = M = 31.83\ \text{m} (inertia); inductor L=1/Ps=0.6372L = 1/P_s = 0.6372 (its current is the synchronising power PsΔδP_s\Delta\delta); resistor R=1/DR = 1/D. A step of ΔPm=0.1 pu\Delta P_m = 0.1\ \text{pu} at t=0t = 0: the inductor current (the extra electrical power) overshoots and rings around 0.10.1 at about 1.09 Hz1.09\ \text{Hz} (the damped frequency at R=10R = 10, ζ=0.224\zeta = 0.224; undamped 1.12 Hz1.12\ \text{Hz}). Slide RD down to add damping; at R=2R = 2 the swing is overdamped.

0.00.2012345t (s)V0 A100 mAI (A)V(w)I(LP)at t = 5.000 sV(w)59.8 uVI(I1)100 mAI(CM)-39.6 uAI(LP)100 mAI(RD)5.98 uA

Guided lab: the analogue at audio frequency

Hand calculation. Scale the analogue to the bench: C=1 μFC = 1\ \mu\text{F} and L=10 mHL = 10\ \text{mH} resonate at f=1/(2πLC)=1.59 kHzf = 1/(2\pi\sqrt{LC}) = 1.59\ \text{kHz}; for the same damping ratio as R=10R = 10 in the lab (ζ=12RL/C=0.224\zeta = \frac{1}{2R}\sqrt{L/C} = 0.224) use R=12ζL/C=223 ΩR = \frac{1}{2\zeta}\sqrt{L/C} = 223\ \Omega.

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 10 kΩ10\ \text{k}\Omega resistor (an approximate current source) with a 50 Hz50\ \text{Hz}, 5 V5\ \text{V} square wave, and scope the node voltage: a ringing transient at about 1.6 kHz1.6\ \text{kHz} after each edge, decaying by e−ζωnte^{-\zeta\omega_n t}. Expect the frequency within the ±10 %\pm 10\ \% 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 10 kΩ10\ \text{k}\Omega source resistor.

Pitfalls

  • Degrees and radians. The swing equation integrates in electrical radians; PsP_s is per radian.
  • Mixing bases. HH must be on the same MVA base as PmP_m and PeP_e; on a 100 MVA100\ \text{MVA} system base, Hsys=HmachSmach/100H_\text{sys} = H_\text{mach} S_\text{mach}/100.
  • Classical model limits. Constant E′E' 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 pp poles, δel=(p/2) δmech\delta_\text{el} = (p/2)\,\delta_\text{mech}.

Practice

  1. A 500 MVA500\ \text{MVA} unit has H=4 sH = 4\ \text{s} on its own rating. What is HH on a 100 MVA100\ \text{MVA} base?
  2. During a bolted fault with Pe=0P_e = 0, how far does P1's angle advance in the first 50 ms50\ \text{ms}?
  3. If the post-fault Pmax⁡P_{\max} were 1.7611.761 (both lines kept), would clearing at 0.25 s0.25\ \text{s} be stable? Reason qualitatively.
Answer
  1. H=4⋅500/100=20 sH = 4 \cdot 500/100 = 20\ \text{s}.
  2. Δδ=ωsPm4Ht2=314.16⋅0.820⋅0.0025 rad=0.0314 rad=1.80∘\Delta\delta = \frac{\omega_s P_m}{4H}t^2 = \frac{314.16 \cdot 0.8}{20} \cdot 0.0025\ \text{rad} = 0.0314\ \text{rad} = 1.80^\circ.
  3. 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…

  1. the moment of inertia in kg⋅m2\text{kg} \cdot \text{m}^2
  2. the stored kinetic energy at synchronous speed divided by the machine rating, in seconds
  3. the damping coefficient
  4. the time constant of the exciter

During a bolted three-phase fault at the generator's HV bus, the electrical power transferred is…

  1. unchanged
  2. zero, so the rotor accelerates
  3. doubled
  4. negative

With H=5H = 5 s, Ps=1.57P_s = 1.57 pu/rad at 50 Hz, the undamped swing frequency is about…

  1. 0.11 Hz
  2. 1.1 Hz
  3. 11 Hz
  4. 50 Hz

Clearing a fault later than the critical clearing time leads to…

  1. a smaller first swing
  2. loss of synchronism (pole slipping)
  3. higher fault current
  4. a lower frequency everywhere