This 2D Fluid Simulation is based on Joe Stam's paper on Fluid Simulation for Games, presented at GDC 2003.
It is optmized for usage in real-time and uses C++ and OpenGL.
Watch a Youtube Video of the same:
Download the above Video (wmv format, 743 Kb)
Download FluidSim.exe (zip format, 104 Kb)