Mechanics of Continua and Structures
The dydnamic Euler equation is J˙ω+ΩJω−T=0, where ω and J are the rigid body angular velocity vector and inertia tensor with respect to the center of mass, expressed in the reference frame attached to the body; T is the external torque related to the body center of mass, expressed in the same reference frame; and Ω=˙RRT is the angular velocity tensor, which is a skew symmetric tensor with an axial vector, i.e., the angular velocity vector ω.
We use the integration scheme presented by Terze et al. [1] to compute the instant rotation tensor R and angular velocity vector ω at time t with the initial conditions R(0)=R0 and ω(0)=ω0.
Suppose we know the rotation tensor R and angular velocity vector ω at nth time step, denoted as Rn and ωn. Then we can update the rotation tensor and velocity vector as follows:
Yn+12=exp(−h2Ωn)(Jωn+h2Tn)ωn+12=J−1Yn+12Rn+1=Rnexp(hΩn+12)Yn+1=exp(−h2Ωn+12)[exp(−h2Ωn+12)(Jωn+h2Tn)+h2exp(h2Ωn+12)Tn+1]ωn+1=J−1Yn+1 If the body in motion is free of external torque, then T=0. The Ωn is the skew symmetric tensor with its axial vector given by ωn. The exp(⋅) is the exponential map of a skew-symmetric tensor [2]. For example, given a skew symmetric tensor B with matrix representation [B]=[0−cbc0−a−ba0], we have exp(B)=I+sinααB+1−cosαα2B2, where α=√a2+b2+c2.
A Tossed Book in the air
Mathematica Code is available here
A Stumbling T-handle in Space
Anti-Gravity Wheel (Gyroscopic Precession)
References:
[1]. Zdravko Terze, Andreas Müller and Dario Zlatar, An Angular Momentum and Energy Conserving Lie-Group Integration Scheme for Rigid Body Rotational Dynamics Originating From Stormer–Verlet Algorithm, J. Comput. Nonlinear Dynam 10(5):051005, 2015.
[2]. Jean Gallier and Dianna Xu, Computing Exponentials of Skew Symmetric Matrices And Logarithms of Orthogonal Matrices, International Journal of Robotics and Automation, 17(4):1-11, 2002.