Home▸Physics & Mechanics▸Fire & Smoke Fluid Solver (2D)

🔥 Fire & Smoke Fluid Solver (2D)

A real 2D stable-fluids simulation (semi-Lagrangian advection, Jacobi pressure projection, buoyancy-driven convection) rendering fire and smoke from a temperature and density field.

Physics & Mechanics2DAdvanced60 FPS📱 Mobile-adapted🔥 Fire⇄ 3D version
2d-fire-smoke ↗ Open standalone
⚙ Under the hood

A real 2D stable-fluids simulation: semi-Lagrangian advection and Jacobi diffusion move velocity, density and temperature fields, a Jacobi pressure-projection step keeps the flow divergence-free, and a buoyancy force couples the temperature field back into velocity so hot fluid rises. Click or drag to inject a fire or smoke source, and adjust buoyancy, cooling and wind to reshape the flame and plume in real time.

fluid dynamicsstable fluidsnavier-stokesfiresmokecanvas2d

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

What did you find?

Add reproduction steps (optional)