🔋 Renewable Energy Storage Lab: Shifting Solar and Wind with a Battery

2D interactive simulation · educational model
The science

Why storage. Solar and wind output follow the weather, demand follows people. At every minute the controller computes the net power Pnet = Psolar + Pwind − Pload. A surplus charges the store (limited by its power rating and free capacity) and the rest is curtailed; a deficit is covered from the store (limited by power and state of charge) and the remainder is imported from a backup source.

Store model. Round-trip efficiency ηrt is split evenly: ηc = ηd = √ηrt. Stored energy changes by dE = Pcηcdt when charging and dE = −Pd/ηddt when discharging, with 0 ≤ E ≤ Emax. Energy conservation over the day is Σ(gen + import) = Σ(load + curtailed + losses) + ΔE, and the simulator proves it to machine precision in the checks. Equivalent full cycles are throughput divided by capacity. The model is run for several days until the state of charge at midnight stops changing, so the curves show the repeating steady-state day.

Technologies. The presets use typical round-trip efficiencies: lithium-ion about 0.90 (fast, ~hours), pumped hydro about 0.78 (large, long duration), hydrogen about 0.35 (very long duration, poor efficiency). Values are illustrative.

Honest simplifications. Smooth synthetic daily profiles for solar, wind and a household-like load (not measured data); one repeating day, so no seasons or multi-day lulls; no battery ageing, temperature or depth-of-discharge limits; no grid tariffs or network constraints. The numbers show the mechanism, not a design for a real site.