Simulation of stable fluids based on Stam99's algorithm.