astro.Earth#

class hohmannpy.astro.Earth(initial_global_time, solver_tol=1e-08)#

Special “spacecraft” which represents the Earth. Alternatively, can represent the Sun orbiting the Earth if you invert the position vector.

Used by SolarGravity for simulating solar gravity third-body perturbing effects.

Parameters:
  • initial_global_time (Time) – Gregorian date and UT1 time at which simulation begins. This is used to locate the Earth via compute_initial_true_anomaly().

  • solver_tol (float) – Error tolerance when performing root-finding to solver Kepler’s equation in compute_initial_true_anomaly().