Maggi 2
Maggi 2
GUIDANCE 113
This paper presents a unified theoretical basis for a class of methods that generate the governing equations of
constrained dynamical systems by eliminating the constraints. By using Maggi's equations in conjunction with a
common projective theory from numerical analysis, it is shown that members of the class are precisely characterized
by the basis they choose for the null-space of the variational form of the constraints. For each method considered,
the specific basis chosen for the null-space of the variational constraints is derived, as well as a dual basis for the
orthogonal complement. The latter basis is of particular interest since it is shown that its knowledge theoretically
Downloaded by UNIVERSITY OF OKLAHOMA on February 3, 2015 | http://arc.aiaa.org | DOI: 10.2514/3.20524
enables one to generalize certain methods of the class to calculate constraint forces and torques. Practical
approaches based on orthogonal transformations to effect this strategy are also outlined. In addition, since the
theory presented herein stresses a common, fundamental structure to the various methods, it is especially useful as
a means of comparing and evaluating individual numerical algorithms. The theory presented makes clear the
relationship between certain numerical instabilities that have been noted in some methods that eliminate a priori
constraint contributions to the governing equations by selecting an independent subset of unknowns. It is also briefly
indicated how this formalism can be extended, in principle, to the wider class of nonlinear nonholonomic constraints.
pertinent research in the spacecraft and mechanism dynamics recently, the method has not been amenable to actual calcula-
fields has been, to some degree, mutually isolated. This obser- tions and primarily has been of academic interest only. How-
vation has been noted by other authors.3 The lack of an ever, as shall be shown in this section, the advent of digital
overall viewpoint can be particularly disconcerting to those computers now permits a wide variety of practical numerical
interested in a "global" perspective of computational tech- implementations of the approach. Because of the apparent
niques for constrained dynamical systems. For example, the lack of familiarity with the technique, this section briefly
authors are interested in the development of computational develops the method.
algorithms appropriate for concurrent multiprocessors. In this Let S be a system of v particles, each of whose position r
context, the details involved in deriving the governing equa- relative to an inertial frame of reference is a function of N
tions via Newton's equations, Lagrange's equations, or generalized coordinates qk9 K = 1, .. . 9N and the time t. Sim-
Kane's technique are not nearly as important as determining ply stated, the principle of virtual work requires that the
the fundamental structure and numerical processes underlying difference in the virtual work of the applied forces and the
a wide variety of specific methods. virtual work of the inertial forces must vanish for all virtual
In this paper, it is shown that the class of computational displacements consistent with the constraints. Likewise, as a
methods described earlier9"11'17"20'31 may be characterized consequence of Newton's second law of motion for each
concisely in terms of Maggi's equations. The theoretical unifi- particle, the virtual work of the constraint forces must vanish
cation of these distinct techniques is accomplished by re- independently.
examining Maggi's equations in terms of modern linear oper-
ator theory. It is demonstrated that each method performs the
Downloaded by UNIVERSITY OF OKLAHOMA on February 3, 2015 | http://arc.aiaa.org | DOI: 10.2514/3.20524
dma - dr — \ d f - d r (la)
following fundamental numerical steps:
1) The equations governing each of the constraint-free, or
"relaxed," substructures are formed and then assembled into (Ib)
a set of system equations.
2) The equations of the "released" system are required to
be orthogonal to a specific subspace for solution, particularly In the preceding expressions, df is the resultant of all forces
the null-space of the variational constraints. This step is acting on a particle /?, excluding constraint forces dR, and all
equivalent to requiring that the projection of the system integrations are carried out over the entire system of particles.
equations onto the null-space of the variational constraints is The quantities dm, a, and dr are the mass, acceleration, and
zero. virtual displacement of a particle p. Because one can express
3) Constraint forces may be evaluated, if desired, by pro- the contemporaneous variation of r as a linear combination of
jecting the system equations onto the orthogonal complement the variations in the generalized coordinates 6qk,
of the null-space of the constraints.
It is shown, in fact, that the algebraic manipulation carried dr = ekdqk
out in each technique to produce a reduced system of equa-
tions simply amounts to selecting a different basis for the where
null-space of the constraints and its orthogonal complement.
Several practical benefits are derived from the theory pre- dr
(2)
sented. Foremost among the advantages of the representation
is that the theory emphasizes the common structure of these
problems. For example, although the methods based on La- Equation (la) can be rewritten in the following familiar form:
grange's equations may all perform the constraint force calcu-
lations outlined in step 3 above, Kane's technique and the (dma - d f ) - i'ekdqk=0 (3a)
"Kane-based methods" in Refs. 9, 10, and 31 do not explicitly
represent the constraint force contributions in their minimal or
formulations and, consequently, cannot present a general
strategy for their solution. In fact, Singh9 advocates using a (3b)
Lagrangian formulation if constraint forces are desired. On
the other hand, Wampler et al.31 suggest that a redundant where
formulation is questionable unless constraint forces are re-
quired. Although Wang and Huston20 remedy this situation dT^
by bringing the constraint force contributions into evidence, Ek(T)^(^r}-^
' dt \dqk) dqk
the relationship of the undetermined multipliers to those
appearing in a Lagrangian approach is not made clear. Fur-
thermore, no general plan of attack is suggested for their T= -dmv - v
calculation. It is shown herein that these methods all may be
generalized to calculate constraint forces in a systematic fash-
ion using a unified theory that exploits the fundamental
structure of the problem.
The remainder of this paper is organized into three sections.
4
and the summation convention has been used in Eqs. (2) and
The next section reviews Maggi's equations and their relation (3). For unconstrained problems, the variations bqk are inde-
to projective methods in operator theory. The following sec- pendent and their respective coefficients in Eqs. (3) must be
tion briefly outlines the relationship of the methods in Refs. 9, identically zero for k = 1,...,7V. With respect to constrained
10, and 17-19 to Maggi's equations. Finally, the last section problems, Eqs. (3) have limited direct application since dqk
summarizes some important benefits derived from the unified are not independent.
theory. However, it is possible to create independent virtual dis-
placements, thus resulting in a useful set of equations similar
to Eqs. (3). For holonomic systems, and a large class of
Maggi's Equations nonholonomic systems, constraints on the system can be
Maggi's equations were first presented in 1896, and then expressed in terms of D equations that are linear in the
again in 1901. Although the method is conspicuously absent differentials of the generalized coordinates as
from most texts in the English language, Neimark and Fu-
faev21 summarize the essentials of the theory. Until quite atk dqk + bi dt = 0, / = !,... ,D (4)
JAN.-FEB. 1990 COMPUTATIONAL METHODS FOR MULTIBODY SYSTEMS 115
Equations (5) and (6) now can be interpreted as requiring that g (r) =/>y (13)
the TV vector dq lie in the null-space of a, or that dq be
orthogonal to the range of aT. Making use of the identity in Eq. (13), it is possible to express
Eqs. (12) in either of two ways.
dqe. null-space (a) (7a)
:0 (14a)
dq J_ range (a *) (7b)
) (14b)
Downloaded by UNIVERSITY OF OKLAHOMA on February 3, 2015 | http://arc.aiaa.org | DOI: 10.2514/3.20524
orthogonal transformation, i.e., 9T9 = 7, then 9 is an isome- concise in its representation of the solution. A knowledge of a
try. In other words, the transformation 9 is norm-preserving and A conveys both the specific basis chosen to reduce the
so that constrained system to minimal order, as well as the projection
operator selected to calculate constraint forces. It will be
I E(T)-Q- fi« I = || 9{E(T) -Q- (19) shown presently that the theory is sufficiently detailed to
provide an excellent means of tabulating computational alter-
A judicious choice of 9 can greatly simplify the form of the natives that have appeared in recent literature.
norm shown above, and lead to a straightforward solution
procedure. Typical choices of 9 are derived from the QR and Related Methods
SV decompositions.22
Equations (15), (16), and (19) provide a complete descrip- Kane's Method
tion of the solution for the constraint forces. When the Kane's method is a collection of steps, which, when fol-
calculations are performed via orthogonal transformations, lowed, can yield the smallest possible set of governing equa-
and not the normal equations, the solution exhibits well- tions for a constrained dynamical system. It will now be
known stability characteristics. However, Eqs. (15) and (16) shown that Kane's method can be considered as an analytical
are too general to permit a detailed comparison of methods procedure for choosing the null-space basis [Al9...,Af] in Eq.
that choose different bases in A and p. An alternative descrip- (11). The following steps summarize the approach:
tion of Maggi's equations given in Ref. 23, although not 1) Choose TV generalized coordinates qk, k = 19...9N9 suffi-
computationally efficient, depicts information regarding the cient to represent every configuration of the system. These
Downloaded by UNIVERSITY OF OKLAHOMA on February 3, 2015 | http://arc.aiaa.org | DOI: 10.2514/3.20524
bases selected for p and A in a compact form. In addition, the coordinates may be redundant through choice, or will exceed
formalism displays enough information to reconstruct the the number of degrees of freedom of the system when the
projection operator PaT explicitly. In fact, when mutually system is constrained.
orthogonal bases are chosen for A and p, Maggi's equations 2) Choose N quantities Uk9 k = !,...,#, the "generalized
generate the same expressions obtained in the least-squares speeds," defined in terms of the generalized holonomic veloc-
solution of Eq. (19). ities q according to
Papastavridis23 generates the governing relations via Mag-
gi's equations by first supplementing the constraint matrix a (27a)
to form a full-rank TV x N matrix a.
or as
U=Yq (27b)
Next, the inverse A = a ~ l can be calculated and partitioned This definition is valid only if one can solve for each qk
in the following manner: uniquely in terms of Uk. That is, the matrix Y must be
invertible. If F"1 =y, one has
A] (21a)
q^ynUk+Z! (28a)
(21b) or
dA = l (22) (28b)
T
By inspection, it is clear that the columns of a and A' are 3) Express all constraints on the system in terms of D
reciprocal bases for the range (a7). Likewise, if the columns of equations of the form
a'T and A span the same space, they are dual bases for the
null-space (a). By multiplying Eq. (12a) by AT, one obtains
the governing relations
(A')T{E(T)-Q} =1 (23a)
(29)
(A)T{E(T)-Q} = 0 (23b)
These constraints arise either because the system is nonholo-
Upon comparing Eqs. (23) and (16), one can see that the nomic or by differentiating holonomic constraints due to
projection onto the range (a7) is easily constructed from the redundant coordinates qk. Another useful representation of
dual basis (A')T when aT and A' span the same space. these constraints is achieved by partioning the N vector U into
an / = (N — D) vector of "independent" generalized speeds U1
PaT=aT(A') (24) and a D vector of "dependent" generalized speeds UD.
The precise relationship defining the dual basis [Ai,...,A'D] of
[af,...,a£] can be extracted from Eq. (21), and is simply
the summation runs from 1 to N. The quantities vt are defined corresponding constraints in the notation of the preceding
to be the "partial velocities" of particle p. section are
5) Lastly, Kane postulates the governing dynamical equa-
tions cU + 0 = 0 (37a)
T = 0, (32) (37b)
where F{ and Ff are defined via integration over all of the so that
particles.
= cY = [I -W]Y (38)
(33a) But the columns of the matrix A =yC clearly constitute a
basis for the null-space of the variational constraints since
Ff = -\ dma • vt (33b)
aA = (39)
Although Kane's terminology is quite different, his method Alternatively, the analytic nature of this formulation enables
can be derived in terms of the more common virtual work the solution procedure to be represented by the method
expressions of the preceding section. If Eqs. (28) and (30) are described in Ref. 23. In this case, by combining Eqs. (29) and
Downloaded by UNIVERSITY OF OKLAHOMA on February 3, 2015 | http://arc.aiaa.org | DOI: 10.2514/3.20524
substituted into (36), one obtains the dual bases that may be used to calculate
the reduced equations as well as the constraint forces in Eqs.
dr dr (23). These bases are depicted in Table 1. It should be pointed
out, however, that it is not meant to suggest in Table 1 that
the matrices y and Y need to be formed in a practical
(34) implementation of Kane's method or its related variations. As
will be illustrated, the dual bases can be utilized in this case
then the partial velocities may be obtained by inspection as without forming y or Y.
Gaussian
elimination
Q* decomposition \ *
Kirn 1986
Singh 1985
SV decomposition
-W W
Kane/Huston 1987
118 KURDILA, PAPASTAVRIDIS, AND KAMAT J. GUIDANCE
are displayed in Table 1. It should also be noted that premul- One can now change basis from y to A by the normal
tiplication by (A')T for the method by Wehage and Haug in equations A = (oaT)~1aQly. Making this replacement above
Table 1 generates identical expressions for the Lagrange gives the equations used to calculate the Lagrange multipliers
multipliers in Eq. (24) of Ref. 17. in Ref. 19.
Mani's Method (47)
Although Gaussian elimination has been used quite effec^
tively in some simulations utilizing coordinate partitioning,27 The dual bases appropriate for this method are shown in
one deficiency in the method has been noted in Ref. 18. The Table 1. Again, Eq. (47) can be derived in short order by
choice of a fixed set of independent coordinates may lead to simply extracting the dual basis A' from Table 1 for Kirn's
poorly conditioned matrices that must be factored. On in- method.
specting the null-space matrix A in Eq. (41), one can observe
that the columns of A span the null-space of a only as long as Singh/Huston's Method
(aD)~l exists. Since the matrix a = [aD a1] is time varying, in As another example of computational applications, Singh
general, one cannot guarantee that this inverse is well defined and Likins9 present a modification of Kane's method based
for the entire time span of interest. on singular-value decomposition that is similar to Mani's
Mani addresses this problem by utilizing the singular-value work. In this approach, Kane's equations are first generated
decomposition of ar, for the unconstrained system, i.e., for C — /in Eq. (25). As in
Mani's method, the singular-value decomposition is
aT=[Ul
Downloaded by UNIVERSITY OF OKLAHOMA on February 3, 2015 | http://arc.aiaa.org | DOI: 10.2514/3.20524
(42)
(48)
where
where C, Z, and V are defined in the manner analogous to
U = [Ul U2] is an N x N orthogonal matrix (43a) that shown in Eq. (42), is then used to obtain a basis [U2] for
the null-space of the coefficient matrix c in Eq. (29). It is
= I M i s an N x D diagonal matrix (43b) subsequently shown that the reduced governing equations are
(49)
and V is a D x D orthogonal matrix. The diagonal terms a
are the singular values of the constraint matrix. In terms of Comparing Eqs. (9), (12), and (26) with the preceding, one
the theory presented earlier, the integration process carried can alternatively express the equations derived by Singh and
out by Mani is equivalent to choosing the dual bases as Likins as
depicted in Table 1. It should be noted that the actual
algorithm outlined in Ref. 18 is quite complicated in that the (50)
singular-value decomposition is carried out on an "as needed"
basis at certain time steps, and the constraint violation is These equations are identical to those derived in Ref. 20 for a
corrected by employing Newton-Raphson iteration. very specific choice of basis for the null-space of the con-
Null-space Updating straints. Since the columns^of U2 are a basis for the null-space
A more recent technique is based on the QR decomposition of c, it is clear that A = yU2 is a basis for the null-space of a.
of the constraint matrix a.19 In this decomposition, the N x D Consequently, it is apparent that this method simply chooses
matrix aT is expressed as the product of an N x N orthogonal a different basis for the null-space of a in the method of
matrix Q and a D x N upper-triangular matrix R. It is a virtual work. As with all the previous methods, this approach
characteristic of the decomposition that the matrix Q can be also may be succinctly represented in terms of the dual bases
partitioned into two matrices Q1 and Q2, where the columns it uses for the null-space of the variational constraints and its
of Ql are a basis of the range of aT and the columns of Q2 are orthogonal complement. These choices are found in Table 1.
a basis for the null-space of a,
Advantages of the Unified Theory
Several benefits can be derived from the theory discussed in
Q2] (44) the section regarding Maggi's equations. In one sense, all of
the advantages of the approach stem from the fact that the
where Q is an TV x N orthogonal matrix and R an N x D description given enhances one's ability to compare and con-
upper-triangular matrix. trast specific techniques. For instance, in this section, it is
In Ref. 19, Ql and Q2 are used to create two other matrices shown that the features of Lagrange's equations that make
^! and ()2 which, although not orthogonal, still satisfy constraint force calculation possible may be found in other
Maggi's equations. reduced formulations, if they are perceived in a "unified"
context. It is also demonstrated that certain ill-conditioning
Qi = Q\(aQ\)~l (45a) noted in coordinate partitioning methods is predicted by the
unified theory, and has been found, in some implementations
a lfl
62 = V — Qi( Qi) ~ ](?2 (45b) of Kane's method. As a final example, it is illustrated that the
method provides a foundation for numerical methods suitable
Choosing Q2 as the matrix A and premultiplying Lagrange's for a wider class of constraints.
equations by A T again produces the reduced governing equa-
tion in Eq. (33) of Ref. 19. Constraint Force Calculation
The calculation of Lagrange multipliers in Ref. 19 is also a One benefit of the general null-space decomposition theory
special case of the general method in the preceding section of presented earlier is that it enables calculation of Lagrange
this paper. Choosing the columns of Ql as the basis of the multipliers from Kane's equations after the reduced system of
range of a r , Eq. (18) allows one to calculate the Lagrange equations has been solved. Neither Kane's method25 nor its
multipliers referred to this basis. recent modifications9'10'31 have suggested an equivalent means
of calculating the eliminated constraint forces. Furthermore,
the development that follows extends the work in Ref. 20 in
two important respects. Although the derivation in Ref. 20 is
(46) limited to rigid bodies, no such assumption is made in this
JAN.-FEB. 1990 COMPUTATIONAL METHODS FOR MULTIBODY SYSTEMS 119
terms of the generalized speeds, as shown in Eq. (29), the clarifies that a general formulation of Kane's method may
solution can be expressed exclusively in terms of matrices suffer the same fate if the condition of (cD)~l becomes poor.
available in Kane's formulation as The fact has been documented elsewhere (see, for example,
Ref. 31).
A = min* (53a)
Nonlinear Nonholonomic Constraints
= Pc7(F + F*) (53b)
A third advantage derives from one's ability to extend the
As noted earlier, specific forms for the projection theory easily to (first-order) nonlinear nonholonomic con-
P c r= projection onto the range of CTcan be derived from the straints, i.e., nonintegrable constraints of the form
normal equations, or from the dual basis for Kane's method
in Table 1. (60)
Following derivations along the same lines, Lagrange multi-
pliers also are readily calculated in Singh's approach. It is still Carefully note that these constraints differ from those shown
true that in Eqs. (4) and (29), in that they are not required to be linear
in the generalized velocities.
(54) The physical and analytical aspects of these constraints have
already been examined over the past 75 years (see, for exam-
However, in this method, the singular-value decomposition of ple, Refs. 29 and 30 and references cited therein). As of yet,
c has been calculated already. Using the fact that an orthogo- however, very little research on their computational treatment
nal transformation is an isometry, the solution of Eq. (54) can has appeared on the open literature. Such an extension is,
be calculated via standard techniques in numerical methods.22 however, straightforward, in principle, within the theory de-
scribed herein. Following the derivations carried out earlier in
(55) this paper and the developments outlined in Refs. 29 and 30,
one need only replace the constraint matrix a from Eq. (4) by
It is important to note that all of the information required to the Jacobian matrix of partial derivatives
evaluate the constraint forces is readily available and no
further matrix decomposition need be performed. This same (61)
result can be derived simply by inspecting the dual basis for
Singh's method in Table 1. Equations (53) and (55) illustrate
the fact mentioned earlier that the dual bases shown in Table With this new definition of the constraint matrix a, one can
1 can be utilized in practical implementations without expli- follow the same computational steps outlined in Eqs. (5-16)
citly forming the matrices y and y. to obtain the following governing equations:
AT{E(T)-Q}=$ (62a)
Explanation of Singularities
A second advantage of the unified theory may be attributed (62b)
to the ease with which the class of methods can be compared.
In this example, Singh9 noted certain "numerical instabilities" where aA = 0.
in a general implementation of Kane's method, but offer no The authors hope to examine in detail this nontrivial area
quantitative explanation for their origin. By comparing the in future publications.
basis implicitly chosen in Kane's method to that selected in
the method of Ref. 17, however, the nature of the singularities Hybrid Methods
is brought to light.
Finally, the theory presented herein suggests interesting
In Kane's method, it is assumed that the constraint matrix
c has the form "hybrid" methods that can be obtained from combining
methods shown in Table 1. For example, the method of
= [7 -W\ (56) null-space updating described in Ref. 19 need not be limited
only to Lagrangian formulations. By inspection of Table 1, it
This requirement is equivalent to stipulating that one can is clear that a null-space updating formulation of Kane's
partition a constraint matrix c = [CD \ c1] so that CD is invert- equations is obtained by choosing the dual bases
ible, whence
(63)
cU + <£' = 0 (57a)
120 KURDILA, PAPASTAVRIDIS, AND KAMAT J. GUIDANCE