Skip to content

Calculation and visualization of average maximum lyapunov exponent for a double pendulum system

Notifications You must be signed in to change notification settings

shinben0327/Double-Pendulum-Lyapunov

Repository files navigation

Double Pendulum Lyapunov

Calculation and visualization of average maximum Lyapunov exponent for a double pendulum system

About The Project

This project was made for the Extended Essay "Effect of pendulum mass on the chaos motion of a double system", which can be read here.
The program calculates and visualizes the average maximum Lyapunov exponent for a double pendulum system with varying initial masses of 0.5-30.0kg for the primary and secondary pendulums.
Running the program will create a heatmap for all combinations of masses. To download the results as a csv file, use final_result.to_csv('dp_result.csv') after the data frame has been made.

Original code from the source below has been used in Lines 27-64
These lines of code implement the equations of motion of the double pendulum.
'The double pendulum problem' by matplotlib.org
https://matplotlib.org/stable/gallery/animation/double_pendulum.html
Accessed 3 Aug 2021

Heatmap Example

The result for the heatmap is shown below.
Changing the parameters in dp-lyapunov.py will give new results. alt text

About

Calculation and visualization of average maximum lyapunov exponent for a double pendulum system

Topics

Resources

Stars

Watchers

Forks

Languages