Variational Integrators for Interconnected Lagrange-Dirac Systems

Helen Parks, Melvin Leok

Abstract

This paper introduces a modular framework for the simulation of complex mechanical and electrical systems by decomposing them into simpler subsystems and reconnecting them via discrete Dirac structures. By developing a discrete Dirac tensor product, the authors provide a method for constructing structure-preserving integrators that maintain the underlying physical properties of interconnected systems—such as energy behavior and constraints—over long-term simulations. The framework is validated through numerical examples, demonstrating machine-precision constraint satisfaction and linear scalability.

Introduction

In modern engineering and physics, the modeling of interconnected systems—complex assemblies ranging from multi-jointed robots to intricate power grids—presents a significant challenge. Traditionally, these systems are modeled using a "monolithic" approach, where the entire assembly is treated as a single, unified block. While effective for small-scale problems, this approach lacks modularity; any change to a single component requires a complete re-derivation of the system's governing equations.

Furthermore, many physical systems involve nonholonomic constraints (such as wheels rolling without slipping) or degenerate Lagrangians. While the continuous-time framework of Lagrange–Dirac mechanics provides a robust mathematical foundation for these systems, translating this into discrete-time algorithms suitable for computer simulation often results in the loss of geometric properties, leading to numerical drift and physical inaccuracies. This paper addresses these challenges by proposing a variational framework that allows for the modular assembly of discrete-time systems while preserving their geometric and physical integrity.

Methodology

Variational Integrators

The proposed framework is built upon the foundation of variational integrators. Unlike standard numerical solvers that approximate differential equations directly, variational integrators approximate the underlying action integral. By applying a discrete version of Hamilton’s Principle, these schemes naturally inherit the symplectic nature of the physical system, ensuring superior long-term stability and energy conservation compared to traditional methods like Runge-Kutta.

Discrete Dirac Structures and the Tensor Product

The central innovation of this work is the development of discrete Dirac structures and the discrete Dirac tensor product.

  1. Discrete Dirac Structures: These provide a geometric language to encode both the internal dynamics of a subsystem and the constraints that govern its behavior in a discrete-time setting.
  2. Discrete Dirac Tensor Product: This mathematical operation serves as the mechanism for "gluing" separate subsystems together. It ensures that when two discrete systems are interconnected, the resulting composite system remains a valid Dirac system, thereby inheriting all the structure-preserving properties of its components.

The Commutativity Property

A critical theoretical contribution of the paper is the proof of commutativity between discretization and interconnection. The authors demonstrate that the resulting numerical model is identical whether one first interconnects the continuous subsystems and then discretizes the whole, or discretizes the individual subsystems first and then interconnects them. This property is essential for a truly modular library of components, as it guarantees that pre-discretized modules will behave correctly when assembled into larger systems.

Numerical Validation

The framework was tested using two primary benchmark examples designed to evaluate its accuracy and stability:

  • Chain of Spring Masses: A mechanical system was "torn" into two distinct subsystems and subsequently reconnected. The simulation tracked the interaction between the masses and the preservation of the interconnection constraints.
  • RLC Circuit: A parallel circuit was modeled by joining a capacitor subsystem to an RL loop subsystem, testing the framework's applicability to electrical domains.

Key Results

  • Accuracy and Consistency: In both the spring-mass and RLC circuit tests, the results produced by the modular "interconnected" model were indistinguishable from those of a traditional monolithic model.
  • Constraint Satisfaction: The framework achieved constraint satisfaction (e.g., ensuring the position of a shared node remains identical across subsystems) to machine precision ($10^{-16}$) throughout the duration of the simulations.
  • Computational Efficiency: The modular approach introduced negligible overhead. For the spring-mass system, the runtime for 1,000 iterations increased only marginally from 0.0028s (monolithic) to 0.0029s (modular), suggesting that the method scales linearly with the number of interconnections.
  • Long-term Stability: Because the method is variational, it avoids the energy drift common in non-geometric integrators, maintaining physical consistency over 100,000+ iterations.

Conclusion and Future Work

This research demonstrates that modularity in complex system simulation does not have to come at the cost of physical fidelity. By using discrete Dirac structures, engineers can build libraries of primitive subsystems—such as motors, links, or circuit elements—and reliably snap them together to form complex, stable simulations.

Future research will focus on bridging the gap between the "constrained" view of interconnections used here and the "interaction force" perspective common in continuous mechanics. Additionally, the authors aim to refine the management of redundant variables created during the "tearing" process to further optimize performance for large-scale industrial applications.

Summary updated

Abstract

Interconnected systems are an important class of mathematical models, as they allow for the construction of complex, hierarchical, multiphysics, and multiscale models by the interconnection of simpler subsystems. Lagrange--Dirac mechanical systems provide a broad category of mathematical models that are closed under interconnection, and in this paper, we develop a framework for the interconnection of discrete Lagrange--Dirac mechanical systems, with a view towards constructing geometric structure-preserving discretizations of interconnected systems. This work builds on previous work on the interconnection of continuous Lagrange--Dirac systems (Jacobs and Yoshimura 2014) and discrete Dirac variational integrators (Leok and Ohsawa 2011). We test our results by simulating some of the continuous examples given in Jacobs and Yoshimura 2014.
BibTeX
@article{parks2017variational,
  author = {Helen Parks and Melvin Leok},
  title = {{Variational Integrators for Interconnected Lagrange-Dirac Systems}},
  journal = {J. Nonlinear sci},
  year = {2017},
  doi = {10.1007/s00332-017-9364-7},
}
Figure