Stable Fluid

2d grid-based fluid simulation.

Imagem de capa

Date : Summer 2016

Stable Fluid is a solver proposed by Jos Stam to simulate grid-based fluid simulation. The paper first proposed in Siggraph 99’. This is a 2d implementation made with unity3d.

It solves the Navier-Stokes Equation based on a grid.

\[\displaystyle \rho {\frac {\mathrm {D} \mathbf {v} }{\mathrm {D} t}}=-\nabla p+\nabla \cdot \mathbb {T} +\rho \mathbf {f}\]

Then arrange the calculation into 4 steps: add force, advection, diffusion, and projection.

I try to implement this paper during the summer vacation after graduation and spent 1 month trying to figure out the strange fluid mechanics theory. I didn’t know the difference between various fluid algorithm s that time. Whatever the final result is amazing.