README.md

December 23, 2022 · View on GitHub

pcisph is a predictive-corrective smoothed particle hydrodynamics (SPH) implementation in 2D for CS4167 final project. See here for a more recent implementation in Rust including a parallelized solver.

For further information, please see SPH tutorials on my website, including an introduction to SPH math and a simple SPH solver.

Running

# install dependencies (debian/ubuntu)
apt install libopengl-dev freeglut3-dev libeigen3-dev

# uncomment header in `Makefile` depending on platform
make

# launch demo
./pcisph

Demo video

Demo video

License

This project is distributed under the MIT license.

Note

This solver is not exactly PCISPH, but can be viewed as 1-iteration of SPH relaxation plus sub-stepping. The “prediction-relaxation” scheme of my implementation actually comes mainly from the (much easier to follow) paper "Particle-based Viscoelastic Fluid Simulation”, as opposed to "Predictive-Corrective Incompressible SPH”.