artisynth.core.materials
Class SpringAxialMuscle
java.lang.Object
artisynth.core.materials.MaterialBase
artisynth.core.materials.AxialMaterial
artisynth.core.materials.LinearAxialMaterial
artisynth.core.materials.SpringAxialMuscle
- All Implemented Interfaces:
- ScalableUnits, java.lang.Cloneable, CompositeProperty, HasProperties, Clonable, Scannable
public class SpringAxialMuscle
- extends LinearAxialMaterial
Methods inherited from class artisynth.core.materials.LinearAxialMaterial |
clone, equals, getDamping, getDampingMode, getStiffness, getStiffnessMode, scaleDistance, scaleMass, 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
SpringAxialMuscle
public SpringAxialMuscle()
SpringAxialMuscle
public SpringAxialMuscle(double k,
double d,
double maxf)
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 E)
getMaxForceMode
public PropertyMode getMaxForceMode()
setMaxForceMode
public void setMaxForceMode(PropertyMode mode)
computeF
public double computeF(double l,
double ldot,
double l0,
double ex)
- Overrides:
computeF
in class LinearAxialMaterial
computeDFdl
public double computeDFdl(double l,
double ldot,
double l0,
double ex)
- Overrides:
computeDFdl
in class LinearAxialMaterial
computeDFdldot
public double computeDFdldot(double l,
double ldot,
double l0,
double excitation)
- Overrides:
computeDFdldot
in class LinearAxialMaterial
isDFdldotZero
public boolean isDFdldotZero()
- Description copied from class:
AxialMaterial
- Returns true if computeDFdldot() always returns zero. For a linear
spring, this simply means the damping is zero. When dFdldot is always 0,
then stiffness matrix will be symmetric.
- Overrides:
isDFdldotZero
in class LinearAxialMaterial