Liquidity is a demo of a Material Point Simulation of the behaviour of a liquid. This is just a quick demo I knocked together in a couple of afternoons way back; I have (somewhere) got a version you can play with is probably on its way, as is source code for this. (Inspired by Grant Kot's hit demo!)

  • Win32 executable with LGPL licensed Qt libraries. (You need to extract everything into a folder to run it.)

No warranty etc. You know the drill.


This simulates flow through a closed container with equally wide holes in the top left and bottom right through which liquid is forced. The particles shown are randomly placed and then their trajectories over time shown for a little while.

If you're interested in the theory, see this pretty awesome set of notes from SIGGRAPH upon which this implementation is based. Also, I used that guy's code (available here) for the sparse matrix conjugate gradient implementation, because, well, it's just fiddly, and to be frank this was just a "I wonder how you would do that" spur of the moment sort of thing.


If it doesn't work, tell me. Thanks =]

Liquidity

Simple Material Point Method demonstration

top / xhtml / css
© Carl Turner 2008-2017
design & engine by suchideas / hosted by xenSmart