Grid frequency deviation Δf(t) V2G fleet power P_v2g(t)

V2G Frequency Regulation: Grid Swing-Equation Response (2D)

This 2D companion trades the 3D version's per-car battery bookkeeping for the grid-wide dynamics V2G fleets are actually dispatched for: a linearized swing-equation ODE for grid frequency, coupled to a first-order-lag droop controller representing the aggregated EV fleet's discharge response, integrated live with RK4 so you can watch a sudden generation loss pull frequency down — and see how fleet droop gain, power capacity and response delay determine whether the nadir stays shallow or the grid dips dangerously low before recovering.