Calculations - Curious-Nikhil/Solar-System-Simulator GitHub Wiki

To Calculate Planeatary Positons

flowchart

Sources

Step 1 - Avg n

Step 2 - Mean Anomaly

Step 3 - True Anomaly

Credits www.jgiesen.de

Step 4 - Orbit Radius

Step 5 - Heliocentric Coordinates


Hohmann's Transfer Orbit

A Hohmann transfer orbit can take a spacecraft from Earth to Mars. The orbit is an elliptical one, where the periapsis is at Earth's distance from the Sun and the apoapsis is at Mars' distance from the Sun. The transfer orbit has to be timed so that when the spacecraft departs Earth, it will arrive at its orbit apoapsis when Mars is at the same position in its orbit. Earth and Mars align properly for a Hohmann transfer once every 26 months.

Sources

Step -

Step 5 - Calculate Position