Grid-based Navier-Stokes Simulation on the GPU

 

Abstract:

Grid-based Navier-Stokes fluid simulation is a relatively straightforward fluid simulation method.

http://en.wikipedia.org/wiki/Navier-Stokes_equations

Unfortunately, the computational complexity scales linearly with the simulation grid size, which can be large for useful problems. Fortunately, since each grid cell can be simulated separately, the simulation is easy to parallelize on the GPU.

We wrote a standard NS-type fluid simulator. Just for fun we added a vortex generator that would serve as a fluid sink.

 

Simulation:

This is a straightforward implementation of the NS equations on a grid. The executable and video for the demo are downloadable below:

Windows XP Executable (needs a graphics card with pixel shader 2.0 or higher)

Video of demo