---
title: The swing equation
heading: Newton's second law for a generator rotor in per unit, the inertia constant, the power–angle curve as a restoring force, equilibrium and synchronizing power, the natural frequency of rotor oscillations, and the rotor's acceleration during a fault
eyebrow: S10 · Lesson 43 · The swing equation
xp: 50
---

::: hook
During a fault near a power plant, the generator's electrical output collapses while its turbine keeps pushing, so the rotor speeds up and its angle swings forward. When the fault clears, the electrical power returns and pulls the rotor back, and it oscillates about its old position a little over once a second, or keeps going and slips a pole. Which one happens is the question of transient stability, and the equation that answers it is just Newton's second law for a spinning mass, written in per unit.
:::

::: play
- The phase portrait of a generator on an infinite bus: rotor angle δ against speed deviation, following $\frac{2H}{\omega_s}\ddot\delta = P_m - P_{max}\sin\delta - D\dot\delta$ with H = 5 s.
- Near the stable equilibrium ($\sin\delta_0 = P_m/P_{max}$) trajectories circle it: rotor swings. Started with too much speed, a trajectory crosses the unstable equilibrium at $\pi - \delta_0$ and runs away: loss of synchronism.
- Raise $P_m$ or lower $P_{max}$ (a weaker connection) and the region of stable swings shrinks.
:::

```sim plot
view: flow
x: d = -1..4 rad
y: w = -15..15 rad/s
slider: P = 0.2..1.8 = 1 pu
slider: M = 1..3 = 2 pu
slider: D = 0..2 = 0.3
dx: w
dy: 37.7*(P - M*sin(d)) - D*w
start: 0.52, 9 | label: small swing
start: 0.52, 13 | label: large swing
heads: on
```

::: predict
## A generator with H = 5 s delivers 1 pu through a connection with $P_{max}$ = 2 pu. At what frequency does its rotor swing after a small disturbance?

- [ ] 60 Hz
- [ ] 8 Hz
- [x] About 1.3 Hz
- [ ] About 0.1 Hz

::: reveal
The equilibrium is at δ₀ = 30°, where the synchronizing power coefficient is $P_{max}\cos\delta_0$ = 1.73 pu/rad. Linearizing, $\omega_n = \sqrt{\omega_sP_s/2H} = \sqrt{377 \times 1.73/10}$ = 8.08 rad/s, or 1.29 Hz. Local electromechanical modes are typically 0.8 to 2 Hz; whole regions swinging against each other run 0.1 to 0.8 Hz.
:::
:::

::: nameit
## The swing equation

With electrical rotor angle δ (radians, relative to a synchronously rotating reference), synchronous speed $\omega_s = 2\pi f_0$, and powers in per unit on the machine's rating:

$$\frac{2H}{\omega_s}\frac{d^2\delta}{dt^2} = P_m - P_e - D\frac{d\delta}{dt}$$

The **inertia constant** H is the stored kinetic energy at rated speed divided by the rating: 2 to 9 s for turbine generators, about 1 s for hydro. Converting between bases, $H_\text{sys} = H_\text{mach}S_\text{mach}/S_\text{sys}$.

## The power–angle curve

For a machine with internal voltage E′ behind total reactance X to an infinite bus at V, $P_e = P_{max}\sin\delta$ with $P_{max} = E'V/X$. The **stable equilibrium** is at $\delta_0 = \sin^{-1}(P_m/P_{max})$; the **unstable** one at $\pi - \delta_0$.

## Small swings

Linearizing about $\delta_0$:

$$\frac{2H}{\omega_s}\Delta\ddot\delta + P_s\Delta\delta = 0, \qquad P_s = P_{max}\cos\delta_0, \qquad \omega_n = \sqrt{\frac{\omega_sP_s}{2H}}$$

$P_s$, the **synchronizing power coefficient**, is the restoring force. Damping comes from damper windings and loads, and is often supplemented by power system stabilizers on the exciter.

## During a fault

If $P_e$ falls to zero, the rotor accelerates at $\omega_s P_m/2H$ rad/s², so $\delta = \delta_0 + \frac{\omega_sP_m}{4H}t^2$ until the fault clears.
:::

::: example
## A 500 MVA unit with H = 5 s delivers 1 pu with $P_{max}$ = 2 pu. Find its stored energy, equilibrium and swing frequency.

::: solution
1. **Stored energy.**
   $$\begin{aligned} W &= 5 \times 500 \\ &= 2500\ \text{MJ} \end{aligned}$$
2. **Equilibrium.**
   $$\begin{aligned} \delta_0 &= \sin^{-1} 0.5 \\ &= 30° \end{aligned}$$
3. **Synchronizing power.**
   $$\begin{aligned} P_s &= 2\cos 30° \\ &= 1.73\ \text{pu/rad} \end{aligned}$$
4. **Swing frequency.** So $\omega_n$ = 8.08 rad/s, 1.29 Hz, a period of 0.78 s.

**Answer:** 2500 MJ stored, equilibrium at δ₀ = 30°, and a swing frequency of 8.08 rad/s (1.29 Hz).
:::
:::

::: example
## A fault at its terminals drops $P_e$ to zero. How far does the rotor advance in 0.1 s?

::: solution
1. **Acceleration.**
   $$\begin{aligned} \alpha &= 377 \times 1/10 \\ &= 37.7\ \text{rad/s}^2 \end{aligned}$$
   which is 2160°/s².
2. **Advance in 0.1 s.**
   $$\begin{aligned} \Delta\delta &= \tfrac{1}{2} \times 2160 \times 0.01 \\ &= 10.8° \end{aligned}$$
   from 30° to 40.8°.
3. **What comes next.** Lesson 44 asks whether it can swing back.

**Answer:** 10.8°, from 30° to 40.8°.
:::
:::

::: example
## A unit with H = 5 s has $P_\max$ = 2 pu. Compare its swing frequency at 1 pu and at 1.8 pu of output.

::: solution
1. **Synchronizing power at 1 pu.** Here δ₀ = 30° and
   $$\begin{aligned} P_s &= 2\cos30° \\ &= 1.73\ \text{pu/rad} \end{aligned}$$
2. **Swing frequency at 1 pu.**
   $$\begin{aligned} \omega_n &= \sqrt{377 \times 1.73/10} \\ &= 8.08\ \text{rad/s} \end{aligned}$$
   which is 1.29 Hz.
3. **At 1.8 pu.** Here δ₀ = 64.2° and $P_s$ = 0.87, giving 5.73 rad/s, 0.91 Hz.
4. **What it means.** Heavier loading weakens the synchronizing torque that pulls the rotor back, so swings get slower and the machine sits closer to the edge.

**Answer:** 1.29 Hz at 1 pu of output and 0.91 Hz at 1.8 pu.
:::
:::

::: check
given: P = 0.4 | 0.8 | 1.2; M = 1.5 | 2.5
answer: asin(P/M)*180/pi
unit: °
tolerance: 0.5%

## A generator delivers {P} pu with $P_{max}$ = {M} pu. What's its equilibrium rotor angle?

::: right
Right. $\sin^{-1}(P_m/P_{max})$ = {answer}°.
:::

::: misses
- [180 - asin(P/M)*180/pi] That's the unstable equilibrium.
- [any] Not yet. Solve $P_m = P_{max}\sin\delta$.
:::
:::

::: check
given: P = 0.4 | 0.8 | 1.2; M = 1.5 | 2.5
answer: M*cos(asin(P/M))
tolerance: 0.5%

## For the same machine, what's the synchronizing power coefficient?

::: right
Right. $P_{max}\cos\delta_0$ = {answer} pu per radian.
:::

::: misses
- [P] That's the power itself; the coefficient is the slope of the curve.
- [any] Not yet. $dP_e/d\delta$ at δ₀.
:::
:::

::: check
given: H = 3 | 5 | 8; S = 1 | 1.8 | 2.5
answer: sqrt(2*pi*60*S/(2*H))/(2*pi)
unit: Hz
tolerance: 0.5%

## A machine with H = {H} s has a synchronizing power coefficient of {S} pu/rad. At what frequency do its rotor swings oscillate?

::: right
Right. $\sqrt{\omega_sP_s/2H}/2\pi$ = {answer} Hz.
:::

::: misses
- [sqrt(2*pi*60*S/(2*H))] That's in rad/s.
- [any] Not yet. Linearize the swing equation.
:::
:::

::: check
given: H = 3 | 5 | 8; P = 0.5 | 1; t = 0.05 | 0.1 | 0.15
answer: 2*pi*60*P/(4*H)*t^2*180/pi
unit: °
tolerance: 0.5%

## A machine with H = {H} s delivers {P} pu when a fault drops its output to zero. How far does its angle advance in {t} s?

::: right
Right. $\frac{\omega_sP_m}{4H}t^2$ = {answer}°.
:::

::: misses
- [2*pi*60*P/(2*H)*t^2*180/pi] Integrate twice: $\frac{1}{2}at^2$.
- [any] Not yet. Constant acceleration $\omega_sP_m/2H$.
:::
:::

::: check
given: H = 2.5 | 4 | 6; S = 100 | 800
answer: H*S
unit: MJ
tolerance: 0.5%

## How much kinetic energy does a {S} MVA machine with H = {H} s store at rated speed?

::: right
Right. HS = {answer} MJ.
:::

::: misses
- [H*S/2] H is defined as stored energy over rating, so no extra factor.
- [any] Not yet. Invert the definition of H.
:::
:::

::: check
given: H = 3 | 6; S = 200 | 900; B = 100 | 1000
answer: H*S/B
unit: s
tolerance: 0.5%

## A {S} MVA machine has H = {H} s on its rating. What's H on a {B} MVA system base?

::: right
Right. $H\,S_\text{mach}/S_\text{sys}$ = {answer} s: the stored energy stays the same.
:::

::: misses
- [H*B/S] The base in the denominator is the new one.
- [any] Not yet. Stored energy is fixed; divide by the new base.
:::
:::

::: check
kind: parts
given: P = 0.6 | 1 | 1.5; M = 1.8 | 2.5; H = 3 | 6

## A unit with H = {H} s delivers {P} pu with $P_\max$ = {M} pu (60 Hz).

::: part
answer: M*cos(asin(P/M))
tolerance: 0.5%

### What is its synchronizing power coefficient, in pu per radian?

::: misses
- [any] $P_\max\cos\delta_0$.
:::
:::

::: part
answer: sqrt(377*M*cos(asin(P/M))/(2*H))/(2*pi)
unit: Hz
tolerance: 0.5%

### At what frequency does it swing?

::: misses
- [sqrt(377*M*cos(asin(P/M))/(2*H))] That's in rad/s; divide by 2π.
- [any] $\omega_n = \sqrt{\omega_sP_s/2H}$.
:::
:::
:::

::: check
kind: derivation
vars: P = 0.1..1.5, M = 1.6..4, H = 1..9

## A machine with inertia H delivers P with peak transfer M on a 60 Hz system.

::: step
answer: asin(P/M)

### What is its equilibrium angle, in radians?
:::

::: step
answer: M*cos(asin(P/M))

### What is $P_s$?
:::

::: step
answer: sqrt(377*M*cos(asin(P/M))/(2*H))

### What is its swing frequency, in rad/s?
:::

::: right
Right. $P_s = \sqrt{P_\max^2 - P^2}$: it shrinks to zero as the output approaches the limit.
:::
:::

::: explain
## Why does a generator's rotor swing back after a disturbance instead of settling directly at its new angle?

::: model
The swing equation is a mass on a spring: the rotor's inertia is the mass and the synchronizing power, the extra electrical output when the angle advances, is the spring. When a disturbance pushes the rotor ahead, the electrical power rises above the mechanical input and decelerates it, but by the time it's back at equilibrium it's moving too slowly, so it overshoots behind, where the electrical power is now below the input and speeds it up again. Only damping, from damper windings, loads and stabilizers, removes energy each cycle, and naturally that damping is weak, so swings ring for several seconds at around one hertz.
:::
:::

::: practice

::: check
given: P = 0.3 | 1; M = 1.2 | 3
answer: asin(P/M)*180/pi
unit: °
tolerance: 0.5%

## Equilibrium angle: {P} pu, $P_{max}$ = {M}?

::: misses
- [any] $\sin^{-1}(P/P_{max})$.
:::
:::

::: check
given: H = 2 | 7; S = 0.8 | 2
answer: sqrt(2*pi*60*S/(2*H))/(2*pi)
unit: Hz
tolerance: 0.5%

## Swing frequency: H = {H} s, $P_s$ = {S}?

::: misses
- [any] $\sqrt{\omega_sP_s/2H}/2\pi$.
:::
:::

::: check
given: H = 3 | 7; P = 0.6 | 1.1; t = 0.08 | 0.2
answer: 2*pi*60*P/(4*H)*t^2*180/pi
unit: °
tolerance: 0.5%

## Advance during a zero-output fault: H = {H}, P = {P}, t = {t} s?

::: misses
- [any] $\frac{\omega_sP_m}{4H}t^2$.
:::
:::
:::
