/orbitlib

A library that calculates info about orbits and fetches them for use.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Orbilib

Versatile and utilizable python library made in early 2022 by Gaurav Bansal. It can simulate orbits and orbital mechanics, as you can pass in values of time in seconds to determine the orbital position and angle of the orbiting body.

Currently, Orbilib is in progress and will only work with circular orbits.

The library calculates most of the confusing and complex values for you so you can easily retrieve them. You can create your own orbital systems by creating custom barycenters and custom satellites with their own masses. Orbilib can print the statistics and data of the orbital system when given a certain time value in seconds. For example, the angle of the orbiting body, or the satellite, will be given in radians and degrees.

The simulation only provides numerical data through console, and returns information for use in other projects but soon will account for visuals.

Notes: All distances should be in meters, all masses should be in kilograms, and all time units should be in seconds.

It is also tested and true; upon putting in the information about the Earth-Sun orbital system (which is so close to being circular that its orbit can be considered circular) all info given back was accurate (radian values deviated by 0.009.)

Copyright © 2022 Gaurav-Ban22