https://github.com/akinaguda/fluid-simulation
My attempt at fluid simulation with the Navier Stokes equations
https://github.com/akinaguda/fluid-simulation
fluid-simulation navier-stokes-equations wasm webassembly webgl
Last synced: 4 months ago
JSON representation
My attempt at fluid simulation with the Navier Stokes equations
- Host: GitHub
- URL: https://github.com/akinaguda/fluid-simulation
- Owner: AkinAguda
- License: mit
- Created: 2021-11-08T09:00:28.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-29T23:32:17.000Z (over 3 years ago)
- Last Synced: 2025-10-16T17:06:20.302Z (8 months ago)
- Topics: fluid-simulation, navier-stokes-equations, wasm, webassembly, webgl
- Language: TypeScript
- Homepage: https://akin-fluid-simulation.netlify.app
- Size: 148 KB
- Stars: 21
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE_MIT
Awesome Lists containing this project
README
# Interactive fluid simulation with [navier stokes equations](https://en.wikipedia.org/wiki/Navier%E2%80%93Stokes_equations)

Live Demo https://akin-fluid-simulation.netlify.app/
## Resources
Real-Time Fluid Dynamics for Games by Jos Stam
Fluid Simulation SIGGRAPH 2007 Course Notes by Robert Bridson and Matthias Muller-Fischer
Gonkee's [video](https://www.youtube.com/watch?v=qsYE1wMEMPA&t)
3Blue1Brown's [video on divergence and curl](https://www.youtube.com/watch?v=rB83DpBJQsE&t)
The Coding Train's [video](https://www.youtube.com/watch?v=alhpH6ECFvQ&t)
## Contribution
Assuming you have [cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html) and [wasm-pack](https://rustwasm.github.io/wasm-pack/installer/) installed:
- Run `wasm-pack-build` to compile rust code to web assembly
- `cd` into the `web` directory and run `npm run start:dev` the application will open up on `localhost:8000`