2d ink droplet in water dynamics. Set a new buoyancy value β.
This script makes It iterations every time step to calculate pressure.
512×512 grid with periodic boundaries.
Unfortunately this script is much slower than
WebGL based droplet.
See 2D fluid dynamics for explanations.