Skip to content

[forcefield] TriangularShellForceField: changes inheritance #20

Open
EulalieCoevoet wants to merge 1 commit into
SofaDefrost:mainfrom
EulalieCoevoet:pr_changeforcefieldinheritence
Open

[forcefield] TriangularShellForceField: changes inheritance #20
EulalieCoevoet wants to merge 1 commit into
SofaDefrost:mainfrom
EulalieCoevoet:pr_changeforcefieldinheritence

Conversation

@EulalieCoevoet
Copy link
Copy Markdown
Member

@EulalieCoevoet EulalieCoevoet commented May 21, 2026

In this PR:
Changes the inheritance of TriangularShellForceField from ForceField to BaseLinearElasticityFEMForceField.
This allow for instance to optimize the Young modulus using the YoungModulusActuator from SoftRobots.Inverse (see SofaDefrost/SoftRobots.Inverse#85)

Closes #10

{
Real E = d_young.getValue(),
nu = d_poisson.getValue(),
Real E = d_youngModulus.getValue()[0],
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Use getYoungModulusInElement and getPoissonRatioInElement instead

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants