Skip to content

[FEM] Implement getPotentialEnergy for Linear & Corotational FEMForceField - #6228

Open
th-skam wants to merge 4 commits into
sofa-framework:masterfrom
th-skam:potentialEnergy
Open

[FEM] Implement getPotentialEnergy for Linear & Corotational FEMForceField#6228
th-skam wants to merge 4 commits into
sofa-framework:masterfrom
th-skam:potentialEnergy

Conversation

@th-skam

@th-skam th-skam commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Implements getPotentialEnergy() for CorotationalFEMForceField and LinearSmallStrainFEMForceField components. Both now compute elastic strain energy using the form:

$$E = \sum_e \frac{1}{2}\mathbf{u_e}^T\mathbf{K_e}\mathbf{u_e}$$
  • $\mathbf{u_e}$: element displacement of DOFs
  • $\mathbf{K_e}$: element stiffness matrix

The corotational form uses the local displacements and so gives the energy due to local deformations.

@th-skam th-skam added pr: status to review To notify reviewers to review this pull-request pr: new feature Implement a new feature labels Aug 19, 2026

@alxbilger alxbilger left a comment

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.

Good job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: new feature Implement a new feature pr: status to review To notify reviewers to review this pull-request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants