The Heartbeat of the Grid
Electrical grids operate at a precise frequency — 50 Hz in most of the world, 60 Hz in the Americas and parts of Asia. This frequency is not set by electronics but by the physical rotation speed of massive generators. When you turn on a light, you add load to the grid, and every generator on the network slows down imperceptibly. Grid frequency is the real-time heartbeat that reveals whether supply matches demand.
The Balancing Act
Grid operators must balance supply and demand continuously, second by second. Too much generation and frequency rises. Too much demand and frequency falls. Deviations of just 1% (0.5 Hz on a 50 Hz system) can trigger protective relays that disconnect generators or shed loads. Major imbalances — like a large power plant tripping offline — can cascade into widespread blackouts if not corrected within seconds.
The Inertia Challenge
Traditional power plants (coal, gas, nuclear, hydro) use massive spinning generators that store kinetic energy. This rotational inertia acts as a buffer, slowing frequency changes and giving operators time to respond. Solar panels and battery inverters have zero rotational inertia. As renewable energy replaces conventional generation, grids become more volatile — frequency swings happen faster, requiring new fast-response technologies like grid-scale batteries and synthetic inertia from wind turbines.
Simulating Grid Dynamics
This simulation models the swing equation that governs grid frequency. Adjust supply and demand to create imbalances and watch frequency respond. Lower the inertia constant to simulate high-renewable grids and observe how the rate of change of frequency (RoCoF) increases. The visualization shows the real-time frequency trace, imbalance indicators, and the critical thresholds where protection systems activate.