DeformableBodies.jl is a Julia package dedicated to the study and solution of a special class of problems from classical mechanics: deformable bodies.
The data needed for solving a deformable body problem consists of the body trajectory with respect to an arbitrary reference frame. Given this, we can reconstruct the body's trajectory from the point of view of an inertial frame as a sequence of rotations from one frame to the other. In order to avoid gimbal lock, all the rotations in this package are represented using unit quaternions.
The figure below represents the movement that a falling cat[disclaimer] does when righting itself midair both from the perspective of a frame rotating together with the cat and from an inertial frame.
This package can be installed using the Julia Package Manager. Simply open the REPL and run
import Pkg Pkg.add("https://github.com/iagoleal/DeformableBodies.jl.git")
- Cabrera, Alejandro. “A Generalized Montgomery Phase Formula for Rotating Self-Deforming Bodies.” Journal of Geometry and Physics 57.5 (2007): 1405–1420. Crossref. Web.
- disclaimerNo real cats were harmed during the development of this program.