This is a little simulation for the gravitational two body problem.
Project description
Two Body Problem
a small simulation
Welcome!
I wrote a small program to simulate the two body problem. You can either choose from presets (like Sun, Earth, Moon etc.) or type in your own masses and volumes. The program will show you a visualization of the simulation.
Table of Contents
Installation Instructions
Read below for detailed instructions on how to install my program.
Windows 10
- Python prerequisites:
- Git and repository prerequisites:
- Download and install Git SCM
- Run the following commands from git bash:
mkdir Two\ Body\ Problem && cd "$_"git clone https://github.com/flopsi-l-f/two-body-problem_simulation.git
- Run the following command from the command line:
cd C:\Users\[Your Username]\Two Body Problem\two-body-problem_simulationpip install .
Now, the code is available and runnable with python -m twobodyproblem
(You may need Microsoft Visual C++ to run vpython, so install it from here if needed.)
Ubuntu, Debian and other Linux distros
- Run the following commands in bash:
- Not necessary, but recommended:
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install python3sudo apt-get install gitsudo apt-get install libopengl0mkdir Two\ Body\ Problem && cd "$_"git clone https://github.com/flopsi-l-f/two-body-problem_simulation.gitcd two-body-problem_simulationpip3 install .
- Not necessary, but recommended:
Now, the code is available and runnable with python3 -m twobodyproblem
Participation in this README is always welcome!
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file twobodyproblem-1.0.0.tar.gz.
File metadata
- Download URL: twobodyproblem-1.0.0.tar.gz
- Upload date:
- Size: 215.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d593ce63e86fb70d4905ac2175b9d64b181fbf41a6306aaa92f7b1f6e8ae7ffb
|
|
| MD5 |
ed7f9e82e04e9930662cd672a62ed6ed
|
|
| BLAKE2b-256 |
45a39edbbde8ee2740b64052ddca0041f845eb4d3ed987c9c35e5420ea1465fd
|
File details
Details for the file twobodyproblem-1.0.0-py3-none-any.whl.
File metadata
- Download URL: twobodyproblem-1.0.0-py3-none-any.whl
- Upload date:
- Size: 217.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69cdee99ad084523904930f4af6be2c68fb3d14ea030e8b48e83e39db76857ce
|
|
| MD5 |
02d1249a4da63150471e1694a2390db1
|
|
| BLAKE2b-256 |
f03169cb95b0402fb08558082a528ee40353660cc9b44bbc2cea3c7bcb0f0be3
|