Do Pico 2014
Do Pico 2014
Do Pico 2014
_ 1 ^
Uq; _ t Uq q_ Ut 0
q; (4) n1
q q q (10)
bh2 n1 n
q; q;
U _ q U
; t U q q _ q q_ U
_t0 (5)
_ q; q; ^ 1 q 1 q_ 1 1 q
q n (12)
U _ q; t Aq A_ q_ b_ 0 (6) n
bh2 n
bh n
2b
The formulation developed in this section exactly satisfies all where h is the time step and b and c are scalar parameters. These
the kinematic relations (2) and (3) and their derivatives, (4)(6). can be chosen together with the generalized-a parameters df and
This will be accomplished in two stages: first, the equations of dm, according to Ref. [22], to obtain different integrators: trape-
motion stage, in which only Eq. (2) along with the dynamic equi- zoidal rule, Newmark, and HHT (HilberHughesTaylor) are par-
librium equations are enforced; second, the velocity and accelera- ticular cases of the expressions presented here.
tion projections, in which Eqs. (3)(6) are imposed. Substituting Eqs. (9) and (10) in Eq. (7a) and scaling by a factor
of bh2 =1 dm , a nonlinear system of equations for qn1 is
3.1 ALI3-P Formulation: Equations of Motion. As obtained, which can be solved by means of the following
described in Ref. [22], the use of the generalized-a integrator NewtonRaphson iteration:
(15) @V _ T_ aU _ T_ r 1U
Pq_ q_ 1U _ U T_ aU U
T_ r
q
i @ q_ q q q
@f qn1 i 1 df
Mn1 chCn1 Pq_ q_ 1UTq aU _ UT r 1AT aU AT r
@qn1 1 dm
q
ii T T
Pq_ q_ 1Uq a Uq q_ Ut Uq r
bh2 UTqq aU ki1 UTq aUq K
n1 1AT aAq_ b AT r
0 (21)
(16)
i 1 df h ii Expression (21) represents a nonlinear system of n equations
Mn1 chC bh2 UTq aUq K with n m m unknowns, q; _ r, and r; therefore, the equations
1 dm n1
have to be complemented with m m velocity-level constraint
equations (18) and (19). For the solution of the nonlinear system,
where K Qq, C Qq_ , and UTqq UTq is the third order the following fixed-point iteration can be used:
q
tensor formed according with the rules provided in the Nomencla-
ture section. For the tensorvector products involving UTqq , the P 1UTq aUq 1AT aA q_ i1
rules explained in the Nomenclature also apply.
Pq_ 1UTq aUt UTq ri1 1AT ab AT r
i1 (22a)
From Eqs. (13) and (14), it can be noticed that, for efficiency
reasons, the same iteration, i, is used to update the generalized ri1 ri 1aU
_ (22b)
coordinates q and the Lagrange multipliers k . From a theoretical
i1 i
point of view, the augmented Lagrangian scheme consists of solv- r
r
1aU (22c)
ing Eqs. (7a) and (8b) for a constant set of Lagrange multipliers
and, once the convergence is attained, the update formula (7b) is As in the augmented Lagrangian schemes described in Sec. 3.1,
applied and the dynamics equations solved again for the new mul- the update equations (22b) and (22c) are intended to make the
tipliers. This process has to be repeated until the Lagrange multi- Lagrange multipliers r and r converge together with the fixed-
pliers converge. Nevertheless, since the proposed integrator is point iteration (22a).
implicit, advantage can be taken from the corrector iteration of If a penalty formulation is used for the projection instead of an
the integrator to update the multipliers, thus obtaining the conver- augmented Lagrangian one, a computationally less demanding
gence of both quantities simultaneously. noniterative scheme can be obtained
P 1UTq aUq 1AT aA q_ Pq_ 1UTq aUt 1AT ab (23)
3.2 ALI3-P Formulation: Velocity and Acceleration Pro-
jections for Nonholonomic Systems. The aim of this section is
to properly extend the projections presented in Refs. [11] and [12] 3.2.2 Acceleration Projection. Similar to the velocity projec-
to nonholonomic systems in order to force the dependent veloc- tion, the problem to solve for the accelerations can be stated as
ities and accelerations coming from the integration stage of
1
Sec. 3.1 to fulfill conditions (3)(6). min V q q T Pq
q (24)
2
3.2.1 Velocity Projection. The problem to solve for the veloc-
s:t : q; q;
1U _ q; t 1 Uq qU _ qq U _t 0 (25)
ities can be formulated as
:
q; q;
1 U _ q; t 1 Aq A_ q_ b_ 0 (26)
1
min V q_ q_ T Pq_ q_ (17)
2
_
where q are the acceleration estimates coming from the solution
s:t : 1Uq; q;
_ t 1 Uq q_ Ut 0 (18) of the equations of motion after the NewtonRaphson iteration
q; q;
1U _ t 1Aq_ b 0 (19) (13) and (14) and q are the accelerations resulting from the projec-
tion. Again, in order to simplify the notation, the subindex n 1 is
avoided in this section.
where q_ are the velocity estimates coming from the solution of
The problem in Eqs. (24)(26) can be transformed into the fol-
the equations of motion after the NewtonRaphson iteration (13)
lowing unconstrained one:
and (14), q_ are the velocities resulting from the projection, P is
the weight matrix (or projection matrix), and 1; 1 are scalar con- 1 1 T
stants for the weighting of the constraints in the minimization min V q
q T Pq
q 1U Tj
aU U
q 2 2
problem. Observe that, in order to simplify the notation, the subin-
dex n 1 indicating the time-step in which all the quantities are 1 _ T _ T
_ j
1U aU U (27)
evaluated is avoided in this section. 2
j i1
ji _
1aU (28c)
3.3 ALI3-P Formulation: Implementation. The present sec-
tion summarizes the steps required to implement the formulation
Again, an inexpensive noniterative scheme is possible, less
accurate but more efficient than Eq. (28) (1) (1) n 0; t t0 ; q0 ; q_ 0 compatible with the constraints.
0 (e.g., by means of Eq. (7a) with k 0).
(2) Calculate q
P 1UTq aUq 1AT aA q
(3) Time-step loop: n n 1; t t h.
T _ q q_ U_ t 1AT a A_ q_ b_
q 1Uq a U
P (29)
0 0 0
(4) Predictor: qn1 ; q_ n1 ! Eq. (9); q
n1 ! Eq. (10).
3.2.3 Selection of the Projection Matrix. There is a number of
possibilities to select the projection matrix P and constants (5) Iteration loop: i 0
1 and 1. This selection strongly affects the behavior of the projec- i1
tions. In the case of the velocity projection, the choice has a useful (6) If i > 0, kn1 ! Eq. (14).
physical meaning in terms of energy dissipation, as described in
Ref. [18]. There are two interesting options: (7) Residual f i ! Eq. (15) and tangent matrix @f i =@q
! Eq. (16).
i1 i1
(1) The mass-orthogonal projections of Bayo and Ledesma (8) Corrector: qn1 ! Eq. (13); q_ n1 ! Eq. (9); q i1
n1
[11]: they are easy to extend to the nonholonomic case by ! Eq. (10).
choosing i
(9) Until convergence:
i 1, go
to 6. As convergence
i1 i
PM (30) criteria, qn1 qn1 < e or f i < e.
(10) Velocity Eq. (22) [or Eq. (23)] and acceleration projec-
1 1 1 (31) tions Eq. (28) [or Eq. (29)].
(11) Until the end of the simulation: go to 3.
The resulting expressions will be called Bayos projections
in this work. 4 Calculation of the Constraint Reactions
(2) The mass-stiffness-damping-orthogonal projections of Cua- for the ALI3-P Formulation
drado et al. [12]: the aim of these projections was to obtain
The velocity and acceleration projections of Sec. 3.2 modify
the same coefficient matrix for the projections and for the
the velocities and accelerations coming from the dynamic equilib-
tangent matrix of the equations of motion, in order to take
rium stage of Sec. 3.1. As a consequence, the reaction forces
advantage of the previous factorization of this matrix to
obtained at the end of the NewtonRaphson iteration cannot be
carry out the projections in a very efficient manner. In Ref.
considered accurate since the modification of velocities and accel-
[13], the expressions were developed for holonomic systems
erations performed in the projection step must be considered for
with the trapezoidal rule as integrator. The extension to non-
the correct evaluation of the constraint reactions. This is espe-
holonomic systems with the generalized-a integrator is
cially true if nonholonomic constraints exist, since they are not
straightforward, and the following relations provide equiva-
imposed at any level by the formulation of the equations of
lent expressions for the more general case presented here:
motion (7a).
1 df In this section, the calculation of the constraint reactions for the
PM chCn1 bh2 Kn1 1AT aA (32) ALI3-P formulation of Sec. 3 is presented.
1 dm
1 df 2
1 1 bh (33) 4.1 Constraint Reactions Coming From the Dynamic
1 dm
Equilibrium Stage. The constraint forces resulting from the
dynamic equilibrium stage of the ALI3-P formulation can be esti-
This choice makes the coefficient matrix of systems (22a) and mated by the following expression obtained from Eq. (7a):
(28a) equal to the approximate expression of the tangent matrix h i
(16), and therefore, the previous factorization of the tangent ma- Qdyn T
U Uq k aU (36)
trix, carried out to solve the system of equations (13), can be used. df
If the exact expression of the tangent matrix is used instead of
Eq. (16), the following selection provides the same advantage: where the subscript df means weighted evaluation between time-
steps n and n 1 like in Eq. (8b). The Lagrange multipliers kn1
are the Lagrange multipliers after convergence of Eq. (7). There-
1 df fore, the use of the iteration subscript i was avoided here for
PM chCn1 simplicity.
1 dm
h i Note that the nonholonomic constraints do not contribute at all
bh2 UTqq aU k K 1AT aA (34) to the reaction forces of equation (36). Moreover, the expression
n1 is also valid if the constraint equations are fulfilled only up to
T
Qacc
Ur Ur q ar Ur jr (45)
4.2 Constraint Reactions Coming From the Projection
Stage. The projections cause changes in the velocities and accel-
erations of the system in order to make them compatible with the Qacc T
r Ar a
_ r j
r U r (46)
U
constraints. Considering the linearity of the equations of motion
Eq. (7a) with respect to the accelerations, any change in the accel- where Eq. (45) is for individual contributions of holonomic
erations to fulfill the constraint Eqs. (5) and (6) can be interpreted constraints and Eq. (46) is for individual contributions of nonholo-
in terms of missing constraint reaction force terms. Thus, the nomic constraints.
missing reactions coming from the acceleration projection (28a)
can be expressed as
4.2.2 Constraint Reactions for the Evolved Cuadrados
Qacc
U Mq
q (40) Projections. Using Eqs. (32) and (33) in Eq. (42), the constraint
reactions can be directly obtained as
Equation (40) gives us the total contribution of all the constraint
reactions to all the generalized coordinates. In this sense, it is
T 1 df 2
equivalent to Eq. (36), and therefore, it is not useful to distinguish Qacc
U U q bh a U j
the contribution of an individual constraint to the reactions, as 1 dm
explained before. The following derivation intends to obtain 1 df 2 :
expressions equivalent to Eq. (38), which make it easier to iden- AT
bh a U j
1 dm
tify the contribution of each constraint separately. From Eq. (28a)
1 df
: chCn1 bh2 Kn1 1AT aA q (47)
q
1 dm
Pq UTq 1aU
q j AT 1a U
j
(41)
Note that in Eq. (41), it is important to keep both terms, the multi- Again, in the case in which convergence of the projection itera-
pliers and the acceleration constraints, so that it is not necessary tion has been achieved and the satisfaction of the constraint equa-
to achieve the full convergence of the projection process. Even tions (5) and (6) is good, the following simplified expression is
the use of Lagrange multipliers can be completely avoided and obtained:
where Eq. (52) is the expression for holonomic constraints and 5.2 Three-Dimensional Rolling Disk. The second test prob-
Eq. (53) the one for nonholonomic constraints; Qdyn lem is a 3D rigid disk rolling on the horizontal xy plane (Fig. 3)
Ur is given by
Eq. (38); Qacc
Ur and QU
acc
r are given by Eqs. (45) and (46), respec-
tively, for Bayos projections and they are given by Eqs. (49) and
(50), respectively, for evolved Cuadrados projections. It is impor-
tant to note that, from Eq. (53), only the projections contribute to
the generalized constraint forces of nonholonomic constraints.
One important fact to note about the generalized reactions
described before is that they are obtained from the dynamic equi-
librium stage and the acceleration projection stage exclusively.
The velocity projection stage does not play any role in the expres-
sions obtained. In the Appendix, new approximate formulae to
determine the constraint reactions from the velocity projections
are presented as additional material for the reader, but they are Fig. 1 Nonholonomic constraint restraining the velocity of
just approximate relations that allow to have an estimation of the mass A to be collinear with segment AB
6 Conclusions
Existing ALI3-P formalisms were not designed to tackle nonho-
lonomic constraints. The need for velocity and acceleration pro-
jections, which are essential for the stability and accuracy of the
formulation, introduces constraint reaction forces required to ful-
fill the constraint derivatives, which are not imposed by the equa-
tions of motion alone.
Fig. 5 Reaction forces fx and fy at contact point C during In this work, the extension of the ALI3-P formulation to nonho-
motion of the disk, compared to mxP and myP lonomic systems was accomplished, and a simple and efficient
technique to obtain the reaction forces coming from both the
equations of motion and the projections was presented. Results
obtained from the forward-dynamics simulation of three examples
showed that the method is able to provide correct values of the
generalized constraint forces associated with holonomic and non-
holonomic constraints.
Acknowledgment
The first author acknowledges the support by Award No. NSF
CMMI-1130667 and by the Computational Science Laboratory at
Virginia Tech.
The second and fourth authors acknowledge the support by the
Natural Sciences and Engineering Research Council of Canada
(NSERC) and CMLabs Simulations, Inc.
Fig. 6 Three DOF crane
Nomenclature
Dq @D @D @D
@q1 @qj @qnc
2 Rsrnc
third order tensor of derivatives of matrix
D 2 Rsr with respect to vector q
Dq v Dq v
@D @D @D
v v v 2 Rsnc
@q1 @qj @qnc
tensor-vector product, where v 2 Rr is a
vector
Mq 2 Rnc nc mass matrix
q 2 Rnc vector of coordinates of the system
_ t 2 Rnc
Qq; q; vector of generalized forces, including Corio-
lis and centrifugal effects if present
t time
(.) d d2 @ @
; 2 ; t ; q
dt dt @t @q
Fig. 7 Actuation forces: (a) Bayos (top) and (b) evolved Cua-
drados (bottom)
Appendix: Approximate Value of the Constraint Reac-
tions Obtained From the Velocity Projection Formulae
Lagrangian scheme is mandatory to obtain acceptable results for Since velocities and accelerations are related by the integrator
the reactions. equations and both velocity and acceleration projections impose
The actuation forces corresponding to the first rheonomic con- exactly the same constraints, it is possible to approximately obtain
straint Eq. (58) using Bayos projections are shown in Fig. 7(a), the value of the constraint forces from the velocity projection.
where the contribution of the different terms and the total force From Eq. (21)
were represented. The theoretical value of the actuation force is
also represented in Fig. 7(a), calculated by means of the virtual Mq_ q_ UT 1aU
q
_ r AT 1aU r
work principle, in order to compare with the expressions devel- P Mq_ q_ (A1)
oped in this work. The scheme chosen for these projections is the
cheapest, noniterative penalty scheme. Velocities and accelerations coming from the equations of
The same forces solving with evolved Cuadrados projections motion stage and from the projections stage are, respectively,
are shown in Fig. 7(b). The scheme chosen for the projections in related by means of the following Newmark formulae: