Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.44 KB

README.md

File metadata and controls

48 lines (31 loc) · 1.44 KB

Functional tests Static code analysis

Description

A double pendulum simulator (written in Python 3) which uses the Runge-Kutta (RK) method to solve the set of differential equations from either the Lagrangian formulation or from the Hamiltonian formulation for the double pendulum problem.

License

All code from this project is licensed under the GPLv3. See the LICENSE file for more information.

Required modules

The following modules are used:

  • numpy
  • pygame

You can install them with the following command:

pip3 install pygame numpy

Usage instructions

Run ./double-pendulum -h to get a list of simulation parameters which can be set.

Notes on stability

If your simulation becomes unstable, try doing one or more of the following:

  • reduce the time step
  • reduce the initial angular velocities
  • reduce the gravitational acceleration

Contributors & contact information

Diego Assencio / diego@assencio.com