A collection of interactive Python simulations for visualizing fundamental orbital mechanics concepts, including two-body dynamics, Hohmann transfers, and bielliptic maneuvers.
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.
An interactive simulation of gravitational dynamics between two celestial bodies orbiting their common barycenter. Also follows all three of Kepler's laws
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
A detailed simulation of the classic Hohmann transfer orbit - the most fuel-efficient way to transfer between two circular orbits.
Mission Phases:
- Initial Burn: Spacecraft accelerates from inner circular orbit
- Transfer Coast: Coasting along elliptical transfer orbit
- Circularization Burn: Final burn to achieve outer circular orbit
An advanced simulation of the bielliptic transfer maneuver, which can be more fuel-efficient than Hohmann transfers for large orbit changes.
numpy
scipy
matplotlib- Clone this repository:
git clone https://github.com/AakaashfromIndia/OrbitalMechanics.git
cd orbital-mechanics-simulations- Install required dependencies:
pip install numpy scipy matplotlib- Run any simulation:
python Two-body-system.py
python Hohmann-Transfer.py
python Bielliptic-Maneuver.py

