{"id":45919451,"url":"https://github.com/fflopsi/twobodyproblem","last_synced_at":"2026-02-28T08:32:02.909Z","repository":{"id":62585775,"uuid":"274947581","full_name":"fflopsi/twobodyproblem","owner":"fflopsi","description":"A simulation of the two-body problem with VPython","archived":false,"fork":false,"pushed_at":"2023-04-13T13:09:02.000Z","size":430,"stargazers_count":2,"open_issues_count":12,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-04T21:12:32.305Z","etag":null,"topics":["physics-simulation","python","python3","simulation","vpython"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fflopsi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-06-25T15:11:51.000Z","updated_at":"2023-06-01T14:29:27.000Z","dependencies_parsed_at":"2023-07-16T03:46:35.313Z","dependency_job_id":null,"html_url":"https://github.com/fflopsi/twobodyproblem","commit_stats":null,"previous_names":["two-body-problem/twobodyproblem-simulation-python"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/fflopsi/twobodyproblem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fflopsi%2Ftwobodyproblem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fflopsi%2Ftwobodyproblem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fflopsi%2Ftwobodyproblem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fflopsi%2Ftwobodyproblem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fflopsi","download_url":"https://codeload.github.com/fflopsi/twobodyproblem/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fflopsi%2Ftwobodyproblem/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29928642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"online","status_checked_at":"2026-02-28T02:00:07.010Z","response_time":90,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["physics-simulation","python","python3","simulation","vpython"],"created_at":"2026-02-28T08:31:57.337Z","updated_at":"2026-02-28T08:32:02.904Z","avatar_url":"https://github.com/fflopsi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Two Body Problem\n\n### a small simulation\n\n**Welcome!**\n\nI wrote a small program in Python to simulate the two body problem. You type in\nsome parameters, like mass, radius, velocity and distance. The program will\nshow you a visualization of the simulation.\n\n*This program is command line only. If you want a graphical user interface for\ninputting your data,\nvisit [this repository](https://github.com/fflopsi/twobodyproblem-gui)\ncontaining a GUI program.*\n\n## Installation\n\n*(You may need Microsoft Visual C++ to be able to run the program, so install\nit from [here](https://visualstudio.microsoft.com/visual-cpp-build-tools) if\nneeded.)*\n\n### Via PyPi\n\n*The Python package manager pip will install the last uploaded version from the\nPython Package Index [PyPi](https://pypi.org/project/twobodyproblem). This will\nnot always be the latest version, so if you want to install all the latest\nfeatures, install it from GitHub (see [below](#via-github)).*\n\n1. Make sure [Python](https://www.python.org/downloads) and pip are installed\n   correctly.\n1. Run these commands from a command line:\n    1. `pip install --upgrade pip setuptools wheel`\n    1. `pip install --upgrade twobodyproblem`\n1. Now, the program is usable with `python -m twobodyproblem`.\n\n### Via GitHub\n\n1. Make sure [Python](https://www.python.org/downloads) and pip are installed\n   correctly.\n1. Make sure [Git SCM](https://git-scm.com/downloads) is installed correctly.\n1. Run these commands from a command line:\n    1. `mkdir TwoBody` and `cd TwoBody`\n    1. `git clone https://github.com/fflopsi/twobodyproblem.git`\n    1. `pip install --upgrade pip setuptools wheel`\n    1. `pip install ./twobodyproblem/`\n1. Now, the program is usable with `python -m twobodyproblem`.\n\n## Usage\n\n*To learn more about how to run the program with different options,\nrun `python -m twbodyproblem -h`.*\n\nRun the program with `python -m twobodyproblem` on a command line.\n\nFirst, you will have to input *options* and *values*. The options define the\nparticular behavior of the simulation, the values define the dimensions (i.e.\nmass, radius, distance, velocity) of the bodies. You can either load them from\na prepared [YAML](https://yaml.org) file (*.yml) or type them in directly.\nAfter having them typed in, you can choose to save them in a file for later\nuse. When saving to an existing file, the previous contents of the file will\nbe **overwritten**. When working with these files, you need to have the exact\npaths to the files at hand. Otherwise, the default files for saving/loading\nwill be used.\n\nThe simulation window will open automatically after the last input.\n\nDuring the simulation, you are able to pause, un-pause and stop the simulation\nwith the accordingly named buttons below the black rectangle. The restart\nbutton restarts the *whole* program, not just the simulation.\n\nThe sliders below the buttons can be used to magnify the bodies in the\nsimulation. This magnification does not affect the physics, it is only a visual\nhelp.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffflopsi%2Ftwobodyproblem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffflopsi%2Ftwobodyproblem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffflopsi%2Ftwobodyproblem/lists"}