public SkeletalMuscleImpl(String name, DynamicalSystem dynamics) throws StructuralException {
myName = name;
myTermination = makeTermination();
if (dynamics.getInputDimension() != 2) {
throw new StructuralException("Input dimension of dynamics must be 2 (activation; length)");
}
if (dynamics.getOutputDimension() != 1) {
throw new StructuralException("Output dimension of dynamics must be 1 (force)");
}
myAFDynamics = dynamics;
myIntegrator = new RK45Integrator();
}