artisynth.core.materials
Class GenericMuscle

java.lang.Object
  extended by artisynth.core.materials.MaterialBase
      extended by artisynth.core.materials.MuscleMaterial
          extended by artisynth.core.materials.GenericMuscle
All Implemented Interfaces:
ScalableUnits, java.lang.Cloneable, CompositeProperty, HasProperties, Clonable, Scannable

public class GenericMuscle
extends MuscleMaterial

A generic muscle material


Field Summary
static PropertyList myProps
           
 
Constructor Summary
GenericMuscle()
           
GenericMuscle(double maxLambda, double maxStress, double expStressCoeff, double uncrimpingFactor)
           
 
Method Summary
 GenericMuscle clone()
          Returns a clone of this composite property.
 void computeStress(SymmetricMatrix3d sigma, double excitation, Vector3d dir0, SolidDeformation def, FemMaterial baseMat)
           
 void computeTangent(Matrix6d D, SymmetricMatrix3d stress, double excitation, Vector3d dir0, SolidDeformation def, FemMaterial baseMat)
           
 boolean equals(MuscleMaterial mat)
           
 PropertyList getAllPropertyInfo()
          Returns a list giving static information about all properties exported by this object.
 double getExpStressCoeff()
           
 PropertyMode getExpStressCoeffMode()
           
 double getFibreModulus()
           
 double getMaxLambda()
           
 PropertyMode getMaxLambdaMode()
           
 double getMaxStress()
           
 PropertyMode getMaxStressMode()
           
 double getUncrimpingFactor()
           
 PropertyMode getUncrimpingFactorMode()
           
 boolean hasSymmetricTangent()
          Returns true if the tangent matrix for this material is symmetric.
 void scaleDistance(double s)
          Scales all distance coordinates.
 void scaleMass(double s)
          Scales all mass units.
 void setExpStressCoeff(double coeff)
           
 void setExpStressCoeffMode(PropertyMode mode)
           
 void setMaxLambda(double maxLambda)
           
 void setMaxLambdaMode(PropertyMode mode)
           
 void setMaxStress(double maxStress)
           
 void setMaxStressMode(PropertyMode mode)
           
 void setUncrimpingFactor(double factor)
           
 void setUncrimpingFactorMode(PropertyMode mode)
           
 
Methods inherited from class artisynth.core.materials.MuscleMaterial
equals, getSubClasses, isInvertible
 
Methods inherited from class artisynth.core.materials.MaterialBase
getProperty, getPropertyHost, getPropertyInfo, hasProperty, isWritable, scan, setPropertyHost, setPropertyInfo, tangentSymmetryChanged, updateMaterial, write
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myProps

public static PropertyList myProps
Constructor Detail

GenericMuscle

public GenericMuscle()

GenericMuscle

public GenericMuscle(double maxLambda,
                     double maxStress,
                     double expStressCoeff,
                     double uncrimpingFactor)
Method Detail

getAllPropertyInfo

public PropertyList getAllPropertyInfo()
Description copied from interface: HasProperties
Returns a list giving static information about all properties exported by this object.

Specified by:
getAllPropertyInfo in interface HasProperties
Overrides:
getAllPropertyInfo in class MaterialBase
Returns:
static information for all exported properties

getFibreModulus

public double getFibreModulus()

setMaxLambda

public void setMaxLambda(double maxLambda)

getMaxLambda

public double getMaxLambda()

setMaxLambdaMode

public void setMaxLambdaMode(PropertyMode mode)

getMaxLambdaMode

public PropertyMode getMaxLambdaMode()

setMaxStress

public void setMaxStress(double maxStress)

getMaxStress

public double getMaxStress()

setMaxStressMode

public void setMaxStressMode(PropertyMode mode)

getMaxStressMode

public PropertyMode getMaxStressMode()

setExpStressCoeff

public void setExpStressCoeff(double coeff)

getExpStressCoeff

public double getExpStressCoeff()

setExpStressCoeffMode

public void setExpStressCoeffMode(PropertyMode mode)

getExpStressCoeffMode

public PropertyMode getExpStressCoeffMode()

setUncrimpingFactor

public void setUncrimpingFactor(double factor)

getUncrimpingFactor

public double getUncrimpingFactor()

setUncrimpingFactorMode

public void setUncrimpingFactorMode(PropertyMode mode)

getUncrimpingFactorMode

public PropertyMode getUncrimpingFactorMode()

computeStress

public void computeStress(SymmetricMatrix3d sigma,
                          double excitation,
                          Vector3d dir0,
                          SolidDeformation def,
                          FemMaterial baseMat)
Specified by:
computeStress in class MuscleMaterial

computeTangent

public void computeTangent(Matrix6d D,
                           SymmetricMatrix3d stress,
                           double excitation,
                           Vector3d dir0,
                           SolidDeformation def,
                           FemMaterial baseMat)
Specified by:
computeTangent in class MuscleMaterial

hasSymmetricTangent

public boolean hasSymmetricTangent()
Description copied from class: MaterialBase
Returns true if the tangent matrix for this material is symmetric. While this is normally true, some special materials (such as those whose stress is not derived from a conservative energy funtion) may have a non-symmetric tangent, in which case this function should be overridden to return false.

Overrides:
hasSymmetricTangent in class MaterialBase
Returns:
true if the tangent matrix for this material is symmetric.

equals

public boolean equals(MuscleMaterial mat)
Overrides:
equals in class MuscleMaterial

clone

public GenericMuscle clone()
Description copied from interface: CompositeProperty
Returns a clone of this composite property.

Specified by:
clone in interface CompositeProperty
Specified by:
clone in interface Clonable
Overrides:
clone in class MuscleMaterial
Returns:
clone of this property

scaleDistance

public void scaleDistance(double s)
Description copied from interface: ScalableUnits
Scales all distance coordinates.

Specified by:
scaleDistance in interface ScalableUnits
Overrides:
scaleDistance in class MaterialBase
Parameters:
s - scaling factor

scaleMass

public void scaleMass(double s)
Description copied from interface: ScalableUnits
Scales all mass units.

Specified by:
scaleMass in interface ScalableUnits
Overrides:
scaleMass in class MaterialBase
Parameters:
s - scaling factor