Fluids: I need some serious inspiration

I am in the midst of designing a little web toy for people to play with, mostly as a proof-of-concept for a bigger game. But there is one thing missing that I am having serious trouble finding any tutorials, inspiration or examples for: Fluids in a grid-based, 3d world.

I’ve been trying to work out an algorithm that will allow a tile to be filled up with water at 1/12th per unit of water, then solve the system so that the water flows to where it would be at rest in nature. As an example, here is a mockup I put together: Mockup.png

In this example, you can see how the fluid is poised to fall into a lower energy state, and I need help figuring out the algorithm to take care of it.

Any ideas?

Thanks!