About the Lightning Bolt Generator
This simulation grows fractal lightning discharges using the Dielectric Breakdown Model (DBM). In this picture the electric potential between the charged cloud and the ground satisfies Laplace's equation, and each candidate growth cell is added with a probability proportional to the local field raised to a power, (Δφ)^η. Cells nearest the leader tip carry the strongest field, so the channel advances downward while occasionally splitting, producing the characteristic branched, self-similar form.
The Discharge Parameters let you tune branching probability (0 to 0.7), wind drift (-3 to +3) that skews the path sideways, jaggedness (1 to 12 px) controlling step randomness, and step size (3 to 14 px). Visual controls adjust glow radius, the cloud flash and auto-repeat. Understanding such stochastic discharge helps explain natural lightning, laboratory spark gaps, and dielectric failure in high-voltage insulation and electronics.
Frequently Asked Questions
What is the Dielectric Breakdown Model?
The Dielectric Breakdown Model (DBM) is a stochastic growth algorithm for electrical discharge. It treats the gap between cloud and ground as a region where the electric potential obeys Laplace's equation, then advances the discharge cell by cell, choosing each new step at random with a probability weighted by the local field strength.
Why does lightning look branched rather than straight?
The air ahead of the leader is not uniform, so the discharge follows the path of strongest local field, which wanders and occasionally forks. Because that selection is random and repeated at every step, the channel becomes a fractal with a branching dimension near 1.7 in two dimensions, closely matching real discharge patterns.
What does the Branching probability control do?
Branching probability sets how likely the channel is to split into a new fork at each viable step, on a scale from 0 to 0.7. Low values give a near-single jagged channel, while higher values produce dramatic, tree-like bolts with many side branches descending toward the ground.
How does the Wind drift slider affect the bolt?
Wind drift, ranging from -3 to +3, adds a constant sideways bias to every step the discharge takes. Positive values lean the bolt to the right and negative values to the left, mimicking how a real channel can be carried by wind or shaped by an asymmetric field.
What is the difference between jaggedness and step size?
Step size (3 to 14 px) is the average distance the channel advances per step, setting how finely the path is sampled. Jaggedness (1 to 12 px) is the magnitude of random sideways jitter added to each step, so it controls how rough and zig-zagged the channel appears.
Is this simulation physically accurate?
It is a qualitatively faithful, two-dimensional caricature rather than a full physics solver. It captures the key idea that discharge growth is probabilistic and field-driven, and it reproduces realistic fractal branching, but it does not numerically solve the potential field, model ionisation chemistry, or compute real currents and temperatures.
What do the Strikes, Branches, Max depth and Path length stats mean?
Strikes counts how many bolts have been generated since the last clear. Branches is the number of forks in the current bolt, Max depth is how far the channel descended in pixels, and Path length is the total number of line segments drawn, a rough measure of the channel's complexity.
How hot does real lightning get?
A lightning channel heats the surrounding air to roughly 30,000 K, about five times hotter than the surface of the Sun, within microseconds. The explosive expansion of this superheated plasma creates the shockwave we hear as thunder, while the bright return stroke travels at around a third of the speed of light.
What is a stepped leader?
A stepped leader is the initial, faintly luminous channel of negative charge that works its way down from the cloud in discrete jumps, at roughly 200,000 metres per second. It establishes the conducting path; when it nears the ground, the brilliant return stroke surges back up that path and produces the visible flash.
Where else does dielectric breakdown matter?
Beyond lightning, dielectric breakdown governs spark gaps, electric discharge machining, the failure of high-voltage cable and capacitor insulation, and the branching tracks called Lichtenberg figures. The same fractal growth mathematics also describes related diffusion-limited and Laplacian growth processes in physics and materials science.