Search in sources :

Example 6 with MuscleMaterial

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);
    }
}
Also used : MuscleMaterial(artisynth.core.materials.MuscleMaterial)

Example 7 with MuscleMaterial

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);
    }
}
Also used : MuscleMaterial(artisynth.core.materials.MuscleMaterial)

Aggregations

MuscleMaterial (artisynth.core.materials.MuscleMaterial)7 FemElement3d (artisynth.core.femmodels.FemElement3d)1 FemMeshComp (artisynth.core.femmodels.FemMeshComp)1 FemMuscleModel (artisynth.core.femmodels.FemMuscleModel)1 MuscleBundle (artisynth.core.femmodels.MuscleBundle)1 FemMaterial (artisynth.core.materials.FemMaterial)1 LinearMaterial (artisynth.core.materials.LinearMaterial)1 SimpleForceMuscle (artisynth.core.materials.SimpleForceMuscle)1 MechModel (artisynth.core.mechmodels.MechModel)1 RigidBody (artisynth.core.mechmodels.RigidBody)1 Color (java.awt.Color)1 File (java.io.File)1 PolygonalMesh (maspack.geometry.PolygonalMesh)1 WavefrontReader (maspack.geometry.io.WavefrontReader)1 Plane (maspack.matrix.Plane)1 Point3d (maspack.matrix.Point3d)1 RigidTransform3d (maspack.matrix.RigidTransform3d)1 Vector3d (maspack.matrix.Vector3d)1 RenderProps (maspack.render.RenderProps)1