Physics engine to simulate fluids