Metadata-Version: 2.4
Name: orbitz
Version: 1.0.0
Summary: A solar system simulation..
Author: Davide Rizzo
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: matplotlib
Requires-Dist: numpy
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# 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. 

![Orbits Image](orbits.png)

## 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
1. Extract files containing the project
2. "cd" into the project directory containing this file.
3. To install the orbits module, run: `pip install .`. Use `pip install -e .` for an editable install.
4. To uninstall, run: `pip uninstall orbitz`.

## Usage
1. Open a terminal in the folder where you want to save simulation results.
2. Type `python -m orbits` into the command line to run the orbits package.
3. Alternatively, run the `run.py` file by typing `python run.py`.
4. This will load the command line interface to edit the configurations of the simulation.
5. Type "help" to get a list of commands, or type "run" to run the simulation with default values.
6. 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\
