9 #include "imstkPbdConstraint.h" 25 void setYoungAndPoisson(
double youngModulus,
double poissonRatio)
29 const double E = youngModulus;
30 const double nu = poissonRatio;
31 m_mu = E / 2.0 / (1.0 + nu);
32 m_lambda = E * nu / ((1.0 + nu) * (1.0 - 2.0 * nu));
35 void setMuAndLambda(
double mu,
double lambda)
63 enum class MaterialType
72 MaterialType mType = MaterialType::StVK) :
PbdConstraint(cardinality),
73 m_initialElementVolume(0.0),
75 m_invRestMat(Mat3d::Identity())
82 double m_initialElementVolume = 0.0;
MaterialType m_material
Material type.
double m_lambda
Lame constant, if constraint type is Fem.
double m_mu
Lame constant, if constraint type is Fem.
Base Constraint class for Position based dynamics constraints.
double m_PoissonRatio
Fem parameter, if constraint type is Fem.
The PbdFemConstraint class for constraint as the elastic energy computed by linear shape functions wi...
double m_YoungModulus
Fem parameter, if constraint type is Fem.
Either mu/lambda used, may be computed from youngs modulus and poissons ratio.