How it Works
The simulation integrates the swing equation in real time. When a load step occurs (click "Apply Load Step"), electrical demand P_elec suddenly increases. The inertia M initially keeps frequency from dropping instantly, but frequency falls at RoCoF = ΔP/(2M). Primary droop control quickly ramps up generator output (ΔP_gov = −Δf/R), arresting the fall. Secondary AGC then slowly restores frequency to exactly 50 Hz by integrating the error.
Renewable noise adds random power fluctuations to P_elec, simulating wind/solar intermittency. Reduce inertia M to see how modern low-inertia grids are harder to control. Increase AGC gain K_i for faster frequency restoration (but risk oscillation).
ΔP_gov = −Δf / R [droop control]
ΔP_AGC = K_i × ∫Δf dt [AGC integral]
RoCoF = ΔP / (2M) [initial rate]
Frequently Asked Questions
What is grid frequency and why must it be controlled?
Grid frequency (50 Hz in Europe/UK, 60 Hz in North America) must match the synchronous speed of generators. If generation and load are imbalanced, frequency deviates. Too low risks generator tripping and blackouts; too high risks equipment damage.
What is the swing equation?
The swing equation M·df/dt = P_mech − P_elec − D·Δf describes how generator rotor speed (and thus frequency) responds to power imbalances. M is the inertia constant, D is the damping coefficient.
What is primary frequency control (droop control)?
Primary control is the fast automatic response of generators to frequency deviations: ΔP = −Δf/R where R is the droop setting (~4-5%). This arrests the frequency fall within seconds but leaves a steady-state error from the nominal frequency.
What is secondary frequency control (AGC)?
Secondary control (AGC) is a slower integral action that restores frequency to exactly 50/60 Hz after a disturbance, eliminating the steady-state error left by droop. AGC acts over minutes and also controls area control error in interconnected systems.
What is grid inertia and why does it matter for renewables?
Grid inertia (M) is the stored kinetic energy of rotating generators. Higher inertia means slower frequency response, giving control systems more time to react. Renewable sources traditionally have no inertia, so increasing renewable penetration reduces system inertia and makes frequency harder to control.
What is the Rate of Change of Frequency (RoCoF)?
RoCoF = df/dt is the initial rate at which frequency changes after a generation loss event: RoCoF = ΔP/(2H). Low-inertia systems (high renewables) have high RoCoF, which can trigger protective relays and cascade into wider blackouts.
What is virtual inertia in smart grids?
Virtual inertia uses power electronics (battery storage, grid-forming inverters) to emulate the inertial response of synchronous generators. By rapidly adjusting power output proportional to df/dt, virtual synchronous generators help stabilize frequency in low-inertia grids.
What is Load Frequency Control (LFC)?
LFC is the coordinated primary and secondary control of generators to maintain frequency at the setpoint. It includes governor action (primary), AGC (secondary), and in some cases tertiary control (economic dispatch).
How do interconnected grids share frequency control?
In interconnected grids (like ENTSO-E), all generators share the frequency response. AGC for each control area monitors Area Control Error (ACE = Δf × B + ΔP_tie) to restore both frequency and tie-line power flows.
What are under-frequency load shedding schemes?
UFLS automatically disconnects blocks of load when frequency drops below preset thresholds (e.g., 49.0 Hz, 48.8 Hz). It is the last line of defense before a cascading blackout, arresting frequency decline by reducing load to match generation.