Adapt algorithm in simulate function at Fluid simulator class