artisynth.core.materials
Class SimpleAxialMuscle
java.lang.Object
artisynth.core.materials.MaterialBase
artisynth.core.materials.AxialMaterial
artisynth.core.materials.LinearAxialMaterial
artisynth.core.materials.SimpleAxialMuscle
- All Implemented Interfaces:
- ScalableUnits, java.lang.Cloneable, CompositeProperty, HasProperties, Clonable, Scannable
public class SimpleAxialMuscle
- extends LinearAxialMaterial
Methods inherited from class artisynth.core.materials.LinearAxialMaterial |
computeDFdl, computeDFdldot, getDamping, getDampingMode, getStiffness, getStiffnessMode, isDFdldotZero, setDamping, setDampingMode, setStiffness, setStiffnessMode |
Methods inherited from class artisynth.core.materials.MaterialBase |
getProperty, getPropertyHost, getPropertyInfo, hasProperty, hasSymmetricTangent, isWritable, scan, setPropertyHost, setPropertyInfo, tangentSymmetryChanged, updateMaterial, write |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myProps
public static PropertyList myProps
SimpleAxialMuscle
public SimpleAxialMuscle()
SimpleAxialMuscle
public SimpleAxialMuscle(double k,
double d,
double max)
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 LinearAxialMaterial
- Returns:
- static information for all exported properties
getMaxForce
public double getMaxForce()
setMaxForce
public void setMaxForce(double max)
getMaxForceMode
public PropertyMode getMaxForceMode()
setMaxForceMode
public void setMaxForceMode(PropertyMode mode)
computeF
public double computeF(double l,
double ldot,
double l0,
double excitation)
- Overrides:
computeF
in class LinearAxialMaterial
equals
public boolean equals(AxialMaterial mat)
- Overrides:
equals
in class LinearAxialMaterial
clone
public SimpleAxialMuscle 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 LinearAxialMaterial
- 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 LinearAxialMaterial
- 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 LinearAxialMaterial
- Parameters:
s
- scaling factor