Skip to content

Playing with a Navier-Stokes fluid dynamics simulator based on Jos Stam's

Notifications You must be signed in to change notification settings

noahgibbs/navier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Playing with a Navier-Stokes fluid dynamics simulator based on Jos Stam's

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published