3d ink droplet in water dynamics. Set a new buoyancy value β. This script makes It iterations every time step to calculate pressure. 2563 grid with periodic boundaries. It is more complicated (and slow ~3 fps on GTX 560) but diffusion (artificial?) kills thin detailes.