Search in sources :

Example 6 with MooneyRivlinMaterial

use of artisynth.core.materials.MooneyRivlinMaterial in project artisynth_core by artisynth.

the class QuadraticLockingDemo method setModelProperties.

private void setModelProperties(FemModel3d mod) {
    mod.setDensity(DENSITY);
    setRenderProperties(mod, LENGTH);
    mod.setMaterial(new MooneyRivlinMaterial(2000, 0, 0, 0, 0, 5000000));
    for (FemNode3d n : mod.getNodes()) {
        if (Math.abs(n.getPosition().z - LENGTH / 2) < EPS) {
            n.setDynamic(false);
        }
    }
}
Also used : MooneyRivlinMaterial(artisynth.core.materials.MooneyRivlinMaterial) FemNode3d(artisynth.core.femmodels.FemNode3d)

Aggregations

MooneyRivlinMaterial (artisynth.core.materials.MooneyRivlinMaterial)6 FemNode3d (artisynth.core.femmodels.FemNode3d)2 FemElement3d (artisynth.core.femmodels.FemElement3d)1 FemMarker (artisynth.core.femmodels.FemMarker)1 FemMuscleModel (artisynth.core.femmodels.FemMuscleModel)1 MuscleBundle (artisynth.core.femmodels.MuscleBundle)1 BlemkerMuscle (artisynth.core.materials.BlemkerMuscle)1 GenericMuscle (artisynth.core.materials.GenericMuscle)1 IncompNeoHookeanMaterial (artisynth.core.materials.IncompNeoHookeanMaterial)1 LinearMaterial (artisynth.core.materials.LinearMaterial)1 Point (artisynth.core.mechmodels.Point)1 Point (java.awt.Point)1 LinkedList (java.util.LinkedList)1 Point3d (maspack.matrix.Point3d)1