Updraft. Convective available potential energy (CAPE, J/kg) becomes upward motion: an ideal parcel reaches w = sqrt(2 CAPE); entrainment and the weight of the water take about half, so the model uses w = 0.5 sqrt(2 CAPE). The Storm energy slider sets CAPE from 300 to 4000 J/kg, which sets the cloud-top height (6-15 km).
Charge and lightning. Ice crystals and soft hail (graupel) rebound in the updraft and exchange charge: the main negative charge settles near the -15 C level and the main positive charge sits above it. When the field between them reaches the breakdown field (about 200 kV/m measured inside storms, not the 3 MV/m of dry air at the ground) a flash starts. The empirical law of Williams (1985), F = 3.44e-5 H^4.9 flashes per minute with H in km, sets how often flashes happen here: doubling the cloud top multiplies the rate by about 30. The 2D twin of this page shows the field and the charge balance in a cross-section.
Which object is hit. A flash reaches a grounded object with a probability proportional to the square of its height (collection-area argument): the lattice mast and the turbine take most strikes, trees some, the farm and open ground few.
Thunder. Light arrives at once and sound at c = 331.3 sqrt(1 + T/273.15) m/s (343 m/s at 20 C); 3 s of delay is about 1 km. The delay shown is the camera distance divided by c.
Honest simplifications: the landscape is compressed and the buildings, mast and turbines are enlarged (distances use 1 scene unit = 100 m); wind, rain and hail are visual models, not a radar simulation; flash timing is randomised around the model rate; the colours, cloud shape and bolt branching are artistic. Not a lightning-risk forecast: when thunder follows within 30 seconds (about 10 km), go indoors.
A severe thunderstorm moves across a rain-soaked landscape. Use the controls to change wind, rain and lightning.