Wave: A PIC/FLIP Fluid Simulator

Banner

Overview

Wave is a PIC/FLIP Fluid Simulator that can simulate both smoke and fluids. It is mainly based on the algorithms presented by Robert Bridson in both his book and his paper "Animating Sand as a Fluid".

Smoke

Rendered Smoke Rendered Smoke

Fluid

Rendered Fluid Rendered Fluid

How to Run

// Build program
mkdir build
cd build
cmake ..
make

// Run program
cd ..
cd src
.SIM fluid or ./SIM smoke <scene 0 or 1>

To change to 3D Fluid

  • In main.cpp comment out #define TWO_DIM

References