Constructing equivalence-preserving Dirac variational integrators with forces

Helen Parks, Melvin Leok

TL;DR

This paper introduces a new framework for constructing Dirac variational integrators that can handle external forces while maintaining "equivalence preservation." By ensuring that different mathematical representations of the same physical system yield identical numerical results, the authors provide a robust method for simulating complex, interconnected systems like robotics and circuits without introducing artificial numerical artifacts.

What Problem Does This Paper Address?

In the world of physics simulation, variational integrators are the gold standard because they preserve the underlying geometric structures of a system (like energy and momentum) over long periods. However, most traditional variational integrators are designed for "closed" systems. Real-world engineering—think of a multi-jointed robot or a complex electrical grid—involves interconnected systems where components exert forces on one another.

A major headache in modeling these is equivalence. In physics, you can often describe the same effect in two ways: for example, a spring can be modeled as part of the system's internal potential energy (in the Lagrangian) or as an external force. Mathematically, these are equivalent. However, most numerical integrators are "representation-dependent"—if you move a term from the Lagrangian to the force term, the simulation results change. This inconsistency is a dealbreaker when trying to build modular simulations of large-scale systems.

Methods

The authors bridge the gap between Dirac mechanics (a generalized framework that handles constraints and degeneracy) and forced variational integrators.

Key technical contributions include:

  • Discrete Lagrange-d'Alembert-Pontryagin Principle: They extend the variational principle used to derive integrators to include discrete force terms within a Dirac geometry setting.
  • The "Matching" Recipe: The paper proves a critical theorem (Theorem 2): to preserve equivalence, one must use the same quadrature rule and the same boundary-value solution method for both the discrete Lagrangian ($L_d$) and the discrete forces ($f_d$).
  • Order Analysis: They provide an explicit proof relating the order of approximation of the Lagrangian and forces to the final order of accuracy of the integrator, giving researchers a clear "how-to" for building high-order solvers.

Datasets

The paper does not use external datasets. Instead, it validates the theory using three classic numerical benchmarks:

  1. Damped Harmonic Oscillator: Used to verify the 2nd and 4th order convergence rates.
  2. Conservative Harmonic Oscillator (Equivalence Test): A "synthetic" test where a potential force is gradually shifted from the Lagrangian to an external force term to check for numerical drift.
  3. RLC Resonator Circuit: A practical application showing the framework's utility in electrical engineering.

Key Insights and Ideas

  • Consistency over Optimization: It is tempting to use a very high-order rule for the Lagrangian and a simpler one for forces to save computation. The authors show this is a mistake; "unmatched" discretizations lead to unpredictable results where the simulation "veers away" from the true physics simply because of how the equations were written.
  • Dirac Structures as a Unified Language: By using Dirac structures, the authors can treat constraints (like a hinge on a robot) and forces (like a motor's torque) within the same geometric framework. This is essential for "interconnected" systems where one component's constraint is another's force.
  • Numerical Robustness: The "equivalence-preserving" property acts as a safeguard. If your simulation results change when you refactor your code's physics equations, your integrator isn't equivalence-preserving.

Key Results

  • Convergence: The authors successfully demonstrated that their "recipe" produces integrators that hit their theoretical accuracy targets (e.g., doubling the steps reduced the error by a factor of 4 for 2nd-order and 16 for 4th-order).
  • Equivalence Verification: In a striking visual result (Figure 1), the equivalence-preserving construction showed zero deviation regardless of how the potential was represented. In contrast, non-preserving methods showed a linear increase in error as the representation shifted.
  • Circuit Simulation: The RLC resonator simulation (Figure 3) perfectly matched the exact analytical solution, proving that these "mechanical" integrators are equally powerful for electrical systems modeled via Lagrange-Dirac mechanics.

Limitations and Future Work

  • Exact Discrete Quantities: While the paper provides a recipe for approximating the necessary discrete functions, the "exact" discrete quantities for Dirac systems (the theoretical ideal) are not yet fully elucidated.
  • Large-Scale Interconnections: The current work focuses on the foundational theory. The next step is applying this to "monolithic" vs. "interconnected" models of massive systems to ensure that the internal forces of interconnection cancel out perfectly at the discrete level.
  • Beyond Vector Spaces: The authors mention that extending this to more general manifolds (using Hamel’s formalism) is a promising but currently unfinished direction.

Summary updated

Abstract

Abstract The dynamical motion of mechanical systems possesses underlying geometric structures and preserving these structures in numerical integration improves the qualitative accuracy and reduces the long-time error of the simulation. For a single mechanical system, structure preservation can be achieved by adopting the variational integrator construction (Marsden, J. & West, M. (2001) Discrete mechanics and variational integrators. Acta Numer., 10, 357–514). This construction has been generalized to more complex systems involving forces or constraints as well as to the setting of Dirac mechanics (Leok, M. & Ohsawa, T. (2011) Variational and geometric structures of discrete Dirac measures. Found. Comput. Math., 11, 529–562). Forced Lagrange–Dirac systems are described by a Lagrangian and an external force pair, and two pairs of Lagrangians and external forces are said to be equivalent if they yield the same equations of motion. However, the variational discretization of a forced Lagrange–Dirac system discretizes the Lagrangian and forces separately, and will generally depend on the choice of representation. In this paper we derive a class of Dirac variational integrators with forces that yield well-defined numerical methods that are independent of the choice of representation. We present a numerical simulation to demonstrate how such equivalence-preserving discretizations avoid spurious solutions that otherwise arise from poorly chosen representations.
BibTeX
@inproceedings{parks2018constructing,
  author = {Helen Parks and Melvin Leok},
  title = {{Constructing equivalence-preserving Dirac variational integrators with forces}},
  booktitle = {IMA},
  year = {2018},
  doi = {10.1093/imanum/dry053},
}
Figure