An implementation of the CPIC(Compatible Particle-in-Cell) method with Taichi lang where MLS-MPM and rigid body collision techniques are adopted.
These cases are mainly based on the paper A Moving Least Squares Material Point Method with Displacement
Discontinuity and Two-Way Rigid Body Coupling.
Please install Python 3.x and corresponding Taichi package for running the scripts presented here.
For installing Taichi, please refer to Taichi Doc for details.
In this case, a suspended solid block is cut by a thin plate.
No penalty force and impulse on the rigid body are implemented.
In this case, a rotating fan interacts with granular particles flowing down.
The number of fan blades and its initial angular velocity can be adjusted.