I'm looking for some algorithms (or some applets/examples with source code) to simulate fluids in a 2D container (which can be moved and rotated).
An example of what I need is a 2D glass with some water inside, like the iBeer application for smart phones.