Chapter 4 Mathematical Models of the Human Musculo-skeletal System
4.1 Skeletal models
4.1.3 Single segment pendulum model, system parameters, equations and
The Newton-Euler equations that describe the forces and movement dynamics of the pendulum segment were described in section 2.2.1.1. In order to use the Newton-Euler based model to simulate and predict the movement of a single segment pendulum, the equations describing the model must be reordered and rearranged to allow the forces and movement dynamics to be computed. The model equations that have been reordered into equations for simulation are described in this section. The standard approach to simulate the model is described in Yamaguchi (Yamaguchi, 2001), and forms the basis of the method described in this section.
Figure 4.4. Model representation of single segment pendulum shown in Figure 4.3b. Unit vectors of the global reference frame is 1 meter in the horizontal or vertical axes. A0 is the fixed
pivot point, A* is the centre of mass of segment A
This single segment pendulum has the physical properties shown in Table 4.1.
Table 4.1. Mechanical properties of single segment physical pendulum used for modelling
Description Symbol Value
Mass of segment A (including markers)
m
A 0.136 kg Length from pivot A0 to centre of mass ofsegment A, A*
l
A A0 * 0.125 mMoment of inertia of segment A IA 2.955x10
In Table 4.1, the mass and length were directly measured. The moment of inertia for segment A, IA, was calculated at the point of the pivot A0 (centre of rotation of segment A) using the approximation of the moment of inertia for a rectangle:
2 2 1
( )
12m l w and the parallel axis theorem, as shown in Eqn 4.1.
0 2 2 2 * 1 ( ) 12 A A A A A I m l w m l (Eqn 4.1)
where l and w are the length and width of the segment as listed in Figure 4.1, which are 27cm and 1.9cm (3/4 inches) respectively.
l
A A0 * is the distance between the centre of mass A* and the pivot point A0 listed in Table 4.1.With the physical properties of the pendulum known, the movement of the pendulum model was then predicted using forward simulation, in which model variables at successive points in time (time steps) are calculated by numerical integration. The forward simulation can be separated into two parts: the first part, Part A, was the computation to obtain the segment’s angular acceleration
( ) A t
and angular velocity A( )t at a time step t. These were computed using the rearranged forms of the Newton-Euler’s equations described in section 2.2.1.1, which are the equations Eqn 4.2 to Eqn 4.5, and computed in the order they are presented. The second part, Part B, involved the numerical integration of A( )t and A( )t from Part A, to obtain the segment’s angular velocity and angle for the next time step tt , which are A(tt) and A(tt)
respectively, described by Eqn 4.7. The simulation repeatedly computes Part A and Part B, and advancing a time step after Part B to predict the movement of the pendulum.
To begin the forward simulation of the model, the simulation begins with its initial conditions: angle A(t 0) and angular velocity A(t0). It should also
be noted that the gravity vector g
0nˆ1 9.81nˆ2
, where nˆ1and nˆ1 are unit vectors in metres shown in the diagrams of the pendulums, e.g. Figure 4.4. The positional and angular descriptions of all segments in this section and for the two segments pendulum in section 4.1.4 are described in relation to the global space, which is the global space N. Angles are measured counter clockwise from the horizontal, in which zero degree (radian) is in the direction of the unit vector1
ˆ
n , as shown in Figure 4.4.
The Newton-Euler equations that describe the model shown in section 2.2.1.1 have been rearranged into the following equations to allow the segment’s angular acceleration A( )t to be computed from A( )t and A( )t for each time step t in the simulation. The derivations of these equations are also described. First, in order to allow forces and moment of forces to be computed, the locations of the pivot and the centre of mass of segment A have to be derived. Using the segment angle and its length in Table 4.1, and Eqn 2.1, the position of
0 ( )
A t and A*( )t can be found using Eqn 4.2.
0 0 0 1 2 0 1 2 * * ˆ ˆ ( ) 0 0 ˆ ˆ *( ) ( ) A A cos A( ) A A sin A( ) A t n n A t A t l t n l t n (Eqn 4.2) These locations of 0 ( )A t and A*( )t are then used to derive a vector between these two points to be used in the Newton-Euler equations previously presented in Eqn 2.15 and Eqn 2.17.
0
0 *( ) *( ) ( )
A A t A t A t
To compute the angular acceleration of segment A, all forces acting on the segment must be known. By rearranging Newton’s second law that describes the forces acting on segment A as shown in Eqn 2.15, the force of the fixed pivot N at A0 acting on A, FNA( )t , can be calculated:
0
2 * ( ) ( ) ( ) NA A A A A A F t m gm t t (Eqn 4.4)In Eqn 4.4, the term
02 *
( ) ( )
A t A A t
is the linear acceleration of segment A, i.e.
( ) A
a t , and is the centripetal acceleration of segment A towards A0 during the swing of the pendulum. It is derived using the centripetal acceleration:
2r
where r is the radius of arc of the trajectory. In this case the radius is A A0 *( )t ,which is the vector between the pivot A0 and centre of mass A*. It should be noted that using centripetal acceleration to derive the linear acceleration is additional to the method shown in (Yamaguchi, 2001). Yamaguchi uses
( ) ( )
NA A A A
F t m gm a t instead of Eqn 4.4, where a tA( ) is the linear acceleration of the point A*. However, with the equation in such form, there are two unknown variables in the equation, which are FNA( )t and m a tA A( ), for which additional expressions must be obtained.
Finally the angular acceleration of segment A can be computed, by rearranging Euler’s second law describing the segment’s moment as shown in Eqn 2.17. Summing the products of distances (Eqn 4.3) and perpendicular forces (Eqn 4.4)
from the centre of mass, gives the angular acceleration of segment A:
0 *
1 ( ) ( ) ( ) A A A NA A t t F t I (Eqn 4.5)For Eqn 4.5, note that gravity acting on segment A is not included, as the moment is computed at the centre of mass, this gives a distance of zero between the averaged point of gravity acting on the mass and the point of moment calculation, therefore the moment due to gravity is eliminated.
When describing vectors as 1x2 matrices as shown in Eqn 4.6, the moment of a force ( )t F t( ) is calculated using the following operation.
1 2 1 2 ˆ ˆ ˆ ˆ 0 1 ( ) ( ) ( ) ( ) ( ) ( ) 1 0 T n n n n t F t t t F t F t (Eqn 4.6)
It should also be noted that in Eqn 4.5, the moment was calculated at the centre of mass instead of at the point A0 as shown in (Yamaguchi, 2001). If the moment is summed around the pivot A0, then it would also need to include the linear acceleration of the segment a tA( ), in which case the moment would be
0 *( ) A A( )
A A t m a t
. However as discussed for Eqn 4.4, if the linear acceleration of the segment is indeterminable or if the centripetal acceleration derivation approach shown in Eqn 4.4 is incorrect, then computing the moment around A0 would introduce an error.
Eqn 4.2 to Eqn 4.5 complete the computation required for each simulation time step t, and gives the angular velocity A( )t (directly taken from the input angular velocity for the time step t) and angular velocity A( )t from Eqn 4.5. The forward simulation then integrates the angular velocity and angular acceleration, to give the angle and angular velocity for the next time step tt, which are A(tt) and A(tt) respectively.
( ) ( ) ( ) ( ) ( ) ( ) A A A A A A t t t t t t t t t t (Eqn 4.7)
Eqn 4.7 is the Euler’s method (first order explicit solver), which is the simplest method to solve ordinary differential equation. However when this explicit Euler method was used, the fixed step size causes large numerical error when variables (angle, velocity and acceleration) tends to zero. Therefore an improved ODE solving method was used to simulate this forward dynamic model: ode45 ordinary differential equation solver (MathWorks®, 2009) in MATLAB 2009b, where ode45 performed the integration shown in Eqn 4.7. The time step t was
variable and determined internally by ode45 using the Runge-Kutta method to reduce accumulated numerical errors (MathWorks®, 2009).
The starting position and angular velocity of the pendulum for the simulations were obtained from measurement of the physical pendulum movement shown in section 4.1.1 and 4.1.2. The simulated trajectory is shown together with the measured data in section 4.1.5.
4.1.4 Two segments pendulum model, system parameters, equations