astro.SolarGravity#

class hohmannpy.astro.SolarGravity(legendre=True, legendre_series_length=10)#

Perturbation caused by the Sun’s gravity.

This class implements a specialized version of ThirdBodyGravity adjusted to specifically account for the third body perturbations due to the Sun. The true anomaly of the Earth wrt. to the ecliptic plane is computed automatically based on the dates of desired propagation.

Parameters:
  • legendre (bool) – Whether to use a Legendre polynomial expansion in the computation of the Earth’s perturbing effects. Used to avoid small difference numerical accuracy losses from the difference between the two position cubics due to their potential similarities.

  • legendre_series_length (int) – If a Legendre polynomial expansion is used, how many terms to include.

Notes

The following assumptions are made for this implementation:

  1. The Earth’s orbit is Keplerian.

  1. The 1-2 plane of the Earth-centered-inertial (ECI) basis is also assumed to be inclined at constant 23.5 \(deg\) from the ecliptic plane.

See also

ThirdBodyGravity

Base version of this class which can be used for any third body.