<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "https://jats.nlm.nih.gov/publishing/1.3/JATS-journalpublishing1-3.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.3" xml:lang="en" article-type="research-article"><front><journal-meta><journal-id journal-id-type="publisher-id">jcse</journal-id><journal-title-group><journal-title>Journal of Computational Science and Engineering</journal-title></journal-title-group><issn>1710-4068</issn><publisher><publisher-name>Advancersin</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="publisher-id">jcse-v42-a01</article-id><article-categories><subj-group subj-group-type="heading"><subject>Research Article</subject></subj-group></article-categories><title-group><article-title>Block stabilization method for Differential-Algebraic Equations of Hamiltonian System in Multi-body System Dynamics</article-title></title-group><contrib-group><contrib contrib-type="author"><name name-style="western"><surname>Du</surname><given-names>Wenjing</given-names></name><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author"><name name-style="western"><surname>Ding</surname><given-names>Jieyu</given-names></name><xref ref-type="aff" rid="aff-1"/><xref ref-type="aff" rid="aff-2"/></contrib></contrib-group><aff id="aff-1">School of Mathematics and Statistics, Qingdao University, Qingdao 266071, China</aff><aff id="aff-2">Center for Computational Mechanics and Engineering Simulation, Qingdao University, Qingdao 266071, China</aff><pub-date publication-format="electronic" date-type="pub" iso-8601-date="2019-07-10"><day>10</day><month>07</month><year>2019</year></pub-date><volume>42</volume><fpage>1062</fpage><lpage>1068</lpage><permissions><copyright-statement>2019@TheAmericanComputationalScienceSociety.</copyright-statement><license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/"><ali:license_ref xmlns:ali="http://www.niso.org/schemas/ali/1.0/" start_date="2021-11-26">https://creativecommons.org/licenses/by/4.0/</ali:license_ref><license-p>This article is licensed under the Creative Commons Attribution 4.0 International license (CC BY 4.0), which permits sharing and adaptation, including commercial reuse, subject to attribution, a link to the license and an indication of changes. Third-party material separately credited with different terms is governed by the license or rights notice stated for that material.</license-p></license></permissions><self-uri content-type="fulltext" xlink:href="https://www.advancersin.org/jcse/articles/jcse-v42-a01/index.html"/><self-uri content-type="pdf" xlink:href="https://www.advancersin.org/jcse/articles/jcse-v42-a01/jcse-v42-a01.pdf"/><abstract><p>Based on the equidistant nodes and non-equidistant nodes such as Chebyshev nodes and Legendre nodes, two methods of block stabilization method were established in time interval for the regular differential algebraic equation of the Hamiltonian system in multi-body system dynamics. The nonlinear algebraic equation of each node in a single step interval was obtained. Newton iteration was used in the solution process. The method is L stable. Taking the crank slider system as an example, the numerical simulation was carried out by using the method in this paper. By changing the step size, simulation time and the number of nodes, the regular differential algebraic equation of the index-1,2,3 was verified. The numerical results showed that our method has good stability, high accuracy and high efficiency, and could keep the Hamilton energy error and constraint error. Especially for long-time simulation, Hamilton energy error will not drift, so it is suitable for long-time multi-body system dynamics simulation.</p></abstract><kwd-group><kwd>Dynamics of multi-body systems</kwd><kwd>Hamiltonian system</kwd><kwd>Differential-algebraic equation</kwd><kwd>Block stabilization method</kwd></kwd-group></article-meta></front><body>
    <sec>
      <title>1. Introduction</title>
      <p>As one of the most important dynamical systems, constrained Hamiltonian system is widely used in multi-body system dynamics[1], structural dynamics, biology,aerospaceand other fields. Differential algebraic equations of Hamiltonian system are composed of ordinary differential equations and algebraic constrained equations. In the past, the numerical solution focused on the degree of approximation of the real solution, but ignored the inherent structure of itself system(such as symplectic structure, energy, momentum, Lie group structure, etc). At present, the main solution of regular differential algebraic equations of Hamilton system is geometric numerical integration method, including symplectic algorithm[2,3], energy method[4,5], variational numerical integration method[6,7] and Lie groupmethod[8,9].</p>
      <p>Because the accuracy of Runge Kutta method is lower than that of the method, Watts and shampine proposed block method for the first time. In 1972, Watts and shampine[10] proposed r-level Block Implicit one-step method with a stability to solve the initial value problem of ordinary differential. Majid[11] proposed a parallel variable step size block scheme for solving the initial value problem of ordinary differential. Based on the variable step size block scheme, a four point full angle implicit multistep block method was proposed to solve the ordinary differential equation. Modebei[12] combined several finite difference formulas into block vectors, proposed a linear multistep mixed block method for solving the initial value problem of fourth order.</p>
      <p>Based on the general linear method and rattle method, console[13] puts forward the symplectic symmetric multistep method for differential algebraic equations of Hamiltonian system. Hairer[14] improved the general linear multi-step method, proposed the symmetric multi-step method of Hamilton system, and studied its long-time properties. Li Bowen[15] established the L-stable scheme based on the equidistant nodes and the non equidistant nodes, and studied the differential algebraic equations of multi-body system dynamics from thepointofnumericalstability.</p>
      <p>There are many algorithms to solve ordinary differentialequations byblockstability method,butthere are few researches on the regular differential algebraic equations of Hamilton system. In this paper, based on equidistant nodes and non equidistant nodes, two</p>
    </sec>
    <sec>
      <title>methods of block stabilization scheme with L-stability</title>
      <p>was established to solve the regular differential algebraic equations of Hamilton system in dynamics of multi-body system.</p>
    </sec>
    <sec>
      <title>2. DAEs of Hamiltonian system in multi-body</title>
      <p>system dynamics The augmented Lagrange function of the complete constraintedsystemisasfollows: T T1( , ) ( ) ( )2   q  L q q q M q V q q  (1) where T 1 2 d[ ( ), ( ), , ( )]q t q t q t q are generalized coordinates for Hamiltonian systems, d /dtq q are</p>
      <p>generalized velocity, T 1 2 m[ , , , ]    are the Lagrange multiplier vectors, d dR M is a symmetric positive definite mass matrix, T 1 2 m[ , , , ]    are m complete displacement constraints, ( )V q are the potentialenergyoftheHamiltoniansystem.</p>
      <p>The generalized momentum obtained by introducing Legendretransformationisasfollows: ( , )= ( , )    L q qp M q p qq (2) The augmented Hamiltonian function of the system canbeexpressedas: T T( , ) ( ) ( )L   q H q p p q q,q q  (3) where T1( , ) ( )2   L q q q Mq V q areLagrangefunction.</p>
      <p>Itsvariationalprincipleis: T T( ( ) ( ) ) 0 ft t dt    qp q H q, p q  (4) TheHamilton regulardifferentialalgebraicequationof Index-3 of a dynamic system subject to complete constraintscanbeexpressedas: T T ( , ) ( , ) ( , ) ( , ) ( , ) ( , ) ( ) H H t V t t t               q q q   ， q pq M q p pp q pp q q qq q      (5) Tofind the first derivative ofconstraint equation about time t, we could get the regular differential algebraic equationofHamiltonsystemwithIndex-2: T t ( , ) ( , ) ( , ) ( ) ( , ) ( , ) V t t t t          q q q 0   ， q M q p p p q q q M q p p q     (6) For the second derivative of constraint equation with respect to time t, the regular differential algebraic equation of Hamilton system with index-1 can be obtained: T 1 1 1 1 t tt ( , ) ( , ) ( , ) ( ) ( , ) [ ( , ) ( , ) ] ( , ) 2 ( , ) ( , ) ( , ) V t t t M t M M t M t                 q q q q q q     ， q M q p p p q q q q p p q q p p q p p q q p p q       (7) The multi-step block scheme in this paper can solve the Hamilton system's regular differential algebraic equationofindex-1,2,3respectively.</p>
    </sec>
    <sec>
      <title>3. Single step Block stability method for Hamilton</title>
      <p>regular differential algebraic equations Set up a single step interval 1[ , ]k kt t  , time step 1k kh t t  , select nodes ic i/r (i 1,2, ,r)  ， , k 1 2 r k 1t c c c t      , and construct a single step block scheme with ic i/r (i 1,2, ,r)  ， as equidistant nodes .This method isLstable.Taking theregular DAEs of Index-3（5）asanexample: Let T T T T 2d+m i i i i T T T T T T T T n+1 1 2 r n+1 1 2 r [ , , ] ( ), ( ) [ , , , ] , [ , , , ] .</p>
      <p>R c c               ，z q p z z z z Z z z z Z z z z  (8) A single step block solution scheme is constructed to obtain: n+1 2d+m n+1)n nh h I       （Z e z d z B Z (9) Where r rR B , T[1 1 1] ,rR e rRd , ( ),n ntz z ( )n nt  ，z z and iskronecker.</p>
      <p>For equidistant node i / , 1,2, , .c i ri r   For iz , 1,2, ,i r  , we carried out Taylor expansion at it and omititshigherorderinfinitesimal. 21 2 0 n n 2r-12r-1 n ( ) ( ) ( )1! 2! ( )2 1 a at a t t t t a t tr         z (10) Took formula (10) into formula (9) to get the value of B、d,substitute B、dintoformula(9)togetasinglestep blocksolutionformatbasedonequidistantnodes.</p>
      <p>Took formula (9) and 1n Z into formula (5) to obtain thefollowingnonlinearalgebraicequations: n+1 2d+m n+1 n+1 2d+m n+1 T 2d+m 1 2d+m n+1 2d+m n+1 ( ) ) ( ) , ) ( ) , ) ( ) ) ( ) ) n n n n n n n n n n n h h I V h h I t h h I t h h I h h I t                                     q            （ （ （ （ （ ， q q M e p d p B p p e q d q B q e z d z B q e d B e q d q B q      (11) The above formula is about r(2d+m) equations of r(2d+m) unknowns. In this paper, the value of 1n Z is solved by Newton iteration cycle. The specific steps are asfollows: (1)Giventheinitialvalueof n+1 n+1 n+1  、 、q p  . (2)Fromformula(9),wecangetthevalueof n+1Z . (3)Find the Jacobi matrix of formula (11),it can be representedbyablockmatrix: 11 12 13 21 22 23 31 32 33        J J J J J J J J J J Where   11 d 12 2d+m 21 2d+m 2d+m +1 2d+m +1 22 d 23 2d+m +1 31 2d+m 2d+m +1 = = ( ) = = ( )( ( ) ) ( ) )) = (12) = ( ) ) = ( ) ) n n n n n n T n n n n n h h V h h h h h h h h h                          qq qq q q I I I I I I I I I         （ （ （ （n J J M B J J B e q d q B q e q d q B q J J e q d q B q J B e q d q B q J    = = 0J</p>
      <p>(4) Write formula (11) as G, and find the following equation: i i+1 i n+1 n+1 n+1 G  Z Z J (13) Until the maximum convergence error is -410 , the valueof n+1 Z isobtained. Took the value of n+1 Z obtained in the previous step into the single step block solution format (9), and then got the value of n+1Z , and then got the value of n+1q and n+1p . Repeated the above process, and then got the generalized position vector q and generalized momentum p ofntimes.</p>
    </sec>
    <sec>
      <title>4. Multistep Block stability method for Hamilton</title>
      <p>regular differential algebraic equations</p>
      <sec>
        <title>4.1 Construction of multistep block method</title>
        <p>Set up a single step interval 1[ , ]k kt t  , time step 1k kh t t  , select nodes ic i/r (i 1,2, ,r)  ， , k 1 2 r k 1t c c c t      , andconstructa multi-step block scheme with equidistant nodes or non-equidistant nodes. This method is Lstable. Taking the regular DAEs of Index-3（公式5）asanexample: Let T T T T 2d+m i i i i i T T T T i-1 i n+1 1 2 r T T T T T T T T n+1 1 2 r n 1 1 2 1 r 1 [ , , ] ( ), ( ) ( 1), [ , , , ] [ , , , ] [ , , , ] .</p>
        <p>R c c c                       ，z q p z z z z z z Z z z z Z z z z , Z z z z  (14) A multi-step block solution scheme is constructed to obtain: n+1n+1 2d+m 2d+m n( ) ( )h   I IZ B Z D Z . (15) where r rR B ,and iskronecker.</p>
        <p>For equidistant node i / , 1,2, , .c i ri r   For iz , 1,2, ,i r  ,we carried out Taylor expansion at it and omititshigherorderinfinitesimal. 21 2 0 n n 2r-12r-1 n ( ) ( ) ( )1! 2! ( )2 1 a at a t t t t a t tr         z (16) Tookformula(16)into (15)togetthevalueof B,D. 2 (2r-1) 1 1 2 (2r-1) 2 2 2 (2r-1) r r r 1 2! (2 1)! 1[ ] 2! (2 1)! 1 2! (2 1)! c cc r c cc r c cc r                             B D 2 (2r-2) 1 1 2 (2r-2) 1 2 2 (2r-2) 1 r 2 (2r-1) 1 1 2 (2r-1) 2 2 2 (2r-1) r r r 0 1 1! (2 2)! 0 1 1! (2 2)! 0 1 1! (2 1)! ( 1) ( 1)1 1 2! (2 1)! ( 1) ( 1)1 1 2! (2 1)! ( 1) ( 1)1 1 2! (2 1)! c c r c c r c c r c cc r c cc r c cc r                                        1                          (17) substitute 、B D into formula (15) to get a multistepblocksolutionformatbasedonequidistantnodes.</p>
        <p>Took formula (16) and 1n Z into formula (5) to obtain thefollowingnonlinearalgebraicequations: n+1 2d+m n+1 2d+m n n+1 2d+m n+1 2d+m n T 2d+m n+1 2d+m n 2d+m n+1 2d+m n 2d+m n+1 2d+m n ( ( ) ( ) ) ( ( ) ( ) , ) ( ( ) ( ) , ) ( ( ) ( ) ) ( ( ) ( ) ) h V h t h t h h t                         q I I I I I I I I I I 0        ， q q M B p D p p B q D q B q D q B D B q D q     (18) The above formula is about r(2d+m) equations of r(2d+m) unknowns. In this paper, the value of 1n Z is solved by Newton iteration cycle. The specific steps are asfollows: (1)Giventheinitialvalueof n+1 n+1 n+1  、 、q p  . (2)Fromformula(15),wecangetthevalueof n+1Z . (3)Find the Jacobi matrix of formula (18), it can be representedbyablockmatrix: 11 12 13 21 22 23 31 32 33        J J J J J J J J J J Where   11 d 12 2d+m 21 2d+m 2d+m n+1 2d+m n 2d+m n+1 2d+m n 22 d 23 2d+m n+1 2d+m n 31 2d+m 2d+m n+1 2d+m n = = ( ) = = ( )( ( ( ) ( ) ) ( ( ) ( ) )) = (19) = ( ( ) ( ) ) = ( ( ) ( ) )) T h h V h h h h h                  qq qq q q I I I I I I I I I I I I I     J J M B J J B B q D q B q D q J J B q D q J B B q D q    = = J J (4) Write formula (18) as G, and find the following equation:</p>
        <p>i i+1 i n+1 n+1 n+1 G  Z Z J Until the maximum convergence error is -410 , the valueof n+1 Z isobtained. Took the value of n+1 Z obtained in the previous step into the multi-step block solution format (15), and then got the value of n+1Z , and then got the value of n+1q and n+1p . Repeated the above process, and then got the generalized position vector q and generalized momentum p of ntimes.</p>
      </sec>
      <sec>
        <title>4.2 Multi-step block method based on</title>
        <p>non-equidistant nodes</p>
      </sec>
      <sec>
        <title>4.2.1 Multi-step Block method based on Chebyshev</title>
        <p>Nodes When the node ic(i 1,2, ,r)  are the null point of the chebyshev polynomial, in the interval 1[ , ]k kt t  , there are 2 1(1 cos( )), 1,2, , 1.2 2( 1) i k h ic t i rr       (20) Let'staker=3,h=1asanexample,wegot 1 2 2 4 kc t   , 2 1 2 2 4 kc t   , 3 1c  .</p>
        <p>Substitutethepreviousformulainto(17), 903 277 65 8635 43541 18482 1606 1269 -1141 2199 2515 6340 833 899 -357 1153 1524 3083 87 -1071 998 44030 3380 759 -281 1782 -669 10424 1163 1324 -157 293 -1445 5993 196 3083 B D                                 By substituting the above formula into (15), a multi-step block solution scheme based on chebyshev nodescanbeobtained.</p>
      </sec>
      <sec>
        <title>4.2.2 Multi-step Block method based on Legendre</title>
        <p>Nodes When the node ic(i 1,2, ,r)  are the null point of the legendre polynomial, in the interval 1[ , ]k kt t  , there are 2 1(1 cos( )), 1,2, , 1.2 2( 1) i k h ic t i rr       (21) Let'staker=3,h=1asanexample,wegot 1 3- 12 3 kc t  （ ）, 2 1 3 12 3 kc t  （ ）, 3 1c  .</p>
        <p>Substitutethepreviousformulainto(17), 253 -741 115 1583 43793 17073 1219 443 -367 2148 1348 5374 993 393 65 1814 847 3509 127 -407 391 17196 1274 298 -126 263 1018 7246 1051 1327 -72 545 2873 4961 2784 3509 B D                                 By substituting the above formula into (15), a multi-step block solution scheme based on legengre nodescanbeobtained.</p>
      </sec>
    </sec>
    <sec>
      <title>5. Numerical Example</title>
      <p>Figure 1 shows the crank slider system. The mass of rod 1 is 1 1m kg , the length of rod 1 1l m , and the coordinate of center of mass is 1 1,x y（ ）.The mass of rod 2 is 2 2m kg , the length of rod 2 3l m , and the center of mass coordinate is 2 2,x y（ ）. The mass of the slider is 3 3m kg . The corners are denoted by 1 and 2 , and at the initial time 1 23 6    ， 1 23 6    ， .</p>
      <p>Figure 1. A planar slider crank system. A Hamiltonian system regular DAEs was established based on Hamiltonian principle. A slider crank dynamic model was established by Cartesian modeling.Theconstraintsofthesystemare .</p>
      <p>1 1 1 1 2 1 2 2 1 1 2 1 2 2 1 1 3 1 1 2 2 cos2 sin2 cos cos2 2 sin sin2 2 cos cos lx ly l lx x l ly y x l l                                       Taking the Hamiltonian system regular DAEs of index -2 as an example, the one-step block format constructed by r=4 equidistant nodes was used to solve the problem.</p>
      <p>The step length is h=0.01sand the simulation time is 20 seconds. The solution procedure was calculated by Newtoniterationmethod,withamaximum error of -410 . Thesimulationresultswereshownasfollows: 0 2 4 6 8 10 12 14 16 18 20 -0.5 0.5 t (s) L1</p>
      <p>x1 y1 0 2 4 6 8 10 12 14 16 18 20 -2 -1 t (s) L2</p>
      <p>x2 y2 Figure 2. Time histories of xoy coordinates at the connecting rod end. 0 2 4 6 8 10 12 14 16 18 20 12.7435 12.7435 12.7436 12.7436 12.7436 t (s) total energy (N.m) 0 2 4 6 8 10 12 14 16 18 20 -50 t (s) energies (N.m)</p>
      <p>total energy kinetic energy potential energy Figurre 3. Total energy, kinetic energy, potential energy time histories of the system. 0 2 4 6 8 10 12 14 16 18 20 -5 x 10 -9 t (s)  0 2 4 6 8 10 12 14 16 18 20 -2 x 10 -14 t (s) t 0 2 4 6 8 10 12 14 16 18 20 -0.05 0.05 t (s) tt Figure 4. Time history diagram of errors of displacement and velocity constraints.</p>
      <p>Figure 2 shows the time history of the xoy coordinates atthe end of the connecting rod.Figure 3 shows the time history of total energy and kinetic energy potential energy of the system. Figure 4 is a time history diagram ofdisplacementandvelocityconstraintserrors.</p>
      <p>Itcanbeseenfrom Figures2to 4thatthe blockStable method has high stability in solving the Hamiltonian system regular DAEs. It can keep the energy of the system better and keep the displacement and velocity constraints of the system at the same time. It will not produce constraint default and is suitable for multi-body dynamics simulation. The results of single-step block stabilization method and multi-step block stabilization methodwerecomparedindifferentcasesasfollows: (1)The number of identical equidistant nodes(r=3) was taken in each time interval. The simulation time is 20 seconds, and the results are compared with different step sizes.Theresultsareshown inTable1.Withthedecrease of time step, it can be seen that the running time of the program increases. The Hamilton energy error of the system decreases, the speed constraint and displacement of the system are kept better and better,and the accuracy is gradually improved. When the step size is large, the accuracy of the multi-step block stable format is higher than that ofthe single step blockstableformat.When the step size is small, the accuracy of the single step block stable format is higher than that of the multi-step block stable format.When the step length is reduced to 0.0001, the Hamiltonian energy error of the system reaches 10-9.</p>
      <p>When the step size is reduced to 0.001, the displacement level constraints error of the system reaches 10-11, and the velocity level constraints error is maintained at 10-14. Itcan beseen thatthe two method can keep energy error, displacement constraint error and velocity constraint error better when solving the Hamiltonian system's regular DAEs. The smaller the step size, the higher the accuracy. (2)Fixed step length h=0.01, and different simulation</p>
      <p>time were used to compare the results. The results were shown in Table 2. With the increase of simulation time, the Hamilton energy error of the system, the displacement and velocity constraints of the system are well maintained, and the multi-step block stability method is slightly better. When the simulation time is 1000 seconds, the energy error of the system can be maintained at 10-3. In addition, the speed level constraints of the system aremaintained at 10-14levels of accuracy, and the displacement constraints are maintained at 10-6 levels of accuracy. It can be seen that the one-step and the multi-step block method has high stability and high accuracy in solving the regular DAEs, and all levels of constraints are effectively maintained, and no constraint violation will occur. Hamiltonian energy error doesnot produce drift. Itis suitable for long timemulti-bodydynamicssimulation. （3）The simulation time is 20 s, and the step size is h=0.01. Under the same number of nodes（r=3）, the Hamilton canonica DAES of index-1, index-2, and index-3 were solved in multi-step block method in Table</p>
    </sec>
    <sec>
      <title>4. In terms of running time, index three has the shortest</title>
      <p>running time, and there is little difference between index one and index two. In terms of Hamiltonian energy error of the system, index two has the smallest energy error, followed by index one and index three. On all levels of constraints, the displacement constraints of index-3 are the smallest, reaching 10-15 accuracy. The speed constraint error of index-3 is the smallest, reaching 10-14 accuracy. (4)The simulation time is 20 s, and the step size is h=0.01 and h=0.05. The multi-step block method of index-2 selects equidistant nodes to be compared with nonequidistantnodes(Chebyshevnodes,Legendrenodes) in Table 5. By comparison. It can be seen that both equidistant nodes and non equidistant nodes can effectively maintain constraint errors at all levels, without constraint default. The running time of non equidistant nodes is shorter, and the calculation efficiency is higher. The energy error based on equidistant nodes and Legendre nodes is the smallest, and the comprehensive accuracy based on Legendre nodesisthehighest.</p>
      <p>Table 1. Comparison of error results of single step and multi-step block stabilization methods in different step length step method runtime（t/s） max| |H ( )  ( )t  h=0.01 Singlestepblock 11.9688 7.6121E-4 7.5825E-7 3.5527E-15 multi-stepblock 10.2656 7.4656E-4 4.6101E-7 7.9936E-15 h=0.005 Singlestepblock 21.7813 6.9520E-5 6.0130E-8 3.5527E-15 multi-stepblock 19.2813 6.2707E-5 1.6108E-8 8.8818E-15 h=0.001 Singlestepblock 93.5625 1.255E-7 1.0343E-10 1.1546E-14 multi-stepblock 78.4375 2.5083E-7 1.1745E-11 9.7700E-15 h=0.0005 Singlestepblock 186.6094 7.9132E-9 5.9177E-12 3.5527E-15 multi-stepblock 178.4688 6.2707E-7 1.4382E-11 1.0658E-14 h=0.0001 Singlestepblock 856.1406 1.2102E-10 7.5828E-14 4.4409E-15 multi-stepblock 671.3906 2.5083E-8 7.1460E-11 1.1990E-14 Table 2. Comparison of results of multi-step block method in different simulation time method runtime（t/s） max| |H ( )  ( )t  t=10 Singlestepblock 5.6250 7.4936E-4 7.5825E-7 2.4425E-15 multi-stepblock 5.8281 4.6498E-4 3.7817E-7 6.2172E-15 t=100 Singlestepblock 55.4219 0.0018 3.1471E-6 7.9936E-15 multi-stepblock 50.4844 0.0021 4.6101E-7 4.3521E-14 t=200 Singlestepblock 109.4375 0.0042 6.9271E-6 1.6265E-14 multi-stepblock 98.4063 0.0034 6.2831E-7 4.3521E-14 t=500 Singlestepblock 269.5156 0.0095 1.6865E-5 3.3751E-14 multi-stepblock 267.3125 0.0079 1.4586E-6 5.0626E-14 t=1000 Singlestepblock 531.8594 0.0186 3.5261E-5 1.1946E-13 multi-stepblock 528.9844 0.0146 2.8005E-6 5.8176E-14</p>
      <p>Table 3. Comparison of Hamilton canonica DAES for multi-step block method solving indices-1,2,3. method runtime（t/s） max| |H ( )  ( )t  Index-1 Singlestepblock 11.2564 0.0034 9.6786E-5 0.0056 multi-stepblock 10.5938 0.0021 2.1706E-6 0.0011 Index-2 Singlestepblock 11.9688 7.6121E-4 7.5825E-7 3.5527E-15 multi-stepblock 10.2656 7.4656E-4 4.6101E-7 7.9936E-15 Index-3 Singlestepblock 9.5674 0.0968 8.3267E-16 0.0042 multi-stepblock 8.9531 0.0035 1.5543E-15 9.10451E-4 Table 4. Comparison of the results of multi-step block method for finding equidistant and non-equidistant nodes step runtime（t/s） max| |H ( )  ( )t  Uniform node h=0.01 11.7344 0.0035 1.5543E-15 9.1045E-4 h=0.05 3.1563 2.0479 4.8378E-14 0.6194 Chebyshev node h=0.01 11.2031 0.0045 1.4433E-15 0.0113 h=0.05 3.0781 2.5102 9.8740E-14 0.2471 Legendre node h=0.01 10.5156 0.0021 1.5543E-15 0.0030 h=0.05 3.0156 0.9909 1.3814E-14 0.1817</p>
    </sec>
    <sec>
      <title>6. Conclusion</title>
      <p>In this paper, two methods of block stabilization method wereusedtosolve Hamiltoniansystem canonical differential algebraic equations, and the simulation experiments of planar crank slider system were carried out. Numerical results show that the two methods are effective in solving Hamiltonian canonical DAEs with good stability and small energy error. It can effectively maintain all levels of constraints, and the long time simulation energy will still not be offset, which is suitable for long time multi-body system dynamics simulation. In addition, this method is simple in programming and versatile, which is suitable for engineering application. It is necessary to keep as many invariants as possible without reducing the accuracy of thealgorithm.</p>
    </sec>
    <sec>
      <title>Acknowledgments</title>
      <p>The financial support was provided by the National Natural Science Foundation of China (NNSFC) through grantNos11772166,11472143.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref-001">
        <mixed-citation>[1] J. Sanz-Serna. Bit Numerical Mathematics, 28(1988)877-883.</mixed-citation>
      </ref>
      <ref id="ref-002">
        <mixed-citation>[2] K. Feng. Journal Of Computational Mathematics,4(1986)27-28.</mixed-citation>
      </ref>
      <ref id="ref-003">
        <mixed-citation>[3] Q. Gao, S.J. Tan, H.W. Zhang. International Journal For Numerical Methods In Engineering, 89(2012)438-508.</mixed-citation>
      </ref>
      <ref id="ref-004">
        <mixed-citation>[4] E. Lens, C. Alberto. Multibody System Dynamics,18(2007)435-470.</mixed-citation>
      </ref>
      <ref id="ref-005">
        <mixed-citation>[5] E. Hairer. Journal Of Numerical Analsis, Industrial And Applied Mathematics, 5(2010) 73-84.</mixed-citation>
      </ref>
      <ref id="ref-006">
        <mixed-citation>[6] C. Kane, J.E. Marsden, M. Ortiz. Journal Of MathematicalPhysics,40(1999)3353-3371.</mixed-citation>
      </ref>
      <ref id="ref-007">
        <mixed-citation>[7] S. Leyendecker, J.E. Marsden, M. Ortiz. Zeitschrift Fur Angewandte Mathematik Und Mechanik,88(2008)677-708.</mixed-citation>
      </ref>
      <ref id="ref-008">
        <mixed-citation>[8] Z. Terze, A. Muller, D. Zlatar. Multibody SystemDynamics,34(2015)275-305.</mixed-citation>
      </ref>
      <ref id="ref-009">
        <mixed-citation>[9] S.Y. Zhang, Z.C. Deng. Applied Mathematics AndMechanics,(2004)424-429.</mixed-citation>
      </ref>
      <ref id="ref-010">
        <mixed-citation>[10] L.F. Shampine, H.A. Watts. Bit Numerical Mathematics,12(1972) 252-266．</mixed-citation>
      </ref>
      <ref id="ref-011">
        <mixed-citation>[11] Z.A. Majid, M.B. Suleiman. Applied Mathematics And Computation, 184(2007) 514-522.</mixed-citation>
      </ref>
      <ref id="ref-012">
        <mixed-citation>[12] R.C. Eberhart,Y. Shi.Congress On Evolutionary Computation.1(2002)84-88.</mixed-citation>
      </ref>
      <ref id="ref-013">
        <mixed-citation>[13] P. Console, E. Hairer, C. Lubich. Numerische Mathematik,124(2013)517-539.</mixed-citation>
      </ref>
      <ref id="ref-014">
        <mixed-citation>[14] E. Hairer, C. Lubich. Numerische Mathematik, 97(2014)699-723.</mixed-citation>
      </ref>
      <ref id="ref-015">
        <mixed-citation>[15] B.W. Li, J.Y. Ding. Mathematical Problems In Engineering,(2019)1-11.</mixed-citation>
      </ref>
    </ref-list>
  </back>
  <floats-group>
    <fig id="fig-001" position="float">
      <graphic xlink:href="figures/fig-001.jpg"/>
    </fig>
  </floats-group>
</article>
