Home▸Physics & Mechanics▸Candle Flame Simulation (2D)

🧪 Candle Flame Simulation (2D)

A 2D stable-fluids convection lab: a semi-Lagrangian fluid solver drives a real buoyant temperature plume above the wick, so hot air genuinely rises, cools and is advected by its own velocity field.

Physics & Mechanics2DModerate60 FPS📱 Mobile-adapted🔥 Fire⇄ 3D version
2d-candle-flame-simulation ↗ Open standalone

This 2D companion swaps the 3D version's orbiting camera and jittered flame sprites for a real physics grid: a semi-Lagrangian stable-fluids solver (advection, diffusion and pressure projection) tracks temperature and velocity above the wick, and buoyancy genuinely pushes hot cells upward, cooling and mixing as they rise — so the convection plume and the "wax remaining" fuel-burn readout are computed, not animated.

⚙ Under the hood

2D stable-fluids convection lab (semi-Lagrangian solver, buoyancy-coupled temperature field) with live controls for heat output, draft, buoyancy and ambient temperature.

Candle FlameConvection CurrentsHeat TransferStable Fluids

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)