Long-time simulation for a rigid body
These function implement Lie integrators to perform long time simulation of a rigid body in a static spring-magnetic potential field. This numerical test of symplecticity is detailed in:
Bou-Rabee, N., Ortolan, G., and Saccon, A. [2010].
A counterexample showing the semi-explicit Lie-Newmark algorithm is not variational. (preprint).
Results show the following:
(i) VLV algorithm exhibits no energy drift;
(ii) Lie-Newmark algorithm exhibits energy drift; and,
(iii) `explicit' Lie-Midpoint algorithm exhibits energy drift.
File details:
- basicrunem.m: launches the Lie methods;
- NMB.m: semi-explicit Lie-Newmark algorithm;
- LIEMIDEA.m: explicit Lie-Midpoint algorithm;
- VLV.m: Lie-Verlet algorithm;
- wedge.m: hat map.
Cite As
Giulia Ortolan (2024). Long-time simulation for a rigid body (https://www.mathworks.com/matlabcentral/fileexchange/27792-long-time-simulation-for-a-rigid-body), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.