Have a look on Nextlimits site (the guys who make realflow) as i think that they have a package that does that.
Depending on how accurate you want it/need it you could use fluids or particles to get the job done.
"No pressure, no diamonds" Thomas Carlyle