Planet Orbit Simulator
Overview
This is a planetary orbits simulator designed to simulate the orbits of planets in our Solar system. The project is built in Python, using Numpy and MatplotLib for computations and rendering.
Features
- Simulate free-body problem with adaptive Celestial objects.
- Visualize planets on a 2D MatplotLib window in real time.
- Customize simulation parameters directly from custom JSON files.
- Store and analyse data from CSV files across different simulations.
Requirements
Requires Python 3.10 or greater. Uses MatplotLib and NumPy
Installation
- Extract files containing the project
- "cd" into the project directory containing this file.
- To install the orbits module, run:
pip install .. Usepip install -e .for an editable install. - To uninstall, run:
pip uninstall orbitz.
Usage
- Open a terminal in the folder where you want to save simulation results.
- Type
python -m orbitsinto the command line to run the orbits package. - Alternatively, run the
run.pyfile by typingpython run.py. - This will load the command line interface to edit the configurations of the simulation.
- Type "help" to get a list of commands, or type "run" to run the simulation with default values.
- Wait for the loading bar to reach 100%, then a window will appear, displaying the simulation.
Results are saved in the results folder in your current directory. Bundled scenarios are included with the package.
Project Structure
Orbits/
├── results/
│ ├── energy-data.csv
│ └── ...
├── src/
│ ├── orbits/
│ │ ├── data/
│ │ │ ├── solar_system.json - Simulation parameters
│ │ │ ├── test.json
│ │ │ └── ...
│ │ ├── __init__.py - Module file
│ │ ├── __main__.py - Main file that loads terminal prompt
│ │ ├── config.py - Paths/constants
│ │ ├── orbit.py - Simulation and MatplotLib window
│ │ ├── celestials.py - Contains Celestial class for planets
│ │ ├── energy_comparison.py - Handles plotting with gathered data
│ │ └── progress_bar.py - Provides a loading bar to show progress
│ └── tests/
│ └── test.py - Combined test file
├── .gitignore
├── conftest.py
├── setup.py
├── run.py
└── README.md\
Metadata
Release files for orbitz 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| orbitz-1.0.0.tar.gz | 20.0 kB | Without provenance | Details for orbitz-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| orbitz-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for orbitz-1.0.0-py3-none-any.whl |
Total release size: 43.1 kB
Release files / orbitz-1.0.0.tar.gz
| Download URL | orbitz-1.0.0.tar.gz |
|---|---|
| Size | 20.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60338b77e81c3b38b7e564bceb589981955742cc728703c8348e6516f01c767d
|
|
BLAKE2b-256 checksum How to use checksums |
e41996c0ce4c9cbe605b75939cc5351767036800e6555967c63e23ccb3124046
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Release files / orbitz-1.0.0-py3-none-any.whl
| Download URL | orbitz-1.0.0-py3-none-any.whl |
|---|---|
| Size | 23.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
30e73144074a7159dc31dd45eaea06e8e29826259fa6091a4d0e3eda08afafab
|
|
BLAKE2b-256 checksum How to use checksums |
84a863ad49f241e093c48be7450af5b1733924477d056bbee3ff838a00901f11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Security for orbitz 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.