2D Predictive-Corrective smoothed particle hydrodynamics (SPH) implementation in Rust
Reimplementation of my previous C++ PCISPH repository now including a parallel solver
See SPH tutorials on my website, including SPH math and a simple SPH solver
Run with cargo:
RUST_LOG=info cargo r --release
Press r
to reset simulation or space
to add a block of particles
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”.