摘要
刚体的构形可用其质心位置和姿态矩阵描述.刚体的位置可以在欧几里得空间中表示,但是其姿态矩阵是在李群上演化的.由于李群独特的非线性性质,基于欧氏空间的多体动力学建模与数值算法难以完全真实地描述系统的动力学特性,特别是长时间历程的动力学特性.本文基于几何力学理论,首先根据离散Hamilton变分原理与离散Legendre变换,建立了多刚体系统的Hamilton体系李群变分积分公式.其次,给出李群变分积分公式的两种离散格式:一般离散格式和RATTLie离散格式.最后,采用这两种不同离散格式构建的算法计算了重力作用下空间刚体双摆的动力学问题,对比研究了算法在保持系统群结构、系统能量等方面的性质.计算结果表明,RATTLie离散格式较一般格式精度更高,且能更好地保持系统群结构与能量.
* 国家自然科学基金资助项目(11832005)
常用多刚体系统动力学建模方法有自然坐标方
刚体的动力学应具备守恒性质,如保守系统的能量守恒,动量守恒等.为不与物理规律相悖,守恒律已经成为检验动力学建模与数值算法的重要标准.虽然用李群方法建模的性质优越,但由于李群自身的非线性性质,使得欧氏空间上的常规数值算法在求解多刚体动力学方程时失效,如常规的Runge-Kutta方法不仅无法保证首次积分守恒,还会产生较大的能量耗散与结构误
方法一、采用新数值离散格式离散系统连续动力学方程.该方法通过引入李括号项可使系统的位形空间始终在真实的李群空间中迭代.例如,Munthe-Kaas基于经典Runge-Kutta算法,通过引入校正函
方法二、李群变分积分算
进一步,Hante 和Arnol
本文基于李群李代数的离散Hamilton方程,建立了Hamilton体系下多刚体系统动力学两类李群变分积分算法.分别采用三种算法(一般格式的李群变分积分算法、RATTLie变分积分算法与Lie-广义α算法)计算了重力作用下空间刚体双摆的动力学问题,对比研究了各算法的能量误差、约束违约等特性.研究表明一般格式的李群变分积分算法与RATTLie变分积分算法在长时间保持系统结构、能量等方面存在显著优势,具有潜在工程应用前景,如:航天器轨道动力学问题、大型柔性空间结构在轨服务操作动力学问题等.
李群变分积分公式是通过离散的Hamilton变分原理得到的动力学方程组,而非对连续的动力学方程组直接进行离散.本文用G表示李群,用表示李代数,用表示李代数的对偶空间.
首先,用离散作用积分和来近似作用积分,其中,N表示初始时刻t0到最终时刻tf的时间离散区间总数,表示区间的离散拉格朗日量.将离散拉格朗日量采用Störmer-Verlet格
(1) |
其中分别表示刚体和时刻的位形,表示从到时刻李群元素的变化量,满足数值迭代格式,为区间内系统的动能,为时刻系统势能,为时刻系统的势能,为离散时间步长.
根据离散Hamilton变分原理可得到离散的Euler-Lagrange方程,再通过离散的Legendre变换得到Hamilton体系下的李群变分积分公
(2) |
中表示离散动量,,分别表示拉回映射,表示余伴随映射,详细符号含义读者可参考文献[
如
(3) |
其中,R表示刚体的随体坐标系相对于惯性坐标系的旋转矩阵,x表示刚体质心在惯性坐标系下的位置矢量,SO(3)表示特殊正交
(4) |
式中,下标i表示刚体编号,,下标n表示时刻,.如
(5) |
将代入迭代公式,根据可得系统的刚体位形迭代公式为
(6) |
接下来计算多刚体系统的动能项.系统的动能等于转动动能与平动动能之和,根据文献[
(7) |
其中为李代数空间so(3)元素,该李代数空间与欧氏空间同构,其同构关系由帽子映射so(3),so(3),给

图1 多刚体系统构形示意图
Fig.1 Schematic view of a multi-rigid body system configuration
因此,根据与可得到系统在区间的总动能为:
, | (8) |
其中表示刚体i的质量,表示刚体i的非标准惯性张量矩阵,其与常用的惯性张量矩阵J关
其次,对于完整约束力学系统,可将约束项与拉格朗日乘子乘积直接作为势能项处理,此时势能项由重力势能与约束项势能组成.设多刚体系统的约束方程共有m个,则约束方程与对应的拉格朗日乘子可分别表达为:
(9) |
中与分别表示时刻编号j的约束方程,与分别表示时刻编号j的拉格朗日乘子.
通过推导,可进一步得到与时刻受约束多刚体系统的势能为:
(10) |
其中为重力方向的单位矢量.上标“C”表示受约束的多刚体系统.
最后,根据离散Hamilton变分原理与离散Legendre变换,得到多刚体系统一般格式李群变分积分公
, | (11) |
, | (12) |
, | (13) |
, | (14) |
与中分别为和时刻刚体i的体角动量.与中,平动部分用惯性坐标系表示,为和时刻刚体i在惯性坐标系中的线动
RATTLie变分积分算法与上述一般离散格式算法的区别,在于对李代数元素的离散方式.表示一般离散格式的角速度,而RATTLie离散格式的角速度与惯性坐标系下质心的线速度分别
, | (15) |
其中称为对数映
(16) |
根据离散Hamilton变分原理,得到RATTLie离散格式下的多刚体系统离散Euler-Lagrange方程
, | (17) |
其中表示不考虑约束的时刻的系统势能,T为切映射矩阵,为编号为i刚体的广义力矩.根据文献[
, | (18) |
. | (19) |
其中.令,并代入,可求出与的表达式.
中,,分别表示时刻约束j关于刚体i的转动项,平动项的Jacobi矩阵,其中符号表示约束关于的求导运算,表示约束关于的求导运算,详细运算定义读者可参考文献[
. | (20) |
值得注意的是,与平动部分不同,转动部分的变分需在李代数空间so(3)刻
. | (21) |
为了使系统约束的速度违约更小,引入新Lagrange乘子与以更好地满足速度约束,注意.于是对进行离散的Legendre变换得到RATTLie离散格式下的李群变分积分公式.根据文献[
, | (22) |
在区间的迭代公式为
(23) |
因此,RATTLie方法在一步时间积分区间的迭代过程为:首先根据时刻的,求解中的,与;然后根据计算得到,;最后求解中时刻的,与.
考察如

图2 重力作用下的空间双摆模型示意图
Fig.2 Schematic view of a spatial double pendulum under the gravity action
杆1的局部坐标系O1-X1Y1Z1与杆2的局部坐标系O2-X2Y2Z2如
双摆系统有两处约束,O处球铰为约束1,A处球铰为约束2,综合写为
(24) |
中的为约束j处的球铰到摆i的质心的位置向量,本算例中,,.
采用Lie-广义α方法计算时,算法谱半径选取为0.9.另外两类Hamilton体系变分积分算法则直接求解非线性方程组.Lie-广义α方法,一般格式的李群变分积分算法与RATTLie变分积分算法均使用1

图3 杆2质心O2点位移矢量的X轴方向分量
Fig.3 X-component of the second pendulum’s mass center O2

图4 杆2角速度矢量绕O2X2轴方向分量
Fig.4 Component of the second pendulum’s angular velocity about axis-O2X2


图5 空间双摆的能量变化曲线对比图:(a) 0~50s (b) 7.5~10s
Fig.5 Comparison of the spatial double pendulum’s energy variations :(a) 0~50s (b) 7.5~10s

图6 空间双摆SO(3)正交性误差曲线对比图
Fig. 6 Comparison of the spatial double pendulum’s SO(3) orthogonality error curves

图7 空间双摆速度约束违约曲线对比图
Fig.7 Comparison of the spatial double pendulum’s velocity constraint violation curves
基于离散变分原理建立了多刚体动力学模型的一般格式李群变分积分算法和RATTLie变分积分算法.通过算例对比分析发现:一般格式的李群变分积分算法和RATTLie变分积分算法具有保能量、保结构的性质.在积分步长选取较大时,该方法远远优于步长较小的商业软件的计算结果;RATTLie方法的系统能量保持特性优于一般格式算法;采用Hamilton体系的李群变分积分算法相比离散Lagrange体系的算法能量波动范围更小,约束违约更小.后续可进一步研究这类算法的并行计算问题以及基于这类算法的多柔体动力学与控制问题,特别是在轨大型柔性空间结构的组装过程动力学与控制问题.
参考文献
García de Jalón J. Twenty-five years of natural coordinates. Multibody System Dynamics, 2007, 18(1):15~33
Shah S V, Saha S K, Dutt J K. Denavit-Hartenberg parameterization of Euler angles. Journal of Computational & Nonlinear Dynamics, 2012, 7(2):021006
Sherif K, Nachbagauer K, Steiner W, et al. A modified HHT method for the numerical simulation of rigid body rotations with Euler parameters. Multibody System Dynamics, 2019, 46, 181~202
Arnold M, Brüls O, Cardona A. Error analysis of generalized-α Lie group time integration methods for constrained mechanical systems. Numerische Mathematik, 2015, 129(1): 149~179
徐小明,钟万勰. 四元数与欧拉角刚体动力学数值积分算法及其比较. 计算机辅助工程, 2014, 23(1): 59~63
Xu Xiaoming, Zhong Wanxie. Numerical integration algorithms and comparison for rigid dynamics in terms of quaternion and Euler angle. Computer Aided Engineering, 2014, 23(1): 59~63(in Chinese)
Bhat S P, Bernstein D S. A topological obstruction to continuous global stabilization of rotational motion and the unwinding phenomenon. Systems and Control Letters, 2000, 39(1):63~70
Munthe-Kaas H. Runge-Kutta methods on Lie groups. Bit Numerical Mathematics, 1998, 38(1): 92~111
Munthe-Kaas H, Stern A, Verdier O. Invariant connections, Lie algebra actions and foundations of numerical integration on manifolds. Society for Industrial and Applied Mathematics, 2020, 4(1):49~68
Wieloch V, Arnold M. BDF integrators for constrained mechanical systems on Lie groups. Journal of Computational and Applied Mathematics, 2019: 112517
Sonneville V. A geometric local frame approach for flexible multibody systems. [Ph. D Thesis]. Belgium: Université de Liège, 2015
Sonneville V, Brüls O. A formulation on the Special Euclidean Group for dynamic analysis of multibody systems. Journal of Computational and Applied Mathematics, 2014
Brüls O, Cardona A, Arnold M. Lie group generalized-α time integration of constrained flexible multibody systems. Mechanism and Machine Theory, 2012, 48(1):121~137
刘铖,胡海岩.基于李群局部标架的多柔体系统动力学建模与计算.力学学报,2021,53(1):213~233
Liu C, Hu H Y. Dynamic modeling and computation for flexible multibody systems based on the local frame of Lie group. Chinese Journal of Theoretical and Applied Mechanics, 2021,53(1):213~233(in Chinese)
李亚男,李博文,丁洁玉,等.多体系统动力学Lie群微分-代数方程约束稳定方法. 动力学与控制学报, 2018,16(2):97~101
Li Y N, Li B W, Ding J Y, et al. Constraints stabilization method for DAEs on Lie group of multibody system dynamic. Journal of Dynamics and Control. 2018, 16(2):97~101(in Chinese)
Marsden J E, West M. Discrete mechanics and variational integrators. Acta Numerica, 2001,10(1):357-514
李亚男.基于李群的多体系统动力学仿真[硕士学位论文].山东:青岛大学, 2019
Dynamic simulation of multibody system based on Lie group [Master Thesis]. Shandong: Qingdao University, 2019 (in Chinese)
黄彬. 变分积分子在非线性系统中的一些应用 [硕士学位论文]. 北京:北京理工大学, 2011
Huang B. Some applications of variational integrator to the nonlinear systems. [Master Thesis]. Beijing: Beijing Institute of Technology, 2011 (in Chinese)
杨盛庆. 基于几何力学与最优控制的无人机编队方法研究 [博士学位论文]. 北京:北京理工大学, 2014
Yang S Q. Geometric mechanics and optimal control of UAvs Formation [Ph. D Thesis]. Beijing: Beijing Institute of Technology, 2014 (in Chinese)
Lee T, Leok M, McClamroch N H. Lie group variational integrators for full body problem. Celestial Mechanics and Dynamical Astronomy, 2007, 196: 2907-2924
Lee T, Leok M, McClamroch N H. Lie group variational integrators for full body problem in orbital mechanics. Celestial Mechanics and Dynamical Astronomy, 2007,98(2):121~144
Hante S, Arnold M. RATTLie: A variational Lie group integration scheme for constrained mechanical systems. Journal of Computational and Applied Mathematics, 2019,387:112492
Shi D H, Zenkov D V, Bloch A M. Hamel's formalism for classical field theories. Journal of Nonlinear Science, 2020, 30(1):1307~1353
安志朋. Hamel场变分积分子及其应用[博士学位论文]. 北京:北京理工大学, 2020
An Zhipeng. The field-theoretic Hamel’s variational integrator and its applications. [Ph. D Thesis]. Beijing: Beijing Institute of Technology,2020 (in Chinese)
王亮. 几何精确梁的Hamel场变分积分子. [硕士论文]. 北京:北京理工大学, 2016
Wang L. Hamel’s field variational integrator of geometrically exact beam [Master Thesis]. Beijing: Beijing Institute of Technology, 2016 (in Chinese)
Hall J, Leok M. Lie group spectral variational integrators. Foundations of Computational Mathematics, 2017, 17(1): 199-257
白龙, 董志峰, 戈新生. 基于Lie群的刚体动力学建模及数值计算方法研究. 应用数学和力学, 2015, 36(8):833-843
Bai L, Dong Z F, Ge X S. Lie group and Lie algebra modeling for numerical calculation of rigid body dynamics. Applied Mathematics and Mechanics, 2015, 36(8):833~843
Lee J, Liu C K, Park F C, et al. A linear-time variational integrator for multibody systems. In: Goldberg K, Abbeel P, Bekris K eds. Algorithmic Foundations of Robotics XII, Proceedings of the Twelfth Workshop on the Algorithmic Foundations of Robotics, WAFR2016, San Francisco, 2016-12-18-20(Springer, 2020,352~367)
Lee T. Computational geometric mechanics and control of rigid bodies. [Ph.D Thesis]. Michigan: University of Michigan, 2008