Shanghai University
Article Information
- Minghui FU, Kelang LU, Weihua LI, S.V. SHESHENIN
- New way to construct high order Hamiltonian variational integrators
- Applied Mathematics and Mechanics (English Edition), 2016, 37(8): 1041-1052.
- http://dx.doi.org/10.1007/s10483-016-2116-8
Article History
- Received Oct. 29, 2015
- Revised Apr. 14, 2016
2. Guangdong Provincial Academy of Building Research Group Company Limited, Guangzhou 510500, China;
3. College of Electromechanical Engineering, Guangdong Polytechnic Normal University, Guangzhou 510635, China;
4. Faculty of Mechanics and Mathematics, Lomonosov Moscow State University, Moscow 119992, Russia
Many numerical methods have been developed to simulate the dynamics. Typically,the symplectic methods[1-2] preserve the symplectic structure of the original flow of the differential system and have an excellent long-time energy behavior. During the last decades,they have been successfully applied to problems in mechanics,physics,biology,chemistry,etc.
There are two ways to construct symplectic methods. One is that the construction of symplectic methods is based on dual differential equations,the resulting methods,e.g. the precise integration methods[3-4],symplectic Runge-Kutta (SRK) methods[5-6],symplectic partitioned Runge-Kutta (SPRK) methods[7-8],symplectic Runge-Kutta NystrÖm (SRKN) methods[9-10],symplectic exponentially fitted Runge-Kutta (SEFRK) methods[11-12],which have been developed for a large class of problems. Another way is symplectic methods derived from the discrete variational formulation of a given system. The resulting numerical integrators,known as variational integrators[13],have remarkable characters,such as symplectic and momentumpreserving,as well as the superior predictions about energy conservation or change. Based on different discrete variational formulations (e.g. Hamilton’s variational principle,Lagrange d’Alembert principle,Hamilton-Pontryagin principle),variational integrators have been developed for conservative mechanical systems[14-15],constrained systems[16-20],and stochastic systems[21-22]. The applicability of variational integrators is not limited to mechanical systems,but extended to the simulation of heat conduction[23],electric circuits[24],and magnetic systems[25].
The theories of discrete Lagrangian mechanics and the corresponding variational integrators are reasonably well developed. But for some systems,for example,degenerate Lagrangian systems,the variational integrators may be more easily derived from the Hamiltonian side. However,there are not sufficient corresponding researches[26-27]. And the Hamilton’s variational principle in the phase space corresponding to the boundary value problems is not convenient to construct variational integrators directly. Luo et al.[28] proposed an unconventional Hamilton’s variational principle that absolutely corresponds to initial value problems and the resulting algorithms for the liner dynamic system.
In this paper,we propose a new approach for constructing variational integrators for conservative mechanical systems based on a simplified unconventional Hamilton’s variational principle in the phase space. And some particular variational integrators are derived. Meanwhile,the symplecticity and the computational performance of the proposed integrators compared with those of the SRK methods are discussed. Finally,we carry out some numerical examples to show the numerical behavior and the efficiency of the proposed integrators when they are compared with those of the SRK and the fourth-order Runge-Kutta (RK4) methods.
2 Simplified unconventional Hamilton’s variational principleIn the time step [0,τ],the functional of the unconventional Hamilton’s variational principle for Hamiltonian systems is as follows:
where q and p are the d-dimensional generalized displacement and momentum,respectively,H is the Hamilton function,q0 and p0 are the initial value vectors,q0 = q(0),p0 = p(0),qτ = q(τ),pτ = p(τ),the variables with (◦) are constrained variational variables which are regarded as invariants during the variational operation,and (·) indicates the differentiation with respect to the time t.
Using δⅡ(q,p) = 0,the Hamilton dual equations
and the initial conditions
can be derived,which clearly indicate that the unconventional Hamilton’s variational principle can reflect all the features of the initial value problems.
If q and p satisfy the initial conditions,Eq.(1) can be simplified as
From
Combined with the integrand by parts,we have
Considering the arbitrariness of δq and δp,the Hamilton dual equations can be easily derived. Equation (5) is the simplified unconventional Hamilton’s variational principle in the phase space presented in this paper,and Eq.(4) is the corresponding functional. q and p have satisfied the initial conditions. Therefore,Eq.(5) absolutely corresponds to the initial value problems.
3 Variational integrators based on simplified unconventional Hamilton’s variational principle 3.1 Construction of variational integratorsIn the time step [0,τ],t0,t1,· · · ,tm are a set of different specified points,and t0 = 0. q and p are approximated by the mth-order Lagrange polynomial,which can be expressed as
where
Substituting Eq.(7) into Eq.(6) and using the Gaussian quadrature,the following relationships are established:
where g1,g2,· · · ,gn are the Gaussian quadrature points,and bj are the weight coefficient of Gaussian quadrature.
Considering δq0 = 0,δp0 = 0,and the arbitrariness of δqk,δpk,Eq.(8) can be rewritten as
q0 and p0 have already been known,therefore,there are 2md equations and 2md unknowns in Eq. (9). For linear or nonlinear dynamic systems,Eq. (9) is a set of linear or nonlinear algebraic equations.
Solving Eq. (9),the values of qi,pi (i = 1,2,· · · ,m) can be achieved. And the values of qτ and pτ can be derived from Eq. (7). However,the preferable method is introduced to solve qτ and pτ as follows. Computing the integral for Eq. (2) yields

Using the n point Gaussian quadrature results in

The values of qτ and pτ can be easily obtained from Eq. (11). It should be pointed out that Eq. (11) is also used to calculate the end point values in the SRK methods.
In this paper,the Newton-Raphson method is used to solve the nonlinear algebraic equations. Therefore,the selection of initial values is critical during the iteration process. Because of the particularity in constructing the integrators,the initial values for the first time step are arbitrary and for other time steps can be easily achieved by the extrapolation of the Lagrange interpolation polynomial of the last time step,namely,

where qi and pi are the values of qi and pi of the last time step.
The processing method can make the initial values much closer to the solution and decrease the iterations at the cost of slightly increasing the calculation of selecting initial values. And the numerical examples in Section 5 show that the processing method can make a 40%−50% efficiency improving.
3.2 Optimal variational integratorsIn the following,the optimizing of the proposed integrators is discussed. Assuming m = n,the Lagrange interpolation points t1,t2,· · · ,tm are consistent with the Gaussian quadrature points g1,g2,· · · ,gn. Considering li(tj) = δij,δ is the Kronecker delta,and Eq. (9) can be simplified as

where
Solving Eq. (13),the values of qi,pi (i = 1,2,· · · ,m) can be obtained. And qτ and pτ are given by

which completes the calculation of a time step.
Equations (13) and (14) are the optimal forms of the proposed integrators in this paper. It can be seen clearly that the optimal form is much more concise and easier to program and for application.
4 Performance of proposed integrators 4.1 Symplecticity of proposed integratorsThe method to prove the symplecticity of the proposed optimal integrators is described in the following. Letting v = [qT,pT]T,F (v) = [H'pT,−H'qT]T,Eqs. (13) and (14) can be,respectively,expressed as


Taking partial derivatives of Eqs. (15) and (16) with respect to v0,we get


where

where A is a symplectic matrix,and the proposed integrators are symplectic,
The above approach is the generalized way to prove the symplecticity of the proposed integrators. For different problems,the specific form of A can be obtained. It is shown that A is a strictly symplectic matrix from enormous examples. Therefore,the proposed integrators are symplectic.
4.2 Comparison of performance with SRK methodsIn the following,we analyze the performance of proposed integrators and the SRK methods.
The m-stage 2m-order SRK method can be expressed as


The Jacobi matrix of the Newton-Raphson iteration method for the proposed integrators can be obtained from Eq. (15),which can be expressed as the combination of the linear part and the nonlinear part. The nonlinear part is as follows:
which is a block diagonal matrix,and the size of submatrix is 2d × 2d. However,for the SRK method,the nonlinear part of Jacobi matrix of Eq. (20) is a full matrix.
It can be seen that the proposed integrators compared with the same order SRK method have two advantages. One is that the nonlinear part of the Jacobi matrix of Newton-Raphson iteration method is a block diagonal matrix and that of the SRK method is a full matrix,which means less data that need to be updated during the iteration process and the less computational cost of the proposed integrators. Another advantage is that the block diagonal nonlinear part is much more helpful to construct more efficient iteration methods.
5 Numerical examplesIn this section,several numerical examples are tested to access the numerical performance of the proposed integrators.
5.1 Linear harmonic oscillatorTo study the symplecticity of the proposed integrators,the linear harmonic oscillator is considered. The Hamilton function is H = p2/2 + q2/2. For τ = 1,m = 2,the proposed integrators with 2,3,4,and infinite integration points are used,respectively,and the results are listed in Table 1.
![]() |
The results show that,for initial value problems,the integrators based on the simplified unconventional Hamilton’s variational principle in the phase space are symplectic only under certain conditions,such as m = n in this paper. According to Table 1,the integrator with the infinite integration point in Ref. [28] is not strictly symplectic.
5.2 Perturbation pendulum problemThe perturbation pendulum problem with the Hamilton function H = p2/2−cos(q(1−p/6)) is an inseparable Hamiltonian system because of the coupling term. The initial conditions are q(0) = 1 and p(0) = 0.1. The simulations are carried out for 0 s ≤ t ≤ 102 s with time steps τ = 0.1 and τ = 0.2.
Firstly,we study the accuracy of the proposed variational integrators. According to Ref. [29],the accuracy order r of numerical algorithms can be evaluated as follows:

where τ1 and τ2 are the time steps,e1 and e2 are the corresponding errors of the integral results.
Table 2 shows the changes of accuracy order r with m,which indicates that the proposed integrators have accuracy of 2m order.
Then,the comparison of the accuracy between the proposed variational integrators and the SRK methods is discussed. In the cases of m = 1,2,3,and 4,the proposed integrators and the SRK methods are denoted as M2,M4,M6,M8 and SRK2,SRK4,SRK6,SRK8,respectively. Figure 1 illustrates the relative error eH = |(H(t) − H(0))/H(0)| in the numerical solution of the Hamilton function versus the time t in the case of τ = 0.2. The figures show that the eH curves of the two methods almost overlap for the same m and further indicate that the accuracy order of the proposed integrators is 2m,which is the same as the SRK methods.
![]() |
Fig. 1 Relative error eH versus time t, (a) m = 1; (b) m = 2; (c) m = 3; (d) m = 4 |
|
Finally,the iteration efficiency of the proposed integrators with the initial values estimated by Eq. (12) is studied. The average iterations per step of the M4 and M6 integrators are shown in Table 3. The results indicate that the average iterations are much less,and the efficiency is improved by 40%−50%.
The classical trajectory method is an effective theoretical method in studying the microcosmic reaction dynamics. The micro-reaction system,as a classical Hamiltonian system,can be regarded as a particle system of which the atoms are moving at the electronic potential energy surface. Considering the diatomic system,the dimensionless Hamilton function is H = p2/2 + (e−2q − 2e−q)/2. The initial conditions are q(0) = 0,
Figure 2 illustrates the relative error eH with the time t. Obviously,the M4 and SRK4 methods with almost the same eH curves both show the advantage of the long-time energy conservation,which accords with the property of symplectic algorithms. The eH curve of the RK4 method increases linearly with t − t0. Figure 3 describes the comparison of phase diagrams between the three methods. It is clearly shown that the calculating phase diagrams of the M4 and SRK4 methods are overlapped closed curves,which means that the two atoms vibrate periodically,and the numerical results are consistent with experiment results. The phase diagram of RK4 method is a closed loop with a certain width,which indicates that an obvious artificial dissipation phenomenon has appeared during simulation and also reflects the disadvantages of non-symplectic algorithms.
![]() |
Fig. 2 Relative error eH with time t, (a) M4 and SRK4 methods; (b) RK4 method |
|
![]() |
Fig. 3 Phase diagrams for different methods |
|
The celestial mechanics often involves the Kepler problem,for example,satellites circle the earth,and the planets move around the sun or binary star systems. The Hamilton function of the Kepler problem is
The comparisons of the relative error eH during the last 10 periods are shown in Fig. 4. The diagrams of global errors ez versus the period T for various methods are illustrated in Fig. 5. It is obvious that the M4 and SRK4 methods both have the advantage of energy conservation in the long-time simulation,and the relative error ez is stable of the order 10−7. The global error ez of the M4 and SRK4 methods grows linear with t − t0 and that of the RK4 method quickly grows with (t − t0)2 because of the energy dissipation. Therefore,symplectic algorithms,such as the M4 and SRK4 methods,show a huge advantage in the quantitative problems,especially in the long-term tracking numerical simulations.
![]() |
Fig. 4 Relative error eH with time t, (a) M4 and SRK4 methods; (b) RK4 method |
|
![]() |
Fig. 5 Globe error ez with period T , (a) M4 and SRK4 methods; (b) RK4 method |
|
Consider the two-fixed-center problem. This problem with three degrees of freedom can be regarded as a simplified model for the restricted three-body problem model,which is of great importance in studying the movement theory of artificial earth satellite and not solved completely so far. The Hamilton function is
Take μ = 0.5,τ = 0.1. The initial conditions are q1 = 1.0,q2 = 0.1,q3 = 0,p1 = 0,p2 = 0.5,and p3 = 0.2. The problem is solved using the M4,SRK4,and RK4 methods,respectively,and carried out to 104 s.
Figure 6 shows the relative error eH with the time t. The figure indicates that,the M4 and SRK4 methods with a stable eH of the order 10−6 have a preferable long-term energy conservation behavior,and eH of the RK4 method is accumulated linearly along the time t− t0.
![]() |
Fig. 6 Relative error eH with time t, (a) M4 and SRK4 methods; (b) RK4 method |
|
In the present work,a new way for constructing variational integrators has been developed. The new integrators are based on the simplified unconventional Hamilton’s variational principle in the phase space that not only corresponds to initial value problems,but also is very convenient for application. For the nonlinear system,the selection of initial values in iterations for the Newton-Raphson method is proposed.
Numerical studies show that the variational integrators have 2m order computational accuracy,where m is the order of the Lagrange polynomial. Compared with the same order SRK methods,the computational cost of the proposed integrators is much less. In addition,the nonlinear part of Jacobi matrix has a block diagonal form,which helps to construct more efficient iterative algorithms.
Experimental tests show that the proposed integrators have the high accuracy and excellent long-time energy behavior. Meanwhile,it becomes obvious that the variational integrators based on the unconventional Hamilton’s variational principle are symplectic only if the interpolation points and numerical integration points have particular relations. Therefore,it is not entirely accurate that the algorithms constructed based on the unconventional Hamilton’s variational principle are all symplectic (see Ref. [28]).
[1] | Feng, K. Difference schemes for Hamiltonian formalism and symplectic geometry. Journal of Computational Mathematics, 4, 279-289 (1986) |
[2] | Ruth, R. D. A canonical integration technique. IEEE Transactions on Nuclear Science, 30, 2669-2671 (1983) |
[3] | Zhong, W. X., & Williams, F. W. A precise time step integration method. Proceedings of the Institution of Mechanical Engineers, 208, 427-430 (1994) |
[4] | Zhong, W. X. On precise integration method. Journal of Computational and Applied Mathematics, 163, 59-78 (2004) |
[5] | Saito, S., Sugiura, H., & Mitsui, T. Family of symplectic implicit Runge-Kutta formulae. BIT Numerical Mathematics, 32, 539-543 (1992) |
[6] | Sanz-Serna, J. M., & Abia, L. Order conditions for canonical Runge-Kutta schemes. SIAM Journal on Numerical Analysis, 28, 1081-1096 (1991) |
[7] | Abia, L., & Sanz-Serna, J. M. Partitioned Runge-Kutta methods for separable Hamiltonian problems. Mathematics of Computation, 60, 617-634 (1993) |
[8] | Monovasilis, T., Kalogiratou, Z., & Simos, T. E. Symplectic partitioned Runge-Kutta methods with minimal phase-lag. Computer Physics Communications, 181, 1251-1254 (2010) |
[9] | Okunbor, D., & Skeel, R. D. An explicit Runge-Kutta-Nyström method in canonical if and only if its adjointis explicit. SIAM Journal on Numerical Analysis, 29, 521-527 (1992) |
[10] | Franco, J. M., & Gómez, I. Symplectic explicit methods of Runge-Kutta-Nyström type for solving perturbed oscillators. Journal of Computational and Applied Mathematics, 260, 482-493 (2014) |
[11] | Simos, T. E., & Vigo-Aguiar, J. Exponentially fitted symplecitic integrator. Physical Reviwe E, 67, 016701 (2003) |
[12] | Simos, T. E. Exponentially-fitted Runge-Kutta-Nyström method for the numerical solution of initial-value problems with oscillating solutions. Applied Mathematics Letters, 15, 217-225 (2002) |
[13] | Marsden, J. E., & West, M. Discrete mechanics and variational integrators. Acta Numerica, 10, 357-514 (2001) |
[14] | Lew, A., Marsden, J. E., Ortiz, M., & West, M. Variational time integrators. International Journal for Numerical Methods in Engineering, 60, 153-212 (2004) |
[15] | Kane, C., Marsden, J. E., & Ortiz, M. Symplectic-energy-momentum preserving variational integrators. Journal of Mathematical Physics, 40, 3353-3371 (1999) |
[16] | Cortés, J., & Martínez, S. Non-holonomic integrators. Nonlinearity, 14, 1365-1392 (2001) |
[17] | Leyendecker, S., Marsden, J. E., & Ortiz, M. Variational integrators for constrained dynamical systems. Journal of Applied Mathematics and Mechanics, 88, 677-708 (2008) |
[18] | Leyendecker, S., Ober-Blöbaum, S., Marsden, J. E., & Ortiz, M. Discrete mechanics and optimal control for constrained systems. Optimal Control Applications and Methods, 31, 505-528 (2010) |
[19] | Kobilarov, M., Marsden, J. E., & Sukhatme, G. S. Geometric discretization of nonholonomic systems with symmetries. Discrete and Continuous Dynamical Systems Series S, 1, 61-84 (2010) |
[20] | Kane, C., Marsden, J. E., Ortiz, M., & West, M. Variational integrators and the Newmark algorithm for conservative and dissipative mechanical systems. International Journal for Numerical Methods in Engineering, 49, 1295-1325 (2000) |
[21] | Bou-Rabee, N., & Owhadi, H. Stochastic variational integrators. IMA Journal of Numerical Analysis, 29, 421-443 (2009) |
[22] | Bou-Rabee, N., & Owhadi, H. Long-run accuracy of variational integrators in the stochastic context. SIAM Journal on Numerical Analysis, 48, 278-297 (2010) |
[23] | Mata, P., & Lew, A. J. Variational integrators for the dynamics of thermo-elastic solids with finite speed thermal waves. Journal of Computational Physics, 257, 1423-1443 (2014) |
[24] | Ober-Blöbaum, S., Tao, M., Cheng, M., Owhadi, H., & Marsden, J. E. Variational integrators for electric circuits. Journal of Computational Physics, 242, 498-530 (2013) |
[25] | Webb., S.D. Symplectic integration of magnetic systems. Journal of Computational Physics, 270, 570-576 (2014) |
[26] | Lall, S., & West, M. Discrete variational Hamiltonian mechanics. Journal of Physics A, 39, 5509-5519 (2006) |
[27] | Leok, M., & Zhang, J. Discrete Hamiltonian variational integrators. IMA Journal of Numerical Analysis, 31, 1497-1532 (2011) |
[28] | Luo, E., Huang, W. J., & Zhang, H. X. Unconventional Hamilton-type variational principle in phase space and symplectic algorithm. Science China Physics, Mechanics and Astronomy, 46, 248-258 (2003) |
[29] | Gao, Q., Tan, S. J., Zhang, H. W., & Zhong, W. X. Symplectic algorithms based on the principle of least action and generating functions. International Journal for Numerical Methods in Engineering, 89, 438-508 (2012) |