LLCM: Leapfrog Integrator with Energy Conservation
- Leapfrog integration (LLCM) is an advanced symplectic integrator that enforces an exact discrete quasi-energy conservation law.
- The algorithm augments the discrete variational principle with a Lagrange multiplier to solve a quadratic constraint, ensuring energy invariance at each time step.
- LLCM improves long-term numerical stability and accuracy in applications like molecular dynamics, Hamiltonian Monte Carlo, plasma physics, and deep learning.
Leapfrog integration, widely employed for symplectic and energy-conserving time integration in computational physics, has found broad application in molecular simulation, Hamiltonian Monte Carlo, Bayesian inference, plasma physics, and, more recently, deep learning and stochastic modeling. The "leapfrog integrator with an energy-like conservation law" (LLCM) represents a significant advancement, embedding an explicit, exact quasi-energy constraint into the algorithmic structure. This modification retains the symplectic and momentum-preserving features of classic leapfrog while enforcing a discrete version of energy conservation, yielding improved long-time numerical stability and boundedness of the mechanical energy (Maggs, 2013).
1. Discrete Variational Principle and the Standard Leapfrog Integrator
Starting from Newton’s equations for particles of mass subject to a potential , the continuous action is given by
Discretizing time with step size and positions at times , a discrete Lagrangian is constructed: The discrete action principle leads to the position-only leapfrog scheme: which is symplectic and momentum-conserving but does not conserve the continuous mechanical energy exactly at the discrete level (Maggs, 2013).
2. Extension to the LLCM: Exact Discrete Quasi-Energy Conservation
To enforce strict conservation of an energy-like invariant, LLCM augments the discrete Lagrangian with a Lagrange multiplier to impose
0
at every step, where 1 is the prescribed quasi-energy. Introducing 2 as a discrete Lagrange multiplier and defining the quasi-energy as 3, the extended Lagrangian becomes
4
Legendre transformation yields the momentum update
5
and the extended Hamiltonian,
6
Enforcing 7 produces the discrete quasi-energy constraint
8
A further extension to a fully Hamiltonian system introduces a conjugate variable 9 and ensures exact preservation of 0 by suitable design of the evolution equations (Maggs, 2013).
3. Explicit Algorithmic Realization and Quasi-Energy Invariance
The LLCM time-stepping algorithm proceeds as:
0 The quadratic equation for 1 is solved at each step, ensuring 2 holds exactly. As a result, discrete quasi-energy 3 is invariant under the LLCM map for all time steps (Maggs, 2013).
4. Symplectic Structure, Long-Time Stability, and Computational Trade-Offs
Embedding the dynamics in the extended 4 phase space, the resulting discrete map preserves a phase-space volume form (unit Jacobian), mirroring the classic symplecticity of leapfrog. Enforced quasi-energy conservation inhibits the secular drift of mechanical energy typical of non-exact symplectic schemes, yielding improved long-term stability of the system’s energy. While the basic (forward) update is not strictly time-reversible, exact time-reversibility is recovered by alternating forward and backward steps, each requiring solution of a small implicit equation for 5. Each step entails the solution of a 6 quadratic for 7 (overall 8 cost per particle system step), in addition to force evaluation. The local integration error per step is 9, as in standard leapfrog, but energy drift is eliminated (Maggs, 2013).
5. Implementation and Practical Considerations
- Initialization: Given 0, solve 1 for 2 and set 3.
- Step-size selection: The step 4 is chosen to resolve system frequencies, as in any explicit symplectic integrator; in practice, 5 remains numerically stable.
- Monitoring invariants: At each time step, 6 is recomputed to verify quasi-energy preservation to round-off, and monitoring of the extended Hamiltonian 7 ensures absence of hidden drifts.
- Time-reversal symmetry: Full time-reversibility is achieved by alternating forward and backward steps with implicit updates for 8.
- Efficiency: The only additional computational overhead is the solution of the quadratic equation at each step and the maintenance of the 9 field, with no significant per-step penalty compared to standard leapfrog (Maggs, 2013).
6. Significance, Relation to Standard Integrators, and Applications
The LLCM can be viewed as a natural extension of the classical symplectic leapfrog, which is already favored for its structure-preserving (momentum and volume) properties, but which does not strictly conserve energy. The LLCM addresses this limitation by embedding the system in an extended phase space and introducing a quasi-energy constraint, thereby enabling the realization of discrete trajectories with exact energy conservation. This innovation is particularly valuable in molecular dynamics, celestial mechanics, plasma particle simulation, and any setting where long-time boundedness of energy is essential (Maggs, 2013).
In summary, the leapfrog integrator with an energy-like conservation law enforces a discrete energy invariant alongside symplecticity and momentum conservation, yielding superior long-time stability, minimal per-step computational overhead, and a rigorous Hamiltonian underpinning (Maggs, 2013).