Frequency Stability: Inertia, RoCoF, Primary and Secondary Control
The grid has no storage tank for electrical energy. Every second, generation must equal load plus losses; any mismatch is taken from, or stored in, the kinetic energy of the spinning generators and motors, and that changes their speed, which is the frequency. Frequency is therefore the grid's common measure of balance. This lesson follows a sudden loss of generation through its stages: the inertial response that sets the rate of change of frequency (RoCoF), primary control (governor droop) that arrests the fall at the nadir, and secondary control that brings the frequency back to .
Safety: grid frequency control is studied here by calculation and simulation only. The bench analogue is a control-loop simulation.
The stages after a loss of generation
Inertia. At the instant a generator trips, governors have not moved; the lost power is supplied by all rotating masses slowing down together. With the system inertia constant (seconds, on the system base ) the aggregated swing equation gives
That is the RoCoF. Low inertia (many inverter-based wind and solar plants, which have no inherent rotating mass coupled to the grid) means a steeper fall, and RoCoF-based loss-of-mains relays may trip distributed generation, making things worse. Grid codes now require generators to ride through RoCoF of the order of (ENTSO-E RfG, Regulation (EU) 2016/631, leaves the exact value to national codes).
Load damping. Motor loads draw less power at lower frequency: about to of load per of frequency.
Primary control (frequency containment reserve, FCR). Each participating unit's governor follows a droop characteristic: a unit with droop (typically to ) raises its output by its full rating for a frequency fall of ( at ). Proportional control by all units shares the imbalance in proportion to rating, without communication, but leaves a steady deviation:
Secondary control (automatic frequency restoration reserve, aFRR; AGC). A central controller integrates the area control error and moves the setpoints of selected units until the frequency and the scheduled interchange with neighbours are restored, over minutes. Tertiary reserves (mFRR, RR) then replace the secondary reserve so that it is available again.
In the Continental European synchronous area the System Operation Guideline (Regulation (EU) 2017/1485, SOGL) and the ENTSO-E rules set the design: a reference incident of , FCR fully activated within at a deviation of , a maximum instantaneous frequency deviation of , a maximum steady-state deviation of , and a standard frequency range of . Under-frequency load shedding begins at .
Worked example: an island grid loses a unit
Given: an island system of , on that base, ; of capacity provides FCR with droop , so ; a unit trips ().
Find: the initial RoCoF and the quasi-steady frequency deviation after primary control.
Solve:
Check: is close to the kind of limit a large interconnection designs for ( in Continental Europe), but in an island a single unit is of the system, so the dynamics are far more violent than for in a area. The nadir, where the governors catch up with the falling frequency, is deeper than the steady deviation and needs a simulation.
In Python: a load-frequency model
The model (all per unit on ): aggregated swing ; governors and turbines as one lag of , ; secondary control (an isolated area, so ACE ).
import numpy as np
from scipy.integrate import solve_ivp
import matplotlib.pyplot as plt
f0, D, invR, T, dPL = 50.0, 1.0, 12.0, 1.5, 0.05
beta = invR + D
def simulate(H, Ki, t_end=300.0):
def rhs(t, x):
df, pm, pref = x
return [(pm - dPL - D * df) / (2 * H), (pref - invR * df - pm) / T, -Ki * beta * df]
s = solve_ivp(rhs, [0, t_end], [0.0, 0.0, 0.0], max_step=0.01, rtol=1e-8, atol=1e-10, dense_output=True)
t = np.linspace(0, t_end, 30001)
return t, s.sol(t)[0] * f0 * 1e3 # deviation in mHz
print(f"quasi-steady deviation with droop only: {-dPL / beta * f0 * 1e3:.0f} mHz")
fig, ax = plt.subplots(figsize=(6, 3.5))
for H in (4.0, 2.0):
print(f"H = {H:.0f} s: RoCoF at t = 0+ = {-dPL / (2 * H) * f0:.4f} Hz/s")
for Ki in (0.0, 0.02):
t, df = simulate(H, Ki)
k = df.argmin()
print(f" Ki = {Ki:.2f}: nadir {df[k]:6.0f} mHz at {t[k]:.2f} s, "
f"at 30 s {np.interp(30, t, df):5.0f} mHz, at 300 s {df[-1]:5.1f} mHz")
ax.plot(t, df, label=f"H = {H:.0f} s, Ki = {Ki}")
ax.set_xscale("symlog", linthresh=10); ax.set_xlabel("t (s)"); ax.set_ylabel("frequency deviation (mHz)")
ax.grid(alpha=0.3); ax.legend(fontsize=8); fig.tight_layout()
plt.show()quasi-steady deviation with droop only: -192 mHz
H = 4 s: RoCoF at t = 0+ = -0.3125 Hz/s
Ki = 0.00: nadir -327 mHz at 1.92 s, at 30 s -192 mHz, at 300 s -192.3 mHz
Ki = 0.02: nadir -325 mHz at 1.89 s, at 30 s -104 mHz, at 300 s -0.4 mHz
H = 2 s: RoCoF at t = 0+ = -0.6250 Hz/s
Ki = 0.00: nadir -425 mHz at 1.23 s, at 30 s -192 mHz, at 300 s -192.3 mHz
Ki = 0.02: nadir -423 mHz at 1.22 s, at 30 s -104 mHz, at 300 s -0.4 mHz
Three lessons in four lines. Halving the inertia doubles the RoCoF and deepens the nadir by about , though the steady state is unchanged. Secondary control does nothing for the nadir (it is far too slow) but removes the offset over minutes. Faster primary response, from batteries in a few hundred milliseconds or from synthetic (virtual) inertia and grid-forming inverters, is how low-inertia grids keep the nadir up (Power Electronics).
Interactive: droop as proportional control, restoration as integral
The PID lab is an analogue, not a power-system model: its plant stands for the system's inertia-and-load lag and the turbine lag, and its step is a setpoint change rather than a load step. The controller structure is the point. With and (proportional only, like droop) the lab shows a final value of , a steady-state error, overshoot and settling: a permanent offset, just like . Raise to and the error goes to , with overshoot and settling in : the integral action is secondary control. Push higher and the loop oscillates, which is why real AGC is deliberately slow (PID Structure, Steady-State Error).
Guided lab: frequency recordings
Hand calculation. For your own synchronous area, look up the reference incident and the FCR volume and estimate in MW/Hz ( is the Continental European design value), and the RoCoF for a trip at a system inertia of on ().
Simulation. Change dPL, H and invR in the Python cell (all on your area's base) and compare the nadir with the limit.
What an engineer would measure. Grid frequency is the one power-system quantity you may observe at home safely: many transmission operators publish live frequency, and frequency recorders sample it through a low-voltage, isolated sensor (or derive it from a phasor measurement unit). After a large unit trip, expect a dip of to in a large interconnection, a nadir after to and recovery over a few minutes. Frequency meters of this kind resolve about . Do not build a mains-connected frequency sensor yourself; use published data.
Hazards and safe setup. Desk study with published data only.
Pitfalls
- Confusing nadir and steady state. Droop sets the steady deviation; inertia and governor speed set the nadir.
- Per-unit bases for H. Aggregate inertia is ; inverter-based plant contributes zero unless it provides synthetic inertia.
- Secondary control too fast. Integrators acting on ACE must be much slower than primary control, or the two fight.
- Ignoring load shedding. If the nadir would cross , automatic under-frequency load shedding disconnects blocks of load; that is a defence plan, not normal control.
Practice
- A unit with and rating : by how much does its output rise for a fall at ?
- A area with loses . What is the initial RoCoF?
- With , what quasi-steady deviation follows that incident?
Answer
- , .
- .
- .
Test yourself
Immediately after a generator trips, the rate of change of frequency is set mainly by…
- governor droop
- system inertia
- secondary control
- tap changers
Why does primary (droop) control leave a steady frequency deviation?
- it is an integral controller
- it is a proportional controller: extra output needs a frequency error
- governors are too slow
- load damping is negative
Halving system inertia (same governors) mostly…
- doubles the steady-state deviation
- doubles the initial RoCoF and deepens the nadir
- removes the need for secondary control
- has no effect
The Continental European reference incident used to size FCR is…
- 300 MW
- 1000 MW
- 3000 MW
- 30 GW