artisynth.core.materials
Class BlemkerAxialMuscle

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

public class BlemkerAxialMuscle
extends AxialMuscleMaterial

A generic muscle material


Field Summary
static PropertyList myProps
           
 
Fields inherited from class artisynth.core.materials.AxialMuscleMaterial
DEFAULT_DAMPING, DEFAULT_PASSIVE_FRACTION, DEFAULT_SCALING, DEFAULT_TENDON_RATIO, maxStretch, minStretch
 
Constructor Summary
BlemkerAxialMuscle()
           
BlemkerAxialMuscle(double maxLen, double optLen, double maxForce, double expStress, double uncrimp)
           
 
Method Summary
 BlemkerAxialMuscle clone()
          Returns a clone of this composite property.
 double computeDFdl(double l, double ldot, double l0, double excitation)
           
 double computeDFdldot(double l, double ldot, double l0, double excitation)
           
 double computeF(double l, double ldot, double l0, double excitation)
           
 boolean equals(AxialMaterial mat)
           
 PropertyList getAllPropertyInfo()
          Returns a list giving static information about all properties exported by this object.
 double getExpStressCoeff()
           
 PropertyMode getExpStressCoeffMode()
           
 double getMaxForce()
           
 PropertyMode getMaxForceMode()
           
 double getMaxLength()
           
 PropertyMode getMaxLengthMode()
           
 double getOptLength()
           
 PropertyMode getOptLengthMode()
           
 double getUncrimpingFactor()
           
 PropertyMode getUncrimpingFactorMode()
           
 boolean isDFdldotZero()
          Returns true if computeDFdldot() always returns zero.
 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 setMaxForce(double maxForce)
           
 void setMaxForceMode(PropertyMode mode)
           
 void setMaxLength(double maxLength)
           
 void setMaxLengthMode(PropertyMode mode)
           
 void setOptLength(double optLength)
           
 void setOptLengthMode(PropertyMode mode)
           
 void setUncrimpingFactor(double factor)
           
 void setUncrimpingFactorMode(PropertyMode mode)
           
 
Methods inherited from class artisynth.core.materials.AxialMuscleMaterial
getDamping, getDampingMode, getForceScaling, getForceScalingMode, getPassiveFraction, getPassiveFractionMode, getSubClasses, getTendonRatio, getTendonRatioMode, setAxialMuscleMaterialProps, setDamping, setDampingMode, setForceScaling, setForceScalingMode, setPassiveFraction, setPassiveFractionMode, setTendonRatio, setTendonRatioMode
 
Methods inherited from class artisynth.core.materials.AxialMaterial
equals
 
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

BlemkerAxialMuscle

public BlemkerAxialMuscle()

BlemkerAxialMuscle

public BlemkerAxialMuscle(double maxLen,
                          double optLen,
                          double maxForce,
                          double expStress,
                          double uncrimp)
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 AxialMuscleMaterial
Returns:
static information for all exported properties

setMaxLength

public void setMaxLength(double maxLength)
Overrides:
setMaxLength in class AxialMuscleMaterial

getMaxLength

public double getMaxLength()
Overrides:
getMaxLength in class AxialMuscleMaterial

setMaxLengthMode

public void setMaxLengthMode(PropertyMode mode)
Overrides:
setMaxLengthMode in class AxialMuscleMaterial

getMaxLengthMode

public PropertyMode getMaxLengthMode()
Overrides:
getMaxLengthMode in class AxialMuscleMaterial

setOptLength

public void setOptLength(double optLength)
Overrides:
setOptLength in class AxialMuscleMaterial

getOptLength

public double getOptLength()
Overrides:
getOptLength in class AxialMuscleMaterial

setOptLengthMode

public void setOptLengthMode(PropertyMode mode)
Overrides:
setOptLengthMode in class AxialMuscleMaterial

getOptLengthMode

public PropertyMode getOptLengthMode()
Overrides:
getOptLengthMode in class AxialMuscleMaterial

setMaxForce

public void setMaxForce(double maxForce)
Overrides:
setMaxForce in class AxialMuscleMaterial

getMaxForce

public double getMaxForce()
Overrides:
getMaxForce in class AxialMuscleMaterial

setMaxForceMode

public void setMaxForceMode(PropertyMode mode)
Overrides:
setMaxForceMode in class AxialMuscleMaterial

getMaxForceMode

public PropertyMode getMaxForceMode()
Overrides:
getMaxForceMode in class AxialMuscleMaterial

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()

computeF

public double computeF(double l,
                       double ldot,
                       double l0,
                       double excitation)
Specified by:
computeF in class AxialMaterial

computeDFdl

public double computeDFdl(double l,
                          double ldot,
                          double l0,
                          double excitation)
Specified by:
computeDFdl in class AxialMaterial

computeDFdldot

public double computeDFdldot(double l,
                             double ldot,
                             double l0,
                             double excitation)
Specified by:
computeDFdldot in class AxialMaterial

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.

Specified by:
isDFdldotZero in class AxialMaterial

equals

public boolean equals(AxialMaterial mat)
Overrides:
equals in class AxialMuscleMaterial

clone

public BlemkerAxialMuscle 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 AxialMuscleMaterial
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 AxialMuscleMaterial
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 AxialMuscleMaterial
Parameters:
s - scaling factor