NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Dynamics of Connected Rigid Bodies in a Perfect Fluid

Taeyoung Lee, Melvin Leok, N. Harris McClamroch · DOI

Abstract: This paper presents an analytical model and a geometric numerical integrator for a system of rigid bodies connected by ball joints, immersed in an irrotational and incompressible fluid. The rigid bodies can translate and rotate in three-dimensional space, and each joint has three rotational degrees of freedom. This model characterizes the qualitative behavior of three-dimensional fish locomotion. A geometric numerical integrator, referred to as a Lie group variational integrator, preserves Hamiltonian structures of the presented model and its Lie group configuration manifold. These properties are illustrated by a numerical simulation for a system of three connected rigid bodies.

Introduction

Simulating the locomotion of aquatic animals, such as fish, presents a significant "fluid-structure interaction" challenge. A fish's body deforms through internal muscular forces, which are then translated into external propulsion by the surrounding fluid. Most existing mathematical models are limited to 2D planar motion or rely on "slender body theory," which ignores the physical thickness of the body segments.

Furthermore, standard numerical tools like Runge-Kutta methods often encounter geometric hurdles in 3D simulations. Rotation matrices can lose their orthogonality, and the system's total energy may artificially drift over time, making long-term studies of swimming efficiency or maneuverability unreliable.

Analytical Modeling

The researchers modeled the articulated body as a chain of rigid ellipsoids connected by 3-degree-of-freedom ball joints. To handle the fluid dynamics without the prohibitive computational cost of full CFD, they assumed a "perfect fluid" (incompressible and irrotational). This allows the fluid's influence to be represented as "added inertia" terms within the rigid bodies' mass matrices.

Schematic of three connected rigid bodies ($R_0, R_1, R_2$) in a reference frame with joint vectors $d_{ij}$.

The configuration of the $i$-th body is represented by its position $x_i \in \mathbb{R}^3$ and its orientation $R_i \in SO(3)$. The total configuration space is the product of these Lie groups, $SE(3)^{n+1}$.

Lie Group Variational Integrator (LGVI)

The core contribution of this work is the development of a Lie group variational integrator. Unlike standard methods that use local coordinates (like Euler angles) which are prone to singularities like "gimbal lock," the LGVI performs calculations directly on the Lie group manifold.

By deriving the integrator from a discrete version of Hamilton’s principle, the authors ensured that the simulation naturally respects fundamental physical laws, including the conservation of momentum and the symplectic structure of Hamiltonian dynamics. This "structure-preserving" property allows for high-fidelity simulations over long durations.

Numerical Results and Discussion

The authors validated their approach using a numerical benchmark: a 100-second simulation of three connected ellipsoids performing a complex rotational maneuver in a fluid. They compared the LGVI against a standard high-order Runge-Kutta method (RK45).

Comparison of numerical simulation results between the Lie group variational integrator (solid red) and a standard Runge-Kutta method (dotted blue) across various physical metrics.

Key findings from the comparison include:

  • Energy and Momentum Conservation: The LGVI's total energy oscillated slightly but remained near the initial value without long-term drift. Similarly, it preserved the "momentum map" (linear and angular momentum) exactly. In contrast, the RK45 method showed significant deviation in both energy and momentum.
  • Numerical Precision: The orthogonality error—a measure of how much a rotation matrix deviates from being a proper rotation—was maintained below $10^{-13}$ for the LGVI, effectively machine precision.
  • Trajectory Stability: The two methods provided compatible results only for a very short initial period. After that, the accumulated errors in the standard method led to a physically incorrect trajectory.

Conclusion

The primary limitation of this model is the "perfect fluid" assumption, which neglects viscosity and the creation of thrust-generating vortices. However, the "added mass" approach captures the essential qualitative dynamics of swimming while remaining computationally efficient enough for control design. Future work will focus on incorporating more complex fluid models and using this framework to solve optimal control problems for energy-efficient robotic locomotion.

Summary updated

BibTeX
@inproceedings{lee2009dynamics,
  author = {Taeyoung Lee and Melvin Leok and N. Harris McClamroch},
  title = {{Dynamics of Connected Rigid Bodies in a Perfect Fluid}},
  booktitle = {ACC},
  year = {2009},
  doi = {10.1109/acc.2009.5159850},
}
Figure