The time varying quantities muscle-tendon lengths (lMT), muscle-tendon velocities (vMT), and moment arms (r) are calculated using polynomial functions of the joint angles and velocities that share common coefficients. For muscles that span a single degree of freedom (DOF) and for the selection of a cubic polynomial, the muscle-tendon length is approximated using the following equation:
lMT(t)=b0+b1θ+b2θ2+b3θ3 where θ is joint angle and b0 through b3 are constant coefficients.
Muscle-tendon velocity can then be calculated using the first derivative with respect to
time of muscle-tendon length.
vMT(t)=dtdlMT=b1θ˙+2b2θθ˙+3b3θ2θ˙ where θ˙ is joint angular velocity. Similarly, the muscle-tendon moment arm can be calculated from muscle-tendon length using a relationship from An et al.:
r(t)=−∂θ∂lMT=−b1−2b2θ−3b3θ2 The negative sign in this expression is needed for consistency with the OpenSim musculoskeletal modeling environment, where a positive joint moment causes a positive
change in joint angle. For muscles that span two DOFs and for the selection of a cubic polynomial, these equations are extended as follows:
lMT(t)=b0+b1θ1+b2θ2+b3θ1θ2+b4θ12+b5θ22+b6θ12θ2+b7θ1θ22+b8θ13+b9θ23 vMT(t)=b1θ˙1+b2θ˙2+b3(θ˙1θ2+θ1θ˙2)+2b4θ1θ˙1+2b5θ2θ˙2+... b6(2θ1θ˙1θ2+θ12θ˙2)+b7(θ˙1θ22+2θ1θ2θ˙2)+3b8θ12θ˙1+3b9θ22θ˙2 r1=−∂θ1∂lMT=−b1−b3θ2−2b4θ1−2b6θ1θ2−b7θ22−3b8θ12 r2=−∂θ2∂lMT=−b2−b3θ1−2b5θ2−b6θ12−2b7θ1θ2−3b9θ22 For muscles that span three, four or more degrees of freedom, the equations for muscle-tendon length, muscle-tendon velocities, and moment arms are extended in a similar manner by adding terms corresponding to the additional joint angles and velocities.