You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Double Pendulum Simulation with 3D Stereographic Projection
Author
Ewan Bataille
Description
This project simulates the motion of a double pendulum using stereographic projection to represent the configuration on a plane. The simulation uses Hamiltonian mechanics to model the dynamics and numerically integrates the equations of motion to visualize the chaotic behavior of the system.
I must thank Kristian Egeris (zymplectic.com) for his work on the double pendulum and on the conversion of the Hamiltonian into stereographic coordinates.
📚 Sections Overview
1. Stereographic Projection
We project the unit sphere (radius = 1, centered at ( O = (0,0,0) )) onto the plane ( P: z = -1 ) from the north pole ( N = (0,0,1) ).
Any point $M = (\xi, \eta, \zeta)$ on the sphere satisfies: $\xi^2 + \eta^2 + \zeta^2 = 1 \tag{1.1}$
The stereographic projection from $N$ onto the plane gives coordinates: $x = \frac{2\xi}{1 - \zeta}, \quad y = \frac{2\eta}{1 - \zeta} \tag{1.2}$
This system can be solved numerically to obtain the 3D trajectory of the pendulum.
3. Double Pendulum with Hamiltonian Mechanics
We consider two pendulums with respective lengths $( l_1, l_2 )$ and masses $( m_1, m_2 )$. The first pendulum is anchored at the origin, and the second is attached to the end of the first.