Skip to content

dassencio/double-pendulum

Repository files navigation

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

About

A double pendulum simulator.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published