public class ConstantAxialMuscle extends AxialMuscleMaterial
DEFAULT_DAMPING, DEFAULT_MAX_FORCE, DEFAULT_MAX_LENGTH, DEFAULT_OPT_LENGTH, DEFAULT_PASSIVE_FRACTION, DEFAULT_SCALING, DEFAULT_TENDON_RATIO, maxStretch, minStretch, myProps
Constructor and Description |
---|
ConstantAxialMuscle()
Constructs a new ConstantAxialMuscle.
|
ConstantAxialMuscle(double fmax)
Deprecated.
For historical reasons, this constructor sets the deprecated
forceScaling property to 1000, thuis scaling the effective value
of fmax . |
ConstantAxialMuscle(double fmax,
double pfrac)
Constructs a new ConstantAxialMuscle with a specified values.
|
ConstantAxialMuscle(double fmax,
double pfrac,
double damping)
Constructs a new ConstantAxialMuscle with a specified values.
|
Modifier and Type | Method and Description |
---|---|
double |
computeDFdl(double l,
double ldot,
double l0,
double ex)
Computes and returns the derivative of the axial spring tension
with respect to the length.
|
double |
computeDFdldot(double l,
double ldot,
double l0,
double excitation)
Computes and returns the derivative of the axial spring tension
with respect to the length time derivative.
|
double |
computeF(double l,
double ldot,
double l0,
double ex)
Computes and returns the axial spring tension, as a function of
length, length time derivative, rest length, and excitation.
|
static ConstantAxialMuscle |
create()
Creates a new ConstantAxialMuscle with default values.
|
static ConstantAxialMuscle |
create(double fmax)
Creates a new ConstantAxialMuscle with a specified maximum force.
|
boolean |
isDFdldotZero()
Returns true if computeDFdldot() always returns zero.
|
clone, equals, getAllPropertyInfo, getDamping, getDampingMode, getForceScaling, getForceScalingMode, getMaxForce, getMaxForceMode, getMaxLength, getMaxLengthMode, getOptLength, getOptLengthMode, getPassiveFraction, getPassiveFractionMode, getSubClasses, getTendonRatio, getTendonRatioMode, normalizeForceScaling, scaleDistance, scaleMass, setAxialMuscleMaterialProps, setDamping, setDampingMode, setForceScaling, setForceScalingMode, setMaxForce, setMaxForceMode, setMaxLength, setMaxLengthMode, setOptLength, setOptLengthMode, setPassiveFraction, setPassiveFractionMode, setTendonRatio, setTendonRatioMode, toString
equals
advanceState, createStateObject, getProperty, getPropertyHost, getPropertyInfo, hasProperty, hasState, hasSymmetricTangent, isWritable, postscan, scan, setPropertyHost, setPropertyInfo, symmetryOrStateChanged, updateMaterial, write, writeItems
public ConstantAxialMuscle()
Important: for historical reasons, this constructor sets the
deprecated forceScaling
property to 1000, thus scaling the
effective values of the maxForce
and damping
properties.
public ConstantAxialMuscle(double fmax)
forceScaling
property to 1000, thuis scaling the effective value
of fmax
.passiveFraction
and damping
properties are both set to 0,fmax
- maximum contractile forcepublic ConstantAxialMuscle(double fmax, double pfrac)
damping
property is set to 0, and the deprecated forceScaling
property is set to 1.fmax
- maximum contractile forcepfrac
- passive fraction: the proportion of fmax to apply as passive
tensionpublic ConstantAxialMuscle(double fmax, double pfrac, double damping)
forceScaling
property is set to 1.fmax
- maximum contractile forcepfrac
- passive fraction: the proportion of fmax to apply as passive
tensiondamping
- damping termpublic static ConstantAxialMuscle create()
forceScaling
term is set to 1.public static ConstantAxialMuscle create(double fmax)
passiveFraction
and damping
properties are both set to 0,
and the deprecated forceScaling
property is set to 1.fmax
- maximum contractile forcepublic double computeF(double l, double ldot, double l0, double ex)
AxialMaterial
computeF
in class AxialMaterial
l
- spring lengthldot
- spring length time derivativel0
- spring rest lengthex
- excitation value (varying from 0 to 1)public double computeDFdl(double l, double ldot, double l0, double ex)
AxialMaterial
computeDFdl
in class AxialMaterial
l
- spring lengthldot
- spring length time derivativel0
- spring rest lengthex
- excitation value (varying from 0 to 1)public double computeDFdldot(double l, double ldot, double l0, double excitation)
AxialMaterial
computeDFdldot
in class AxialMaterial
l
- spring lengthldot
- spring length time derivativel0
- spring rest lengthexcitation
- excitation value (varying from 0 to 1)public boolean isDFdldotZero()
AxialMaterial
isDFdldotZero
in class AxialMaterial