This program is an implementation of a PIC/FLIP fluid simulation based on methods described in Robert Bridson's "Fluid Simulation for Computer Graphics" textbook.
Simulation visualization was rendered in Blender.
The LEGO brick surface in this animation was generated from this fluid simulation: • PIC/FLIP Fluid Simulation - Fluid River
Simulation Details:
Frames: 450
Simulation Time: 6.5 hours
Render time: 48 hours (125 samples)
Total time: 54.5 hours
Bake file size: 111 MB
Simulation Grid Resolution: 123 x 160 x 384
Lego Grid Resolution: 45 x 49 x 141
Peak RAM usage: 1.2 GB
Computer specs: ultrabook style laptop with Intel Core i5-4200U @ 1.60GHz processor, integrated Intel HD4400 graphics chip, and 8GB RAM.
Source code: https://github.com/rlguy/GridFluidSim3D