HHT Alpha Method
HHT Alpha Method
HHT Alpha Method
Dan Negrut Department of Mechanical Engineering The University of Wisconsin Madison, WI-53706 [email protected] Rajiv Rampalli MSC.Software Ann Arbor, Michigan 48105 [email protected] Gisli Ottarsson MSC.Software Ann Arbor, Michigan 48105 [email protected] Anthony Sajdak MSC.Software Ann Arbor, Michigan 48105 [email protected]
July 5, 2006
Abstract The paper presents theoretical and implementation aspects related to a numerical integrator used for the simulation of large mechanical systems with exible bodies and contact/impact. The proposed algorithm is based on the Hilber-Hughes-Taylor implicit method and is tailored to answer the challenges posed by the numerical solution of index 3 Differential-Algebraic Equations that govern the time evolution of a multibody system. One of the salient attributes of the algorithm is the good conditioning of the Jacobian matrix associated with the implicit integrator. Error estimation, integration step-size control, and nonlinear system stopping criteria are discussed in detail. Simulations using the proposed algorithm of an engine model, a model with contacts, and a model with exible bodies indicate a 2 to 3 speedup factor when compared against benchmark MSC.ADAMS runs. The proposed HHT-based algorithm has been released in the 2005 version of the MSC.ADAMS/Solver.
INTRODUCTION
The Hilber-Hughes-Taylor method: general considerations
The Hilber-Hughes-Taylor (HHT) method (also known as the alpha-method) [22] is widely used in the structural dynamics community for the numerical integration of a linear set of second Ordinary Differential Equations (ODE). This problem is obtained at the end of a nite element discretization. Provided the nite element approach is linear, the equations of motion assume the form M + Cq + Kq = F(t) q
The p p mass, damping, and stiffness matrices, M, C, and K, respectively, are constant, the force F p depends on time t, and q p is the set of generalized coordinates used to represent the conguration of the system. A precursor of the HHT method is the Newmark method [30], in which a family of integration formulas that depend on two parameters and is dened:
(1)
These formulas are used to discretize at time tn+1 the equations of motion (1) using an integration step size h: M n+1 + Cqn+1 + Kqn+1 = Fn+1 q (2c)
(2a) (2b)
Based on Eqs. (2a) and (2b), qn+1 and qn+1 are functions of the acceleration qn+1 , which in Eq. (2c) remains the sole unknown quantity that is obtained as the solution of a linear system. This method is implicit and A-stable (stable in the whole left-hand plane) [2] provided [22]
1 +2 1/2 (3) 4 The only combination of and that leads to a second-order integration formula is = 1 and = 1 . This choice 2 4 of parameters produces the trapezoidal method, which is both A-stable and second order. The drawback of the trapezoidal formula is that it does not induce any numerical damping in the solution, which makes it impractical for problems that have high-frequency oscillations that are of no interest or parasitic high-frequency oscillations that are a byproduct of the nite element discretization process [23, 10]. Thus, the major drawback of the Newmark family of integrators was that it could not provide a formula that was A-stable and second order and displayed a desirable level of numerical damping. The HHT method came as an improvement because it preserved the Astability and numerical damping properties, while achieving second order accuracy when used in conjunction with the second order linear ODE problem of Eq. (1). The idea proposed in [22] actually does not pertain the expression of the Newmark integration formulas, but rather the form of the discretized equations of motion in (2c). The new equation in which the integration formulas of Eqs. (2a) and (2b) are substituted is 2
(4)
(5)
As indicated in [23], the HHT method will possess the advertised stability and order properties provided 0 and =
1 2 (1 )2 = (6) 2 4 The smaller the value of , the more damping is induced in the numerical solution. Note that in the limit, the choice = 0 leads to the trapezoidal method with no numerical damping.
where m is the total number of independent constraint equations that must be satised by the generalized coordinates throughout the simulation. Although in its current implementation the algorithm handles nonholonomic constraints in Pfafan form [32], for brevity, the case of holonomic constraints is assumed henceforth. Differentiating Eq. (7a) with respect to time leads to the velocity kinematic constraint equation q (q, t) q + t (q, t) = 0 (7b)
where the over-dot denotes differentiation with respect to time and the subscript denotes partial differentiation, q = ji , for 1 i m, 1 j p. The acceleration kinematic constraint equation is obtained by q differentiating Eq. (7b) with respect to time: q (q, t) q + q (q, t)q
q
(7c)
The state of the mechanical system changes in time under the effect of applied forces such that Eqs. (7a)(7c) are satised at all times. The time evolution of the system is governed by the Lagrange multiplier form of the constrained equations of motion (see, for instance [21, 36]),
where M(q) pp is the generalized mass, and Q (q, q, t) p is the action (as opposed to the reaction T (q)) force acting on the generalized coordinates q p . These equations are neither linear nor ordinary q differential as is the case in Eq. (1), rst and foremost because the solution q(t) must also satisfy the kinematic constraint equations in Eq. (7a). These constraint equations lead in Eq. (7d) to the presence of the reaction force T (q), where m is the Lagrange multiplier associated with the kinematic constraints. q In addition to the equations of motion and kinematic constraint, several classes of equations need to be considered in a general-purpose mechanical simulation package:
(7d)
1. Ordinary differential equations that in the most general case are provided in implicit form d(X, X, q, q, q, , V, F, t) = 0nd (8a)
This type of differential equations is encountered, for instance, when controls are active in the system, such as is the case in cars with an anti-lock braking system (ABS), active suspension control, and so forth. The state of the controller is X, its time derivative is X, and the assumption is that in its implicit-form Eq. (8a) properly and uniquely denes X as a function of the state of the system through the user-specied function d. If nd represents the number of differential states, then X, d nd .
2. User-dened variables, which can technically be regarded as aliases or denition equations. A set of nv user-dened variables V nv is typically specied through an equation of the form
V v(q, q, q, X, , V, F, t) = 0nv
(8b)
which, during the solution sequence, are solved (or rather evaluated) simultaneously with the equations of motion and the kinematic constraint equations. Here v nv is a user-dened function that depends on other system states as indicated in Eq. (8b).
3. External force denition, F, which allows the user to dene the set of nf applied forces F nf that act on the system. This is the mechanism through which a complex tire model can be interfaced to a vehicle model that supports user-dened bushing elements, custom nonlinear damper and friction models, and the like. F f (q, q, q, X, X, , V, F, t) = 0nf (8c)
Equations (7a)(7d) comprise a system of index 3 DAE [7], where the notion of DAE index, as far as its denition and meaning are concerned, continues to be a research topic and the interested reader is referred to [37] and the recent work [26] for a more in depth analysis of the concept. It is known that differential-algebraic equations are not ordinary differential equations [33]. Analytical solutions of Eqs. (7a) and (7d) automatically satisfy Eqs. (7b) and (7c), but this is no longer true for numerical solutions. In general, the task of obtaining a numerical solution of the DAE of Eqs. (7a)(7d) is substantially more difcult and prone to intense numerical computation than that of solving ordinary differential equations. For an account of relevant work in the area of numerical integration methods for the DAE of multibody dynamics the reader is referred to [2, 7, 4, 16, 1, 20, 28, 34] and references therein. The theory and attractive features associated with the HHT method have been derived in conjunction with a linear second-order ODE. The only similarity between Eqs. (1) and (7d) is that they are both second order and qualitatively obtained from Newtons second law. In [38], for the purpose of stability and convergence analysis, the constrained equations of motion are tackled in a stabilized index 2 DAE framework. The HHT method is also discussed in [14] and more recently in [13], where the proposed implementation is based on a technique that accounts for violations in the position and velocity constraints in a stabilization framework similar to the one proposed in [5]. There are also several Runge-Kutta-based approaches for highly oscillatory mechanical system simulation that, like the HHT method, display the attractive attribute of selectively damping frequency at the high end of the spectrum. In [31], a Singly Diagonal Runge-Kutta (SDIRK)-based method allows the user to choose, within certain bounds, the diagonal value in the formula and thus control the amount of numerical damping associated with the algorithm. The role of the diagonal element in the formula becomes similar to that of the parameter in the HHT method. An approach based on additive Runge-Kutta methods that has the potential to accurately handle highly oscillatory multibody dynamics simulation was introduced in [24], and further discussed in [35]. These novel Runge-Kutta-based algorithms are mathematically sound, but they require more time to achieve, visa-vis industrial-strength applications, the level of acceptance currently associated with the well-established HHT method. The method used in this paper was also considered in [9], and then revisited in [10]. Thus, this work does not propose a new integration method (the HHT method), but rather an algorithm based on this method, which (a) proposes a step-size control strategy at the position level that works in conjunction with both the second order differential equations of motion and the rst order equations that typically come from hydraulic or control systems; (b) proposes a choice of unknowns (accelerations and Lagrange multipliers, respectively) in the Newton-type algorithm associated with the implicit discretization scheme that results in optimal condition number with extremely positive impact on the robustness of the algorithm; (c) denes a stopping criteria for the nonlinear system that is tied to the level of user specied accuracy in an analytically sound way; and (d) withstood the test of industrial strength applications as it was implemented and released in a commercial simulation software that used it successfully in conjunction with models with more than 18,000 states (engine model).
where throughout this paper Is stands for the identity matrix of dimension s. The discussion about the choice of the parameter is deferred to a later section.
For the multibody dynamics problem stated, the unknowns of interest are the generalized positions, velocities, and accelerations q, q, and q, respectively, the Lagrange multipliers , the applied-force states F, the user-dened variables (aliases) V, and the states associated with the user-dened ordinary differential equations, that is, X and X. The index 3 DAE multibody dynamics problem that must be solved to compute these quantities is neither linear nor ordinary differential, and the HHT method is thus applied for a different class of problems from that originally designed for. Rather than approaching the solution within an index 2 framework [38] or using a stabilization approach [14, 13], the proposed algorithm uses the implicit Newmark formulas to discretize the equations of motion and requires that the position-level kinematic constraint equations be satised at the end of each time step. This is a direct index 3 approach, and it requires at each integration time step the solution of a nonlinear system of equations. The theoretical foundation of this algorithm is provided by the stability and convergence results and observations in [27, 6, 9, 10]. However, we are not aware of a global convergence proof for the HHT method when used in conjunction with the fully nonlinear index 3 problem of multibody dynamics. Current work is undergoing for a rigorous global convergence proof for a stabilized index 2 formulation [25]. The global convergence for the direct HHT-based index 3 formulation remains very much an open question, but the results obtained with the proposed algorithm provide an early validation of the good properties associated with the HHT method. At the cornerstone of the proposed algorithm lies the simple idea on which the HHT method is built: recycle the Newmark integration formulas, but slightly change the equations of motion to account for the set of forces acting on the system at two consecutive integration points. The algorithm is modied to a small extent to accommodate the set of differential and algebraic equations (8a) through (8c) that a general-purpose simulation package would have to handle. Thus, in the spirit of the original HHT formulation, the discretization of the multibody dynamics equations of motion yields (M )n+1 + (1 + ) T Q q q
n+1
For notational simplicity, when obvious, the dependency of some quantities on q and/or q and/or time t will be omitted, as was done in Eq. (10). From an implementation standpoint it is more advantageous to scale the previous 1 equation by (1+) to obtain the equivalent form 1 (M )n+1 + T Q n+1 q T Q q 1+ 1+ q Discretization of the rest of the problem equations leads to (qn+1 , tn+1 ) = 0 d Xn+1 , Xn+1 , qn+1 , qn+1 , qn+1 , n+1 , Vn+1 , Fn+1 , tn+1 = 0 Fn+1 f qn+1 , qn+1 , qn+1 , Xn+1 , Xn+1 , n+1 , Vn+1 , Fn+1 , tn+1 = 0 Vn+1 v (qn+1 , qn+1 , qn+1 , Xn+1 , n+1 , Vn+1 , Fn+1 , tn+1 ) = 0
n
T Q q
=0
(10)
=0
(11a)
Everywhere in Eq. (11), in an index 3 DAE direct approach, the Newmark integration formulas of Eq. (2) are used to express q and q as a function of q, while Eq. (9a) is used to discretize the set of ordinary differential equations A Newton-like algorithm [15] is used to solve the resulting system of nonlinear (express X as a function of X). equations for the set of unknowns (in this order) q, , X, V, and F. Note that the generalized force Q of Eq. (7d) is obtained by projecting the force states F along the generalized coordinates q; that is, Q(q, F) = F, where the projection operator = (q) depends on the choice of generalized coordinates. The iterative algorithm requires at each iteration (k) the solutions of the linear system (k) (k) q e1 M T 0 0 q e2 q 0 0 0 0 X = e3 dq + hdq + h2 dq (12) d dX + h dX dV dF e4 vq + hvq + h2 vq v h vX I vV vF V e5 F f fX h fX fV I fF fq + hfq + h2 fq 5
where ei are the residuals in satisfying the set of discretized equations of motion, constraint equations, discretized rst order differential equations, variable denition equations, and applied force denition equations, respectively, and unless otherwise specied, all the quantities in e1 through e5 are evaluated at time tn+1 : e1 = e2 e3 1 (M )n+1 + T Q q q 1+ 1 = (q, t) h2 = d X, X, q, q, q, , V, F, t
n+1
T Q 1+ q
(13)
e4 = V v (q, q, q, X, , V, F, t)
Q q
(14)
1 Note that the nonlinear equations associated with the position kinematic constraints are scaled by h2 in order to improve the conditioning of the coefcient matrix in Eq. (12). This is a compromise reached after considering the following options: (a) have the level-zero positions, q, and differential states, X, be the unknowns (replacing q and X), in which case some entries in the Jacobian matrix in Eq. (12) end up divided by h2 ; (b) have q and X be the unknowns, in which case the second row in the Jacobian matrix comes multiplied by h2 ; (c) same as in (b), 1 except that the set of positions kinematic constraint equations are scaled by h2 . Option (a) is implemented by the default integrator used in the MSC.ADAMS simulation package [29] (here entries get divided by a factor 0 h rather than h2 , as the second-order equations of motion are reduced to an equivalent rst-order system of differential equations that is then solved with a BDF-type integrator [18]). On numerous occasions this has been observed to be the cause of numerical problems once the step-size becomes very small and consequently some entries in the Jacobian become extremely large. A bad Jacobian condition number ensues, and the quality of the Newton corrections becomes poor. The option (b) was not embraced because the problem at (a) plagues this approach as well, though in a more subtle way. If h becomes very small, the second row of the Jacobian matrix is scaled by h2 , which practically makes all the entries in this row very small and thus leads to ill conditioning. Option (c) proved a good solution because typically the type of error that one sees in satisfying the position kinematic constraint equations is very small. It is never that these constraint equations are problematic in a simulation but rather some discontinuity in the model that causes the step-size h to assume small values. But if h is small, when advancing the simulation the position constraint violation stays very small, and the norm of e2 always remains bounded. A formal proof of this result is provided in [17], which also discusses the nonsingular character of the coefcient matrix in Eq. (12) when h 0, and the convergence of the iterative Newton scheme. Thus, a salient feature of the approach is that it eliminates the ill conditioning typically associated with the index 3 integration of the DAE of multibody dynamics. Two factors are responsible for this: (i) the position kinematic constraint equations are appropriately scaled, and (ii) the set of unknowns q and are consistent in the sense that they are qualitatively of the same kinematic level, that is, two (as opposed to mixing q, which is level zero, with , which is level two). With the corrections computed as the solution of the linear system of Eq. (12), the numerical approximation of the solution is improved at each iteration as q(k+1) = q(k) + (k) , (k+1) = (k) + (k) , X(k+1) = q (k) X(k) + X , V(k+1) = V(k) + V(k) , F(k+1) = F(k) + F(k) . The following sections present in detail the answer to three key questions: (a) When is the computed solution accurate enough? (b) How to select the integration step-size h? and (c) When should one stop the Newton-like iterative process that computes at each integration step the unknowns q, , X, V, and F? Recall that once q and X are available, Eqs. (2a), (2b), and (9a) are used to evaluate q, q, and X, respectively.
with tn+1 dened as in Eq. (5). For the purpose of computing the local integration error, the usual assumption is that the conguration at time tn , (qn , qn , qn ) is perfectly consistent. That is, it satises the equations of motion, along with the time derivatives of the equations of motion: M n + Cqn + Kqn = Fn q ... M q n + C n + Kqn = Fn q The Newmark integration formula of Eq. (2) is rewritten in the equivalent form qn+1 = qn + hqn + qn+1 h2 qn + h2 x 2 = qn + h n + hx q (17a) (17b) (17c) (16a) (16b)
qn+1 = qn + x
where the unknown x represents the change in the value of acceleration from time tn to tn+1 . The goal is to compute an estimate of the error at the end of one integration step (the local integration error)
q n+1 = qn+1 qn+1
(18)
where qn+1 is the exact solution of the initial value problem M + Cq + Kq = F q that starts in the conguration (qn , qn , qn ) at t = tn . Using Taylors theorem, one obtains qn+1 as qn+1 = qn + hqn + h2 h3 ... q n + O h4 qn + 2 6 (20) (19)
q The local integration error n+1 becomes available as soon as the acceleration correction x is available. In order to obtain an estimate for x, based on Eqs. (15) and (17)
h2 qn + h2 x 2 (Cqn + Kqn ) = Fn + (1 + ) Fn h + O h2
(21)
where Taylors theorem was used to expand F (tn + (1 + ) h). Using Eqs. (16a) and (16b), ... M + (1 + ) hC + (1 + ) h2 K x = (1 + ) M q n h + O h2 Denoting D = M + (1 + ) hC + (1 + ) h2 K, since D1 = M1 + O (h) Ip , the equation (23) (24) (25) (22)
... x = (1 + ) q n h + O h2 1 ... q n + O h4 6
... Substituting for q n from Eq. (24) and ignoring the higher-order terms leads to
q n+1
1 h2 x 6 (1 + )
(26)
which provides an effective way of computing the local integration error, since the required quantities are available at the end of the corrector stage. Local integration error in X states.
d A necessary condition for the differential equations of Eq. (8a) to be locally well dened is that [7] det X = 0 holds in a neighborhood of the current system conguration. Assuming that the user-dened form for d satises this requirement, by using the implicit function theorem and Taylors theorem, X can be locally expressed explicitly as a function of X and time t: X = AX + b (t) (27)
where A is a constant matrix that depends on the conguration of the system at the time when the linearization is carried out, and b is a function of time. One additional time derivative leads to X = AX + b (t) The integration formula used to integrate the differential equations in Eq. (8a) is equivalently expressed as Xn+1 = Xn + hXn + hxd (29) (28)
where xd = Xn+1 Xn . The goal is to produce an approximation of the local integration error when advancing the simulation from tn to tn+1 . To this end, suppose that Xn+1 is the exact solution at tn+1 starting from (tn , Xn ), while Xn+1 is the approximate solution as computed by the proposed algorithm. By using Taylors theorem, 1 Xn+1 = Xn + hXn + h2 Xn + O h3 2 (30)
d Considering the denition of the local truncation error n+1 Xn+1 Xn+1 , based on Eq. (29) and Eq. (30),
1 d n+1 = hxd h2 Xn + O h3 2 8
d Thus n+1 is available as soon as xd becomes available. Note that xd should satisfy
Xn + xd = AXn + bn + A hXn + hxd + hbn + O h2 Substituting for Xn from Eq. (27) into Eq. (31) and performing simple manipulations yields xd = hXn + O h2 Therefore,
d n+1 =
(31)
(32)
1 2
h2 Xn + O h3 1 2
(33)
which leads to
d n+1
hxd
(34)
This is an effective way of computing the local integration error because all the quantities in the right side of the previous equation are available at the end of the corrector phase. Note that Eq. (33) is relevant for = 0.5. The choice = 0.5 corresponds to the trapezoidal formula, for which one additional term in the Taylor expansion would need to be considered throughout the derivation. This is 1 qualitatively similar to the presentation herein and is not detailed further. Other choices of ( 2 , 1] are viable, and it is insightful to compare Eq. (9) with the Newmark formula of Eq. (2b). This idea can be taken one step further and combined with the introduction of a ctitious variable Z, dened as Z = X. In this case Eq. (8a) leads to a second-order equation in Z, in which case straight Newmark can be applied to nd the solution X. This approached is followed in [8].
e =
1 p
p i=1
q i,n+1
Yiq
e =
1 nd
nd i=1
d i,n+1
YiX
(35)
q q where Yiq = max(1, maxj=1,...,n |qi,j |) , and i,n+1 , 1 i p, is the ith component of n+1 . The composite error is compared with the user-prescribed error . Introducing the notation
p2
1 6(1+) 2
(36a)
x where
2 q
q h4
q
(36b)
p i=1 xi Yiq 2
1 2
For the local integration error in the differential states, introducing the notation d = nd 2
1 2 2
(37a)
d h2
nd i=1 xi YiX 2
1 2
(37b)
enter the accuracy tests in Eqs. (36b) and (37b) are available after the nonlinear discretization system of Eq. (11) is solved, and a decision is made at that point whether the newly computed solution is accepted or rejected.
h3 new
1 p
1 p
p i=1
ci Yi
1 2
1 6(1+) 2 q
h2 x
1 3
. By dening (38a)
q =
h4
(38b)
As recommended in [20], a safety factor s = 0.9 was used to scale the value of the new step-size. The superscript q was added to indicate that this value of the new step-size is based on position considerations. The approach for computing hd follows step by step the position-based selection of hq . Dening sd = new new
1 2 nd
nd i=1
Xi,n Yi
1 2
, it can be concluded that the error depends quadratically on the step-size h, like ed =
1 1
sd h2 . Therefore, hnew should be selected such that = sd h2 , which leads to hnew = h 2 e 2 . Hence, new hnew = h
d h2 x d
1 4 2 X
. By dening d = xd
2 X
h2
(39a)
the differential-based criterion for selecting the step-size becomes hd = new where s = 0.9 is a safety factor [20]. 10 sh d
1 4
(39b)
within 0.1% (c = 0.001); that is, |eq eq,(k) | c |eq |. Since eq is not available, the test is replaced by
eq eq,(k) c (40) where is the user-prescribed error. Note that the goal of the step-size control is to keep eq as close as possible to ; therefore, substituting the original condition with Eq. (40) is acceptable. Then, eq eq,(k) h2 1 x x(k) 6 (1 + ) p
q
(41)
and an approximation for x x(k) q is needed. Since for the Newton-like algorithm employed the convergence is linear, there is a constant that for convergence must satisfy 0 < 1 such that [15] x(k+1)
q
x(k)
(42)
where x(k) represents the correction at iteration k, x(k+1) = x(k) + x(k) . Immediately, x x(k+1) The value is going to be approximated by k = Based on Eq. (41), eq eq,(k) 1 6 (1 + ) 11 h2 x(k) p
q q
x(k)
(43)
x(k) q x(k1) q
(44)
(45)
x(k)
2 q
c2
q h4
(46)
Note that at the right of the inequality sign are quantities that remain constant during the corrector iterative process, while at the left are quantities that change at each iteration. Likewise, note that the stopping criterion of Eq. (46) can be used only at the end of the second iteration because only then can an approximation of the convergence rate be produced. In other words, the proposed approach will not be able to stop the iterative process after the rst iteration. This is not a matter of great concern, however, because models as simple as a one-body pendulum are already nonlinear and require more than one iteration. Qualitatively, the same approach used for the positions-based stopping criterion is used for the differential states. Without getting into details, this will lead to the following stopping criterion: d 1 d
2
xd
(k) 2 X
c2
d h2
(47)
q =
2 q
h4
(48a)
Prediction: Performed based on divided differences (Newton interpolation and Horners scheme for extrapolation at tn+1 ). Correction: Linear convergence rate allows for computation of (Eq. (44)). Stopping criterion: 1
2
x(k)
2 q
c2
q , h4
(c = 0.001)
(48b)
(48d)
1 2 2
d =
h2
(49a)
c2
d , h2
(c = 0.001)
(49b)
Accuracy check: Performed after corrector converged, d 1 Step-size selection: With a safety factor s = 0.9, hd = new sh d
1 4
(49c)
(49d)
In multibody dynamics simulations, the number of differential states is orders of magnitude smaller than the number of states associated with the generalized coordinates; that is, nd p. Nevertheless, the stopping criteria as well as the selection of the new step-size hnew take into account both the position and differential states. For stopping the Newton-like algorithm, iterations are carried out until the conditions of Eqs. (48b) and (49b) are simultaneously satised. The new step size is chosen as hnew = min hq , hd new new . An integration step is not accepted unless both accuracy conditions of Eqs. (48c) and (49c) are satised.
NUMERICAL EXPERIMENTS
The proposed algorithm has been implemented in the commercial simulation package MSC.ADAMS and released in its 2005 version. The algorithm has been extensively tested with more than 1,600 mechanical systems of various complexity. Three representative numerical experiments aimed at comparing the HHT-based algorithm and GSTIFF, the default integrator in the MSC.ADAMS [29] simulation package, are presented herein. The comparison primarily focuses on efciency issues, although the accuracy of the results is touched upon.
Figure 1: Poly-V accessory belt. One driving torque is on the crankshaft, and two resisting torques act on the alternator and water pulleys. The belt is modeled by using 100 segments connected by a set of 400 VFORCE elements [29]. The length of the simulation was 200 milliseconds, which results in more than a full revolution of the belt. The GSTIFF integrator was run with ERROR=1.E-4, while HHT was run with ERROR=1.E-5 (this is the variable of Eqs. (48a) and (49a)). Because of the different error control strategies employed by the two integrators, it has been noticed that GSTIFF typically can be run with a more lax ERROR for results that are qualitatively similar to HHT. The simulation time for GSTIFF was 1286 seconds, while HHT completed the simulation in 485 seconds. The simulation was run on a Windows 2000 machine, with Pentium III CPU, and 512 MB RAM. Figure 2 shows the X-component of the reaction force in the revolute joint that connects the alternator with the rest of the system. The agreement of the results is very good: the peak difference between the two sets of results is less than 3%. Figure 4 shows the time variation of the angular velocity of the alternator. The plot displays good correlation between the results obtained with the GSTIFF and the HHT integrators. Figure 5 conrms that the difference between the angular velocity computed with GSTIFF and HHT integrator is less than 1%. This value is smaller than the 3% noticed for the difference in force in the alternator joint. This is an expected trend all across the simulation results, where the quality of the velocity level variables is better than the quality of the force/acceleration variables. Although not shown here, the position-level variables for the two integrators are practically identical, and in general they are qualitatively better than the velocity-level results obtained with the two integrators.
A track model
The track presented in Fig. 6 is a detailed model of a subsystem of a low-mobility hydraulic mining excavator. Weight and extreme operating conditions cause high mechanical stresses on crawler tracks especially in the case of big hydraulic excavators of 1,000 tons and higher. Long haulage distances, frequent place changes, and demanded 90% machine availabilities are standard requirements in the industry. The type of simulation reported here is typical in the virtual prototyping cycle when trying to meet these requirements and extend life cycles of the track and drive systems. The model in Fig. 6 contains a set of 61 moving parts. It has one planar joint, 54 revolute joints, 1 translational joint, 4 xed joints (a joint that removes all six degrees of freedom), one inline joint primitive, and one motion. This results in a model with 61 degrees of freedom. The relatively large number of degrees of freedom indicates that the motion of this system is not controlled as much through constraints (joints) as through the geometry of the components and 690 three-dimensional contact elements (sprocket-track, roller-track, track-track, and trackground contacts). The HHT integrator resulted in a set of 4,675 equations for the dynamic analysis of this model.
14
0.0
40.0
30.0
20.0 -425.0
10.0
FX (Newton)
-850.0
0.0
-10.0
-20.0
-1275.0 -30.0
-40.0
-1700.0
0.05
2.0E-004
0.0
-0.1
0.0
-0.15
-0.2 -1.0E-004
-0.25
15
Figure 6: Track subsystem model. A 14-second simulation was run on a Windows XP Dell Precision M530 machine, with 2 GB ECC RAM, and 2.8 GHz HyperThread Xeon CPUs. A rst set of results was obtained with the default version of the ADAMS/Solver. The key integrator settings were as follows: GSTIFF integrator, stabilized index 2 (SI2) DAE formulation [19], ERROR=1E-2, KMAX=1 (to reect the 3D contact-induced discontinuous nature of the simulation), MAXIT=10. The HHT integrator was run in the beta version of the 2005 release, with the following key settings: ERROR=1E-5, MAXIT=10, DAE formulation was index 3 [27, 6]. Note the difference between the ERROR settings in the two cases. This is explained by the different ways in which the error is quantied by the two integrators. In this context, the SI2-GSTIFF integrator has a much stricter interpretation of the user-set ERROR. In has been noticed that in order to obtain qualitatively comparable results, the HHT ERROR setting should be two orders of magnitude more stringent than that of the SI2-GSTIFF integrator. To be on the safe side, for this model the HHT integrator was run with an even tighter error setting, ERROR=1.E-5, which actually is the HHT default setting for this attribute. The speedup obtained when using the HHT integrator was more than vefold: it took 1,713 seconds for the simulation to complete when using the HHT integrator, while it took 8,988 seconds for the GSTIFF integrator to nish the same simulation. The quality of the new results is very good. The accelerations are always the most likely to show differences. Differences can only rarely be noticed in velocity results, while the quality of the position level results is almost always very good in both integrators. For comparison, in Fig. 7 the acceleration and velocity results are displayed for track number 8. The results match overall very well everywhere with the exception of some spikes that are explained by the sensitivity of the simulation with respect to the large number of contact forces present in the model.
16
ADAMS/View model name: ATV JOINT_37: Right Rear Susp. Ball Joint
0.0
-1000.0
-2000.0
17
Table 1: Top Ten von Mises Hot Spots for Flexible Frame GSTIFF Stress Point (lbf/inch2 ) 23956 300738 26654 204503 33918 204075 46577 200688 34560 198106 46580 193729 30060 190386 24704 173882 36156 171990 23007 170191 HHT Stress (lbf/inch2 ) 300768 204274 204191 200354 197887 192929 189911 173355 172746 170375 Stress Difference GSTIFF vs. HHT 0.01% -0.11% 0.06% -0.17% -0.11% -0.41% -0.25% -0.30% 0.44% 0.11%
No. 1 2 3 4 5 6 7 8 9 10
Time (sec) 1.104 0.746 0.206 0.746 0.211 0.326 0.692 0.281 1.446 1.100
No. 1 2 3 4 5 6 7 8 9 10
Point 23956 26654 33918 46577 34560 46580 30060 24704 36156 23007
Time (sec) 1.104 0.746 0.206 0.746 0.211 0.326 0.692 0.281 1.446 1.100
Altogether there are 28 moving parts, 43 joints, 5 motions, and 1 exible body, leading to a total number of 532 equations for the HHT integrator and 927 equations for the Index-3 GSTIFF (I3) formulation. The MSC.ADAMS modeling units used for this experiment were pound force, pound mass, inch, and second. The duration of the simulation was 2.0 seconds, which allows the ATV to move up and down several times. The GSTIFF integrator was run with ERROR=1e-4, while HHT was run with ERROR=1e-5. Considering the typical use of a simulation like this, namely in durability (fatigue) analysis, a maximum time step (HMAX=5e-4) was specied for accurate post-processing hot-spot stress-recovery. The simulation CPU time for GSTIFF was 367.08 seconds, while HHT completed the simulation in 122.47 seconds. The simulation was run by using MSC.ADAMS 2005 on a Windows 2000 laptop computer with a single 2.20 GHz Pentium 4 CPU and 1GB RAM. There is excellent agreement in location of critical stresses as presented in Table 1; the difference in peak stress between the two sets of results is less than 0.5%. The Z-component of the reaction force in the spherical joint that connects the right half of the rear suspension component to the frame is presented in Fig. 9. The plot shows good correlation between the force results obtained with the GSTIFF and HHT integrators. Figure 10 presents the time variation of the angular velocity of the engine assembly, and is an indicator of the severity of the ATV pitching behavior. Figure 11 conrms that the difference between the angular velocity computed with GSTIFF and HHT integrators is less than 1.6%.
CONCLUSIONS
The HHT method used in structural dynamics and later introduced in the context of multibody dynamics simulation in [9] serves as the starting point of an algorithm implemented and validated in an industrial strength mechanical system simulation package. Strategies for corrector stopping criteria, error estimation, and step-size control were presented in detail. A set of real-life numerical experiments indicate that simulations are at least two to three times faster when compared with the default BDF-based integrator used in ADAMS [18, 29]. An explanation for the improved performance is based on three key observations. (1) The most time consuming part of simulation is the computation of the Jacobian associated with the nonlinear discretization system. The proposed algorithm contains heuristics to reduce as much as possible the number of Jacobian evaluations. Unlike the BDF integrator employed by GSTIFF, in which terms of the integration Jacobian can become disproportionately large as a result of a scaling by the inverse of the step-size, the proposed integrator employs a different approach where certain values are multiplied (never divided) by the step-size prior to populating the Jacobian. As long as the step-size does not
18
150.0
ADAMS/View model name: ATV ENGINE: Pitch Angular Velocity GSTIFF : Engine_XFORM.WY HHT : Engine_XFORM.WY
1.5
ADAMS/View model name: ATV Angular Velocity Difference (GSTIFF-HHT) Delta Angular Velocity - ENGINE
1.0 100.0
0.5
50.0
Angular Velocity (deg/sec) 0.0 0.5 1.0 Time (sec) 1.5 2.0
0.0
-0.5
0.0
-1.0
-50.0 -1.5
-100.0
signicantly change over several consecutive time steps, this approach better supports the recycling of the Jacobian. (2) When compared with the BDF Jacobian, the HHT Jacobian is numerically better conditioned, thereby leading to more reliable corrections in the Newton-like iterative approach for large problems. Typically, this results in a smaller number of corrector iterations. This desirable attribute is further enhanced by the fact that since certain partial derivatives are scaled by the step-size h, or by h2 prior to populating the Jacobian, small errors in these partial derivatives are going to have a less negative effect on the overall quality of the Jacobian. (3) On one hand, the BDF formulas of order higher than one contain regions of instability in the left plane. The higher the order, the smaller the region of stability. On the other hand, BDF intrinsically is designed to maximize the integration order/step-size. Because of these two conicting attributes, particularly for models that are mechanically stiff (models with stiff springs, exible bodies, etc., that lead to systems with large eigenvalues close to the imaginary axis) an order/step-size choice often lands the BDF integrator outside the stability region [20]. These integration time-steps typically end up being rejected, and smaller step-sizes are required to advance the simulation. This is a non issue with the HHT method, which is a xed low-order method with good stability properties in the whole left plane. It should be pointed out that there are situations when BDF-type formulas are going to work signicantly faster. These are the cases where BDF can sustain a high integration order throughout the simulation. If the model simulated allows BDF to work at order 5 or 6, the HHT method cannot produce a solution of similar quality in comparable CPU time because of the low-order integration formulas employed. However, this scenario is not very common, because most real-life large models contain discontinuities or stiff mechanical components that typically limit the BDF integration order to 1 or 2. As seen in the numerical experiments presented, in these cases the HHT-based algorithm has proved to be very competitive. The accuracy of the results is good, occasional spikes in accelerations and reaction forces being explained by the use of a variable step integration algorithm for the solution of an index 3 DAE problem, an operation that is conjectured in [7] to further reduce the order of an already low-order method. Quantitatively, the simulation results can be improved by decreasing the user-specied integration error; qualitatively, the results could be improved by using a Runge-Kutta method as proposed in [24], using the generalization of the HHT method as proposed in [11], or reducing the index of the problem in an approach similar to the one proposed in [19], an alternative that is currently under investigation [25].
19
ACKNOWLEDGMENTS
The authors thank Dipl.-Ing. Holger Haut of the University of Aachen, Germany, for providing images, results plots, and timing results for the track subsystem simulation, and Andrei Schaffer of MSC.Software for his suggestions. The authors thank an anonymous reviewer for pointing out additional reference material for the concept of DAE index.
References
[1] K.S. Anderson and M. Oghbaei. A dynamics simulation of multibody systems using a new state-time methodology. Multibody Systems Dynamics, 14(1):6180, 2005. [2] U. M. Ascher and L. R. Petzold. Computer Methods for Ordinary Differential Equations and DifferentialAlgebraic Equations. SIAM, Philadelphia, PA, 1998. [3] K. E. Atkinson. An Introduction to Numerical Analysis. John Wiley & Sons Inc., New York, second edition, 1989. [4] O. A. Bauchau, C. L. Bottasso, and L. Trainelli. Robust integration schemes for exible multibody systems. Computer Methods in Applied Mechanics and Engineering, 192:395 420, 2003. [5] J. Baumgarte. Stabilization of constraints and integrals of motion in dynamical systems. Computer Methods in Applied Mechanics and Engineering, 1:116, 1972. [6] K. Brenan and B. E. Engquist. Backward differentiation approximations of nonlinear differential/algebraic systems. Mathematics of Computation, 51(184):659676, 1988. [7] K. E. Brenan, S. L. Campbell, and L. R. Petzold. Numerical Solution of Initial-Value Problems in DifferentialAlgebraic Equations. North-Holland, New York, 1989. [8] O. Bruls, P. Duysinx, and J. Golinval. A unied nite element framework for the dynamic analysis of controlled exible mechanisms. In Proceeding of Multibody Dynamics ECCOMAS Thematic Conference, 2005. [9] A. Cardona and M. Geradin. Time integration of the equation of motion in mechanical analysis. Computer and Structures, 33:881820, 1989. [10] A. Cardona and M. Geradin. Numerical integration of second order differential-algebraic systems in exible mechanics dynamics. In M. F. O. S. Pereira and J. A. C. Ambrosio, editors, Computer-Aided Analysis of Rigid and Flexible Mechanical Systems. Kluwer Academic Publishers, 1994. [11] J. Chung and G. M. Hulbert. A time integration algorithm for structural dynamics with improved numerical dissipation: the generalized- method. Transactions of ASME, Journal of Applied Mechanics, 60(2):371 375, 1993. [12] R. R. Craig and M. C. C. Bampton. Coupling of substructures for dynamics analyses. AIAA Journal, 6(7):13131319, 1968. [13] J. Cuadrado, D. Dopico, M. N. Naya, and M. Gonzalez. Penalty, semi-recursive and hybrid methods for MBS Real-Time dynamics in the context of structural integrators. Multibody Systems Dynamics, (12):117 132, 2004. [14] J. Garcia de Jalon and E. Bayo. Kinematic and Dynamic Simulation of Multibody Systems. The Real-Time Challenge. Springer-Verlag, Berlin, 11994. 20
[15] J. Dennis and R. Schnabel. Numerical Methods for Unconstrained Optimization and Nonlinear Equations. Prentice-Hall, Englewood Cliffs, NJ, 1983. [16] E. Eich-Sollner and C. Fuhrer. Numerical Methods in Multibody Dynamics. Teubner-Verlag, Stuttgart, 1998. [17] B. Gavrea, D. Negrut, and F. Potra. The Newmark integration method for simulation of multibody systems: analytical considerations (IMECE 2005-81770). In Proceedings of the International Mechanical Engineering Congress and Exposition, Orlando, Florida. ASME, 2005. [18] C. W. Gear. Numerical Initial Value Problems of Ordinary Differential Equations. Prentice-Hall, Englewood Cliffs, NJ, 1971. [19] C. W. Gear, G. Gupta, and B. Leimkuhler. Automatic integration of the Euler-Lagrange equations with constraints. J. Comp. Appl. Math., 12:7790, 1985. [20] E. Hairer and G. Wanner. Solving Ordinary Differential Equations, volume II of Computational Mathematics. Springer-Verlag, 1991. [21] E. J. Haug. Computer-Aided Kinematics and Dynamics of Mechanical Systems. Prentice-Hall, Englewood Cliffs, New Jersey, 1989. [22] H. M. Hilber, T. J. R. Hughes, and R. L. Taylor. Improved numerical dissipation for time integration algorithms in structural dynamics. Earthquake Eng. and Struct. Dynamics, 5:283292, 1977. [23] T. J. R. Hughes. Finite Element Method - Linear Static and Dynamic Finite Element Analysis. Prentice-Hall, Englewood Cliffs, New Jersey, 1987. [24] L. O. Jay. Structure preservation for constrained dynamics with super partitioned additive Runge-Kutta methods. SIAM J. Sci. Comput., 20:416446, 1998. [25] L. O. Jay and D. Negrut. On an extension of the HHT method for index 3 differential algebraic equations. in preparation, 2006. [26] P. Kunkel and V. Mehrmann. Differential algebraic equations. Analysis and Numerical Solution. European Math. Soc. Textbooks in Mathematics, 2006. [27] C. L tstedt and L. Petzold. Numerical solution of nonlinear differential equations with algebraic constraints o I: Convergence results for backward differentiation formulas. Mathematics of Computation, 174:491516, 46. [28] C. Lubich, U. Nowak, U. Pohle, and C. Engstler. MEXX - numerical software for the integration of constrained mechanical multibody systems. Mechanics of Structures and Machines, 23:473495, 1995. [29] MSCsoftware. ADAMS User Manual. Also available online at http://www.mscsoftware.com, 2005. [30] N. M. Newmark. A method of computation for structural dynamics. Journal of the Engineering Mechanics Division, ASCE, pages 6794, 1959. [31] B. Owren and H. Simonsen. Alternative integration methods for problems in structural dynamics. Structural Dynamics. Comput. Meth. in Appl. Mech. and Eng., 122:110, 1995. [32] L. A. Pars. A Treatise on Analytical Dynamics. John Wiley & Sons, New York, 1965. [33] L. R. Petzold. Differential-algebraic equations are not ODEs. SIAM J. Sci., Stat. Comput., 3(3), 1982. [34] F. A. Potra. Implementation of linear multistep methods for solving constrained equations of motion. SIAM. Numer. Anal., 30(3), 1993. 21
[35] M. Schaub and B. Simeon. Automatic h-scaling for the efcient time integration of stiff mechanical systems. Multibody System Dynamics, 8:329345, 2002. [36] A. A. Shabana. Computational Dynamics. John Wiley & Sons, 1994. [37] G. Le Vey. Differential algebraic equations - a new look at the index. Technical report, Institut de Recherche en Informatique et Systemes Aleatoires, 1994. [38] J. Yen, L. Petzold, and S. Raha. A time integration algorithm for exible mechanism dynamics: The DAE -method. Technical Report TR96-024, Dept. of Comp. Sci., University of Minnesota, 1996. [39] O.C. Zienkiewicz and Y.M. Xie. A simple error estimator and adaptive time-stepping procedure for dynamic analysis. Earthquake Engineering and Structural Dynamics, 20:871887, 1991.
22