Fluid Simulation The original paper for this type of fluid simulation is here Thanks for Mike Ash provides a explanation of the implementation here The output of the code is in fluid.gif If you want to figure out the math behind it, you could see it here