Departure_Dates = vector of departure dates // In days, must be plottable
Arrival_Dates = vector of arrival dates // In days, must be plottable
Loop Departure_Dates
Loop Arrival_Dates
[R_Earth, V_Earth] = Earth_RV(JD_Depart)
[R_Mars, V_Mars] = Mars_RV(JD_Arrive)
[V_initial, V_final] = Lambert(R_Earth, R_Mars, dt)
Find mission design parameters and stick them into their appropriate arrays
End Loop
End Loop
Plot contours in a figure with C3, TOF and V_{\infty}
Pseudocode: