Processing Library – Fluid Simulation


main project page:
http://thomasdiewald.com/processing/libraries/diewald_fluid/

github repository:
https://github.com/diwi/diewald_fluid

processing forum
http://forum.processing.org/topic/fluid-library-diewald-fluid


this library is made for simulating fluids in realtime. the simulation can be done in two ways:

  • a) on the CPU
  • b) on the GPU, which is about 10 to 20 times faster than on the CPU

the GPU-simulation happens on several shaders, that are loaded internally by the processing library GLGraphics.jar by andres colubri (http://glgraphics.sourceforge.net , or here http://codeanticode.wordpress.com/) so you need to install GLGraphics.jar too, if you want to instantiate the GPU fluid.


Demo Video of Fluid-library-examples, video made by andres on Vimeo.