0 purchases
twobodyproblem 2.0.0
Two Body Problem
a small simulation
Welcome!
I wrote a small program in Python to simulate the two body problem.
You type in some parameters, like mass, radius, velocity and distance.
The program will show you a visualization of the simulation.
This program is command line only. If you want a graphical user interface,
visit this GitHub page.
Table of Contents
Installation Instructions
via PyPi
via GitHub
Usage
Installation Instructions
(You may need Microsoft Visual C++ to be able to run the program,
so install it from here if needed.)
via PyPi
The Python package manager pip will install the last uploaded version
from the Python Package Index PyPi.
This will not always be the latest version, so if you want to install all the latest features,
install it from GitHub (see below).
Make sure Python and pip are installed correctly.
Run these commands from a command line:
pip3 install --upgrade pip setuptools wheel
pip3 install --upgrade twobodyproblem
Now, the program is runnable with python -m twobodyproblem or python3 -m twobodyproblem.
via GitHub
Make sure Python and pip are installed correctly.
Make sure Git SCM is installed correctly.
Run these commands from a command line:
mkdir TwoBody and cd TwoBody
git clone https://github.com/Two-Body-Problem/twobodyproblem-simulation-python.git
pip3 install --upgrade pip setuptools wheel
pip3 install twobodyproblem-simulation-python
Now, the program is runnable with python -m twobodyproblem or python3 -m twobodyproblem.
Usage
To learn more about how to run the program with different options,
run python -m twbodyproblem -h or python3 -m twbodyproblem -h respectively.
Run the program with python -m twobodyproblem or python3 -m twobodyproblem.
First, you will have to input options and values.
The options define the particular behavior of the simulation,
the values define the dimensions (i.e. mass, radius, distance, velocity) of the bodies.
The simulation will start automatically after the last input.
During the simulation, you are able to pause, un-pause and stop the simulation
with the accordingly named buttons below the black rectangle.
The restart button restarts the whole program, not just the simulation.
The sliders below the buttons can be used to magnify the bodies in the simulation.
This magnification does not affect the physics, it is only a visual help.
Participation in this README is always welcome!
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.