Explanation of MPM in 500~ lines of code.
This repo is 2D Implementation of Material Point Method for snow simulation.
This code is for Educational purpose not parallelized and optimized!!
mkdir build
cd build
cmake ../
make
(or give -G option depending on your preference.)
- Make directory
mpm2d/build/out/
; - Make sure that your system has installed ffmpeg
Simulation result for various parameter.