Skip to content

[FEM.Elastic] Introduce generic element-agnostic elastic FEM force field#5882

Merged
fredroy merged 110 commits intosofa-framework:masterfrom
alxbilger:elasticity
Mar 21, 2026
Merged

[FEM.Elastic] Introduce generic element-agnostic elastic FEM force field#5882
fredroy merged 110 commits intosofa-framework:masterfrom
alxbilger:elasticity

Conversation

@alxbilger
Copy link
Copy Markdown
Contributor

@alxbilger alxbilger commented Jan 22, 2026

Coming from https://github.com/alxbilger/Elasticity

[with-all-tests]

[ci-depends-on https://github.com/sofa-framework/Regression/pull/104]


By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).


Reviewers will merge this pull-request only if

  • it builds with SUCCESS for all platforms on the CI.
  • it does not generate new warnings.
  • it does not generate new unit test failures.
  • it does not generate new scene test failures.
  • it does not break API compatibility.
  • it is more than 1 week old (or has fast-merge label).

@alxbilger alxbilger added pr: status to review To notify reviewers to review this pull-request pr: new feature Implement a new feature pr: highlighted in next release Highlight this contribution in the notes of the upcoming release labels Jan 22, 2026
@hugtalbot hugtalbot added the topic for next dev-meeting PR to be discussed in sofa-dev meeting label Jan 23, 2026
@fredroy
Copy link
Copy Markdown
Contributor

fredroy commented Jan 28, 2026

[ci-build][with-all-tests]

Copy link
Copy Markdown
Contributor

@th-skam th-skam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only touched some easy to read files. Will try to take a better look in the next days.
But I really like the overall work.

Comment thread Sofa/framework/Type/src/sofa/type/VecView.h Outdated
@alxbilger alxbilger removed the topic for next dev-meeting PR to be discussed in sofa-dev meeting label Feb 5, 2026
@hugtalbot
Copy link
Copy Markdown
Contributor

This PR deserves the attention of all @sofa-framework/reviewers


const auto H = P.multTranspose(Q);

sofa::helper::Decompose<sofa::Real_t<DataTypes>>::polarDecomposition_stable(H, rotationMatrix);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the diff with the regular one ? Why keep both ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea. As usual, I want to keep compatibility with legacy SOFA. TetrahedronFEMForceField offers the option to select both polar decomposition. SVD uses the stable polar decomposition.

Comment thread Sofa/framework/Type/src/sofa/type/FullySymmetric4Tensor.h
@hugtalbot
Copy link
Copy Markdown
Contributor

I insist on the fact that this PR deserves the attention of all @sofa-framework/reviewers

Copy link
Copy Markdown
Contributor

@th-skam th-skam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯 great work Alex!

Unit tests failing is because the voigt mapping is used in strain-displacement matrix but not in the specializations.

Comment thread Sofa/framework/Type/src/sofa/type/VecView.h
@sofabot
Copy link
Copy Markdown
Collaborator

sofabot commented Mar 19, 2026

[ci-depends-on] detected during build #23.

To unlock the merge button, you must

@sofabot
Copy link
Copy Markdown
Collaborator

sofabot commented Mar 20, 2026

[ci-depends-on] detected during build #24.

To unlock the merge button, you must

@sofabot
Copy link
Copy Markdown
Collaborator

sofabot commented Mar 20, 2026

[ci-depends-on] detected during build #25.

To unlock the merge button, you must

@sofabot
Copy link
Copy Markdown
Collaborator

sofabot commented Mar 20, 2026

[ci-depends-on] detected during build #26.

To unlock the merge button, you must

@sofabot
Copy link
Copy Markdown
Collaborator

sofabot commented Mar 21, 2026

[ci-depends-on] detected during build #27.

All dependencies are merged/closed. Congrats! 👍

@fredroy fredroy merged commit 6f95d19 into sofa-framework:master Mar 21, 2026
11 of 13 checks passed
@fredroy fredroy added pr: status ready Approved a pull-request, ready to be squashed and removed pr: status to review To notify reviewers to review this pull-request labels Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: highlighted in next release Highlight this contribution in the notes of the upcoming release pr: new feature Implement a new feature pr: status ready Approved a pull-request, ready to be squashed

Projects

Development

Successfully merging this pull request may close these issues.

6 participants