use of artisynth.core.materials.MuscleMaterial in project artisynth_core by artisynth.
the class FemMuscleModel method computeTangent.
public void computeTangent(Matrix6d D, SymmetricMatrix3d stress, SolidDeformation def, Matrix3d Q, FemMaterial baseMat) {
MuscleMaterial mat = getMuscleMaterial();
if (mat != null) {
myTmpDir.x = Q.m00;
myTmpDir.y = Q.m10;
myTmpDir.z = Q.m20;
mat.computeTangent(D, stress, getNetExcitation(), myTmpDir, def, baseMat);
}
}
use of artisynth.core.materials.MuscleMaterial in project artisynth_core by artisynth.
the class MFreeMuscleModel method computeStress.
// public void addStress(
// SymmetricMatrix3d sigma, IntegrationPoint3d pt,
// IntegrationData3d dt, FemMaterial baseMat) {
//
// MuscleMaterial mat = getMuscleMaterial();
// if (mat != null && dt.getFrame() != null) {
// myTmpDir.x = dt.getFrame().m00;
// myTmpDir.y = dt.getFrame().m10;
// myTmpDir.z = dt.getFrame().m20;
// mat.addStress(sigma, getNetExcitation(), myTmpDir, pt, baseMat);
// }
// }
public void computeStress(SymmetricMatrix3d sigma, SolidDeformation def, IntegrationPoint3d pt, IntegrationData3d dt, FemMaterial baseMat) {
MuscleMaterial mat = getMuscleMaterial();
if (mat != null && dt.getFrame() != null) {
myTmpDir.x = dt.getFrame().m00;
myTmpDir.y = dt.getFrame().m10;
myTmpDir.z = dt.getFrame().m20;
mat.computeStress(sigma, getNetExcitation(), myTmpDir, def, baseMat);
}
}
Aggregations