Question:
What is the optimal initial orbital velocity for a Hoffman transfer from earth's orbit to a mars intercept?
Getting from earth to mars is difficult, and doing it efficiently is essential for a mars mission. One of the most efficient method is the Hoffman transfer. The Hoffman transfer, starts from Low Earth Orbit (LEO) and does a single burn with enough velocity to exit Earth’s sphere of influence (a sphere of influence is the location were an object, usually a planet, has the most gravitational influence on another object). The spacecraft then exits the earth sphere of influence with enough velocity so that the apogee of the new elliptical orbit around the sun is equal to that of the orbit of mars (Fig 1). The launch is timed so that the spacecraft reaches that location at the same time as mars for the intercept. The rocket is then in a position to burn retrograde and land on Mars. The goal of this project is to find the initial position and velocity required for an intercept with mars so that we can efficiently get copepods to mars.
Fig 1: Diagram of the Hoffman transfer showing the locations of each planet at launch and intercept
Fig 2: Diagram showing the initial orbit relative to earth
Model:
The following code sets up the orbital system, with earth and mars each orbiting the sun. It does this by taking the distance from the origin (the sun) of each planet and uses that to calculate the force on each planet using the equation Fg=Gm1m2/r^2, it then gives each object an initial position and velocity based on the true values. This gives a good approximation of the orbits of each planet. The spacecraft uses the same design, though it is influenced by every object. It starts out at LEO, then the code will sweep through initial velocities to get an intercept with mars.
Assumptions:
Orbit of the earth relative to mars is on a single plane
The change in velocity due to the first burn is instantaneous
The gravity of the Moon does not influence the rocket
The gravity of Phobos and Deimos the moons of mars do not influence the rocket
The mass of the rocket is constant
Newtonian physics
The launch occurs at an optimal time for the Hoffman transfer
Results:
The results are an animated model of the spacecraft, earth, and mars showing the spacecraft escaping earth gravity and going into an elliptical orbit that intercepts mars. It also shows a graph with the position relative to mars versus time for each iteration with the final iteration showing an intercept with mars. Video of the animation: https://youtu.be/fzFrMhm7uw0
Interpretation:
Our results reveal that a velocity of a rocket should be around 6.9 Km/s relative to earth to reach mars. Though not very precise it does seem to agree with the around 7 Km/s velocity that NASA proposes for the mission.