Skip to content

Python simulations of orbital mechanics: models include a two-body gravitational system, Hohmann transfer, and bi-elliptic transfer. Visualizes orbital trajectories and energy changes involved in classical orbital maneuvers between circular orbits.

Notifications You must be signed in to change notification settings

AakaashfromIndia/OrbitalMechanics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Orbital Mechanics Simulation Suite

A collection of interactive Python simulations for visualizing fundamental orbital mechanics concepts, including two-body dynamics, Hohmann transfers, and bielliptic maneuvers.

Kepler's law

Overview

This repository contains three comprehensive orbital mechanics simulations built with Python, NumPy, SciPy, and Matplotlib. Each simulation provides real-time visualization of spacecraft trajectories, orbital parameters, and mission events with interactive controls for exploring different scenarios.

Simulations

1. Two Body System (Two body system.py)

An interactive simulation of gravitational dynamics between two celestial bodies orbiting their common barycenter. Also follows all three of Kepler's laws

Kepler's law

Controls:

  • Mass 1 and 2: Adjust the masses of the two bodies
  • Semi-major Axis: Control the size of the orbit
  • Eccentricity: Modify orbital shape (0 = circular, between 0 and 1 = elongated)
  • Animation Speed: Control simulation playback speed

2. Hohmann Transfer (Hohmann Transfer.py)

A detailed simulation of the classic Hohmann transfer orbit - the most fuel-efficient way to transfer between two circular orbits.

Hohmann transfer- Made with Clipchamp

Mission Phases:

  1. Initial Burn: Spacecraft accelerates from inner circular orbit
  2. Transfer Coast: Coasting along elliptical transfer orbit
  3. Circularization Burn: Final burn to achieve outer circular orbit

3. Bielliptic Transfer (Bielliptic-Maneuver.py)

An advanced simulation of the bielliptic transfer maneuver, which can be more fuel-efficient than Hohmann transfers for large orbit changes.

Bielliptic maneuver - Made with Clipchamp

Libaries needed

numpy
scipy
matplotlib

Installation

  1. Clone this repository:
git clone https://github.com/AakaashfromIndia/OrbitalMechanics.git
cd orbital-mechanics-simulations
  1. Install required dependencies:
pip install numpy scipy matplotlib
  1. Run any simulation:
python Two-body-system.py
python Hohmann-Transfer.py
python Bielliptic-Maneuver.py

About

Python simulations of orbital mechanics: models include a two-body gravitational system, Hohmann transfer, and bi-elliptic transfer. Visualizes orbital trajectories and energy changes involved in classical orbital maneuvers between circular orbits.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages