Skip to content

Predictive-Corrective Smoothed Particle Hydrodynamics (SPH) implementation in 2D for CS4167 final project

License

Notifications You must be signed in to change notification settings

lucas-schuermann/pcisph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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”.

About

Predictive-Corrective Smoothed Particle Hydrodynamics (SPH) implementation in 2D for CS4167 final project

Resources

License

Stars

Watchers

Forks