Boundary Conditions
In the Material Point Method, boundary conditions (BCs) are enforced on the background Eulerian grid, because the governing equations—discretized in their weak form—are formulated over grid nodes, which serve as the true degrees of freedom (DOFs) of the system. These nodes must satisfy Newton's Second Law. Thus, all external constraints, including static walls, moving boundaries, or contact forces, must be applied directly on the grid after P2G and before G2P.
As usual, we denote the nodal velocity at a grid node as . After external force integration, we apply different velocity projections on boundary nodes depending on the type of boundary condition.
Types of Boundary Conditions
Let be the surface normal at a boundary grid node :
-
Sticky: The velocity is fully suppressed:
-
Slip: Only the normal component is removed; tangential motion is preserved:
-
Separate (One-way wall): Normal inflow is blocked, but outward motion is allowed:
These operations are local, applied independently to each boundary grid node.
External Forces
External forces such as gravity can be added after P2G:
Moving Colliders
For moving or deforming objects, Signed Distance Functions (SDFs) are used to detect whether a grid node lies inside the object. Once detected, the surface normal and the relative velocity are computed, and the grid velocity is adjusted accordingly.
Coulomb Friction
To enforce Coulomb friction on embedded colliders (e.g., sphere or capsule), we apply a projected velocity correction in the direction of the surface normal:
Let be the contact normal and be the opposing velocity (i.e., ). Define the normal component:
Then the corrected grid velocity is:
where is the friction coefficient. This operation smoothly blends between full separation () and sticking ().