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
Copy file name to clipboardExpand all lines: Sofa/Component/SolidMechanics/FEM/HyperElastic/src/sofa/component/solidmechanics/fem/hyperelastic/material/Ogden.h
+23-16Lines changed: 23 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -61,15 +61,20 @@ class Ogden: public HyperelasticMaterial<DataTypes>
61
61
62
62
Real getStrainEnergy(StrainInformation<DataTypes> *sinfo, const MaterialParameters<DataTypes> ¶m) override
63
63
{
64
-
MatrixSym C=sinfo->deformationTensor;
65
-
Real k0=param.parameterArray[0];
66
-
Real mu1=param.parameterArray[1];
67
-
Real alpha1=param.parameterArray[2];
68
-
Real fj= (Real)(pow(sinfo->J,(Real)(-alpha1/3.0)));
0 commit comments