PHYS·05 Fire — an advection–diffusion–cooling simulation: a fuel bed injects noisy heat at the bottom, buoyancy carries it up through a swaying flow field, a cooling term takes a cut every step, and the flame is heat in transit rendered through a faux-blackbody palette; tap to toss embers, paint fire and lean on the wind at the bench

Physics Lab · Experiment 05 · advection–diffusion

Heat that climbs.

04's pool gave everything back; fire keeps nothing. A fuel bed feeds noisy heat in at the bottom, buoyancy carries it up, and a cooling term takes its cut every step — the flame is just heat in transit. Tap anywhere to toss an ember and watch the flow claim it. Down at the bench you can paint fire and lean on the wind.

Tt + v·∇T = α∇²T − βT
scroll
[00]The hearth

a driven, dissipative system — the first in the series that spends instead of conserving

Equation
Tt + v·∇T = α∇²T − βT · advection–diffusion–cooling on a grid, two substeps per frame — every tongue you see is the solver, not a sprite
Transport
semi-Lagrangian — each cell looks upstream along the flow and takes what would have arrived. Stam's stable-fluids trick: no Courant cliff this time (04 had one)
Buoyancy
a constant rise plus a slow sinusoidal sway field — the sideways drift is the only wind the hero has, and it's what folds hot columns into tongues
Fuel
the bottom rows are re-rolled with random heat every frame — the slider is the gas valve; close it and the page goes dark in about two seconds
Cooling
−βT every step, so heat decays exponentially with altitude — flame height is where climbing loses to cooling, roughly v/β
Status
🟢 burning · pauses offscreen · reduced-motion shows a long exposure of the flame instead of live motion
[01]Six flames

everything a hearth knows how to do

01 · the equation

Three verbs, one line

Carry it up (advection), smear it out (diffusion), take a cut (cooling). That's the whole model — no flame shader, no particle system. Every lick and curl on this page is those three verbs arguing.

Tt + v·∇T = α∇²T − βT
02 · buoyancy

Up is the plot

Delete the rise term and fire becomes a hot floor slowly blurring. Everything we call flame is transport.

03 · upstream

Look back, not forward

Semi-Lagrangian transport doesn't push heat to where it's going — each cell asks where its heat came from and samples there. Unconditionally stable: 04 detonated past its Courant limit; this scheme just blurs.

04 · flicker

Noise only at the root

All the randomness lives in the fuel bed's re-roll. The sway field upstream stretches that boundary noise into tongues — structured motion out of a noisy edge, order for free.

05 · height

Why flames end

Each step costs a factor of e−β. Rise divided by decay sets the ceiling — turn the fuel down and the ceiling drops with it.

h ≈ v/β
06 · the palette

Colour is temperature

The LUT is a faux-blackbody ramp — near-black through ember red, terra, ochre, out to bone-white at the hottest cells. The warm palette the whole lab wears turns out to be incandescence.

[02]The bench

tap = ember · drag = paint fire · fuel, wind, buoyancy, and turbulence drive the hero hearth too

fuel 60 wind 0 buoyancy 102 turbulence 70
Field note: 04 conserved; 05 spends. Echo's pool held its energy and handed every pulse back — tap once and the walls kept the story going. Fire is the series' first driven-dissipative system: energy enters at the bed, leaves through β, and the flame is the shape of the traffic between them. The new buoyancy and turbulence controls expose the two constants that used to be hidden inside that transport — a standing pattern made entirely of things passing through. Close the valve and there is no echo, no return, nothing owed. Just a dark page and the memory of heat.