/StableFluids-python

A pure-python implementation of Stable Fluids with stagger grids.

Primary LanguagePythonMIT LicenseMIT

StableFluids-python

A pure-python implementation of Stable Fluids with stagger grids.

Demo examples

Taylor–Green vortex Vortexsheet
python run.py -c configs/taylorgreen.json python run.py -c configs/vortexsheet.json
velocity density
Kármán vortex street Inflow
python run.py -c configs/karman.json python run.py -c configs/inflow.json
curl(vorticity) R: curl, G: 1, B: density

To setup new examples, simply add a cooresponding python file under examples folder.

Reference