Playing with a Navier-Stokes fluid dynamics simulator based on Jos Stam's
JavaScript C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README
TODO
demo.c
index.html
pressure-display.js
pressure.js
solver.c

README

Fluid Dynamics Simulator

Based on Oliver's Simple Fluid Dynamics Simulator, downloaded at random.
So his copyright should remain intact on pressure.js and pressure-display.js.

That, in turn, is based on Jos Stam's GDC03 paper.

PERFORMANCE

JavaScript frame rate, on my machine, determined highly unscientifically:

With display: 40-50 fps
Without display: 50-60 fps, usually 57-58

C frame rate on my machine, similarly determined:

With display: 37fps
Without display: 41fps
Without display at -O3: 64fps

Built with: gcc -Wall -framework GLUT -framework OpenGL -framework Cocoa demo.c solver.c -o demo_solver
Or the same, plus -O3