A small double pendulum simulator
Project description
Double Pendulum Using Curses in Python.
A nice relaxing double pendulum simulation using ASCII, able to simulate multiple pendulums at once, and provide tracing of pendulums.
Table of Contents
Features
- As mentioned, able to simulate multiple pendulums at once.
- Able to specify the weight and mass of pendulums to create different butterfly effects.
- Uses equations from here.
-s
allows it to grab system specs and display them (hi r/unixporn)-t
allows for pretty trails :D- Obviously a lot could be done to it (see below the Args), Any contributions are appreciated)
Demo:
Quickstart:
Dependencies: Python 3.2+,curses (standard on UNIX), psutils if you want to use -s
Github
- Clone using
https://github.com/Nekurone/double-pendulum-ascii.git
or download the zip. - Extract if necessary and head inside the folder
double-pendulum
python3 pendulum.py [args]
Pip
python3 -m pip install double-pendulum-ascii
python3 -m double-pendulum [args]
Args
short | long | help | default |
---|---|---|---|
-h | --help | shows help message | N/A |
-t | --trace | enables the trace functionality | off |
-p | --pendulums | Number of pendulums | 1 |
-m | --mass | Starting mass of pendulums | 100.0 |
-l | --length | Starting length of the arms | 250.0 |
-s | --specs | Enables Specs Mode | off |
TODO
Note I will not be updating the words on this TODO, but rather just checking them off, as a nice front page reminder of the work done :)
- Add windows functionality
- Add more functionality to arguments (epsilon, weight1, weight2)
- General cleanup of variable names
- Improve efficiency (esp in lists)
- Add colors :)
If you have any suggestions, or anything you'd like to add, just open a PR :)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
double-pendulum-1.0.4.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for double_pendulum-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca9feeb4406f7df19a43ae6064c3845ea191a3c9e44fad0b3f52fb5f9332f39a |
|
MD5 | eb24b24ca3b64cb96ae9f4cc9e13fef4 |
|
BLAKE2b-256 | 3d331983f66db29c4058d055ee904e4745005143f7132e846fa09745eaba81cc |