Double-Pendulum-Motion-Animation
Animation of the motion a double-pendulum using Julia.
The code saves the animation as a gif file. It can also playback the video in Jupyter notebook environment. The animation is recorded at equal time steps to preserve relative velocity of the pendulums in the video.
References
- http://sophia.dtp.fmph.uniba.sk/~kovacik/doublePendulum.pdf
- http://www.phys.lsu.edu/faculty/gonzalez/Teaching/Phys7221/DoublePendulum.pdf
Package requirements
- Plots
- Differential Equations
- Direckx
Use
The mass and length of the pendulums, gravitational acceleration constant, the initial conditions and the simulaiton duration are defined at the beginning of the code. Different cases can be simulated by changing these parameters.
Sample output
Double pendulum system with m1 = m2 = 1kg, L1 = L2 = 1m. Initial conditions θ1 = 5π/8, θ2 = 5π/9, ω1 = 0, ω2 = 0. Here, θ1 and θ2 are the initial angular positions, and, ω1 and ω2 are initial angular velocities in SI units.