Communication
Language
Closed-loop Pendulum smaple code by 3D Multi-Body Dynamics
The Closed-loop Pendulum demo which is modeled by Quaternion based Multi-Body Dynamics.
The following dynamics for multi-bodies are solved 1.
where
is the geometrical constraint condition, and
is constraint condition for Euler parameter.
Baumgarte constraint stabilization method 2 is employed to above Differential-algebraic system of equations (DAE).
[Step 1] Install the ToolBoxes
The following ToolBoxes in “./ ToolBoxes/” are required,
- “mmwrite” by Micah Richert: https://jp.mathworks.com/matlabcentral/fileexchange/15881-mmwrite
[Step 1.2] Add path to installed ToolBoxes
Modify "add_pathes.m".
[Step 2] Start GUI form
Open the “GUI.fig” from MATLAB.
[Step 2.1] Pre-setting
Push the "Parameters" buttun and edit parameters.
[Step 3] Start analysis
Push the “exe” button and wait until the finish of the analysis.
[Step 4] Plot results
Push the “plot” button.
Time series of energy (conserved)
Error of constraint conditions
My.Movie.mp4
Chaotic behevior is generated because the masses of the left and right rigid bodies are different.