Giter Site home page Giter Site logo

almayor / n-pendulum Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 44.11 MB

A simple visualiser of the double and triple pendulums

License: MIT License

Jupyter Notebook 90.78% Python 9.22%
double-pendulum double-pendulum-simulation lagrangian-mechanics pendulum-simulation physics physics-simulation

n-pendulum's Introduction

n-pendulum

This is a simple project studying the behaviour of simple chaotic systems using the Largrangian formulation. In particular, I implement a small plotter of a double and triple pendulum admitting a wide range of initial conditions using Matplotlib and SymPy.

Usage

See all options:

> ./n-pendulum.py -h 

See options for the double pendulum:

> ./n-pendulum.py 2 -h 

See options for the double pendulum:

> ./n-pendulum.py 3 -h 

Examples

Double Pendulum

./n-pendulum.py 2 -theta1 1.346 -theta2 2.356 -o examples/2-pend-ex-1.gif

./n-pendulum.py 2 -theta1 1.346 -theta2 2.356 -m1 2 -l1 2 -o examples/2-pend-ex-2.gif

Triple Pendulum

./n-pendulum.py 3 -theta1 2 -theta2 2.356 -m1 2 -l1 2 -l2 2 -l3 2 -o examples/3-pend-ex-1.gif

./n-pendulum.py 3 -theta1 2 -theta2 2 -theta3 2 -m3 2 -o examples/3-pend-ex-2.gif

Future work

  • I'd like to add realisations of other n-pendulums to the project, such as springed pendulums.

Acknowledgements

The following two websites have been very helpful.

n-pendulum's People

Contributors

almayor avatar dependabot[bot] avatar

Watchers

 avatar

Forkers

djamel67

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.