navier-stokes-webgl

Stable fluid simulation on GPU using WebGL.

Live version here.

This is an implementation of the Stable Fluid described by Jos Stam.

Donate

Simulation

The simulation is implemented on GPU with the method provided in GPU Gems. The diffusion term was dropped since it didn't have much visual influence.

Data storage

This simulation can run in two modes for storing the velocities: