This is the source code for my blog post Simulating Fluids, Fire, and Smoke.
- 2D Fluid simulation (uniform grid, simulating incompressible fluid with semi-lagrangian advection)
- Thermal model for fire (buoyancy + cooling)
- Simulation steps are done in parallel on the GPU via WebGL fragment shaders
npm installthennpm run devin this directory- Go to
localhost:8000/fire.html. Note that blog content will not display correctly because KaTeX doesn't work well with my blog DSL.
