You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Per-particle stress tensor and contact force export in MPM simulation #8792
Concisely describe the proposed feature
A clear and concise description of what you want. For example,
I would like to add an Apple Metal backend to the compiler so that my Macbook GPU can be utilized.
Describe the solution you'd like (if any)
A clear and concise description of what you want to achieve and implement.
Additional comments
Add any other context or screenshots about the feature request here.
Summary
Taichi's MPM implementation is excellent for simulating deformable materials, but currently lacks a convenient way to extract per-particle stress tensors and contact forces during simulation for downstream use (e.g., dataset generation, policy training).
What's missing
Stress tensor readout: Stress is computed inside the P2G kernel but not stored as a persistent field. Extracting Cauchy stress or von Mises requires re-deriving from deformation gradient F in user code, which is fragile across different constitutive models.
Contact force isolation: When soft bodies interact with rigid objects, there's no built-in way to separate contact reaction forces from internal elastic forces per particle or per surface vertex.
Use case
Generating labeled synthetic data for robotic manipulation of deformable objects. Per-step stress and contact force ground truth are needed for training manipulation policies and sim-to-real transfer.
Activity