Skip to content

Improve P2G, G2P efficiency#20

Merged
larsblatny merged 4 commits intolarsblatny:masterfrom
Yidong-ZHAO:feature/P2G-G2P-efficiency-improvement
Feb 26, 2026
Merged

Improve P2G, G2P efficiency#20
larsblatny merged 4 commits intolarsblatny:masterfrom
Yidong-ZHAO:feature/P2G-G2P-efficiency-improvement

Conversation

@Yidong-ZHAO
Copy link
Copy Markdown
Contributor

Summary

MPM steps are modified to improve computational efficiency.

Changes

  • The particle loops in P2G and explicitEulerUpdate are combined.
  • Material update is done in G2P. No need to call deformationUpdate now.
  • Stress is saved to remove redundant SVD.

Results

Tested with the default example (2D granular collapse). ~10% improvement.

@larsblatny
Copy link
Copy Markdown
Owner

Excellent work! I added support for MUSL and will approve this PR now

@larsblatny larsblatny merged commit 2663637 into larsblatny:master Feb 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants