Skip to content

julienpoeschl/Double-Pendulum-Simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Double Pendulums

Double pendulums consist of two parts, each having a center of mass and a connection to another piece or the origin.

Double Pendulum Diagram

Usage

The program allows three operating modes.

Single double pendulum simulation

./Pendulum-Simulation.exe 0 theta1, theta2, omega1, omega2 starts a simulation of a single double pendulum, with the provided theta as starting angles (will be parsed to radians) and omega as 2-dimensional starting velocity.

Single Double Pendulum Mode

Angle simulation of a single double pendulum

./Pendulum-Simulation.exe 1 theta1, theta2, omega1, omega2 starts a visualization of the angles of a simulated double pendulum.

Lissajous Figure

Lissajous Figure: t1 = 0.2, t2 = 0.1

Non-Chaotic Double Pendulum Angles

Non-Chaotic Double Pendulum: t1 = 0.8, t2 = 1.2

Chaotic Double Pendulum Angles

Chaotic Double Pendulum: t1 = 2.0, t2 = 0.0

Simulation of the double pendulum fractal

./Pendulum-Simulation.exe 2 fractal-mode starts a simulation of the angular change of multiple (240x240) double pendulums, visualized by color. The fractal mode dictates how angles outside of the allowed radiant range are handled (wrap or clamp).

Double Pendulum Fractal Mode

Inspiration

Youtube video Double Pendulums are Chaoticn't by 2swap.

About

A double pendulum simulation written in C++ and visualized with SFML.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published