Skip to main content

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

Installation Instructions

Read below for detailed instructions on how to install my program.

Windows 10

  • Python prerequisites:
    1. Download and install Python 3.9.
  • Git and repository prerequisites:
    1. Download and install Git SCM
    2. Run the following commands from git bash:
      1. mkdir Two\ Body\ Problem && cd "$_"
      2. git clone https://github.com/flopsi-l-f/two-body-problem_simulation.git
    3. Run the following command from the command line:
      1. cd C:\Users\[Your Username]\Two Body Problem\two-body-problem_simulation
      2. pip 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
    1. sudo apt-get install python3
    2. sudo apt-get install git
    3. sudo apt-get install libopengl0
    4. mkdir Two\ Body\ Problem && cd "$_"
    5. git clone https://github.com/flopsi-l-f/two-body-problem_simulation.git
    6. cd two-body-problem_simulation
    7. pip3 install .

Now, the code is available and runnable with python3 -m twobodyproblem

Participation in this README is always welcome!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

twobodyproblem-1.0.0.tar.gz (215.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

twobodyproblem-1.0.0-py3-none-any.whl (217.5 kB view details)

Uploaded Python 3

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

Hashes for twobodyproblem-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d593ce63e86fb70d4905ac2175b9d64b181fbf41a6306aaa92f7b1f6e8ae7ffb
MD5 ed7f9e82e04e9930662cd672a62ed6ed
BLAKE2b-256 45a39edbbde8ee2740b64052ddca0041f845eb4d3ed987c9c35e5420ea1465fd

See more details on using hashes here.

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

Hashes for twobodyproblem-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 69cdee99ad084523904930f4af6be2c68fb3d14ea030e8b48e83e39db76857ce
MD5 02d1249a4da63150471e1694a2390db1
BLAKE2b-256 f03169cb95b0402fb08558082a528ee40353660cc9b44bbc2cea3c7bcb0f0be3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page