artisynth.core.materials
Class SpringAxialMuscle

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

public class SpringAxialMuscle
extends LinearAxialMaterial


Field Summary
static PropertyList myProps
           
 
Constructor Summary
SpringAxialMuscle()
           
SpringAxialMuscle(double k, double d, double maxf)
           
 
Method Summary
 double computeDFdl(double l, double ldot, double l0, double ex)
           
 double computeDFdldot(double l, double ldot, double l0, double excitation)
           
 double computeF(double l, double ldot, double l0, double ex)
           
 PropertyList getAllPropertyInfo()
          Returns a list giving static information about all properties exported by this object.
 double getMaxForce()
           
 PropertyMode getMaxForceMode()
           
 boolean isDFdldotZero()
          Returns true if computeDFdldot() always returns zero.
 void setMaxForce(double E)
           
 void setMaxForceMode(PropertyMode mode)
           
 
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.AxialMaterial
equals, getSubClasses
 
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
 

Field Detail

myProps

public static PropertyList myProps
Constructor Detail

SpringAxialMuscle

public SpringAxialMuscle()

SpringAxialMuscle

public SpringAxialMuscle(double k,
                         double d,
                         double maxf)
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 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