public class EquilibriumAxialMuscleTest extends UnitTest
| Constructor and Description |
|---|
EquilibriumAxialMuscleTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args) |
void |
test() |
void |
testCompliantDerivatives(EquilibriumAxialMuscle mat,
boolean lmDotFromLDot,
double lnorm,
double a,
double ldot)
Checks computeDFdl() and computeDFdldot() for a compliant tendon against
numeric derivatives of computeF(), holding the muscle state from the
previous step fixed.
|
void |
testCompliantScaling(EquilibriumAxialMuscle mat,
boolean lmDotFromLDot)
For a compliant tendon in mid-simulation, scaleDistance(s) should scale
the force by s and leave the stiffness and damping unchanged, both from
cached values and after recomputing the muscle length.
|
void |
testDerivatives(EquilibriumAxialMuscle mat) |
void |
testScaling(EquilibriumAxialMuscle mat)
Changing units with scaleDistance() or scaleMass() should scale the
force by s, with maxContractionVelocity and fibreDamping unchanged.
|
void |
testSideQuery(EquilibriumAxialMuscle mat,
boolean lmDotFromLDot,
double lfrac)
Checks that a query at a length l2 other than that of the step start,
made before the next advanceState(), returns the same values as the next
step at l2, and does not change the next step.
|
check, checkEquals, checkEquals, checkEquals, checkEquals, checkEquals, checkEquals, checkEquals, checkEquals, checkEquals, checkEquals, checkNormedEquals, checkNormedEquals, getSilent, printUsageAndExit, runtest, setSilentpublic void testDerivatives(EquilibriumAxialMuscle mat)
public void testCompliantDerivatives(EquilibriumAxialMuscle mat, boolean lmDotFromLDot, double lnorm, double a, double ldot)
public void testScaling(EquilibriumAxialMuscle mat)
public void testCompliantScaling(EquilibriumAxialMuscle mat, boolean lmDotFromLDot)
public void testSideQuery(EquilibriumAxialMuscle mat, boolean lmDotFromLDot, double lfrac)
< 1 the muscle
is on the ascending limb, and Dm > 0, so that the vm/ldot ratio
Dt/(Dm+Dt) is not clipped to 1.public static void main(java.lang.String[] args)