Thanks to visit codestin.com
Credit goes to github.com

Skip to content

RacoonK1ng/Orbit_Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Simple Orbit Sim

This is a basic Python tool that lets you pick a object (like the ISS or a GPS satellite) and see how it orbits the Earth based on real physics.


What you need

You need these two libraries installed:

  • matplotlib (for the graph)
  • PySimpleGUI (for the menu)

You can install them by typing this in your terminal: pip install matplotlib PySimpleGUI


How to use it

  1. Run the script.
  2. Pick a satellite: Select one of the presets (Geostationary orbit, ISS, GPS Satellite or Starlink Satellite) or choose Custom to enter your starting altitude and velocity.
  3. Click "Select": The math runs in the background.
  4. See the orbit: A window will pop up showing the Earth (blue circle) and the path your object took.

Technical Details

The simulation operates on the following principles:

  • Gravitational Force: Calculated at every time step ($dt$) (default value for dt is 0.005) using: $$F = \frac{G \cdot m_1 \cdot m_2}{r^2}$$
  • Integration: The script updates velocity and position iteratively to account for the changing direction of gravitational pull.
  • Termination: The simulation ends if the satellite completes one full orbit, crashes into Earth, or reaches the maximum simulation time.

About

A python programm that simulate the orbit of a object around the earth. Requirements are matplotlib and PySimpleGUI need to be installed.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages