Gravity & J2
Earth's constants come from EGM2008
([1]) and are module constants of
physics/gravity.py:
| Constant | Value |
|---|---|
MU_EARTH, \(\mu\) |
\(3.986004415 \times 10^{14}\ \mathrm{m^3/s^2}\) |
RE_EARTH, \(R_\oplus\) |
\(6\,378\,136.3\ \mathrm{m}\) |
J2_EARTH, \(J_2\) |
\(1.08262617385222 \times 10^{-3}\) |
Earth is the only central body (physics models).
Point-mass gravity
With gravity=True (the default) the force is \(m\,\mathbf{a}_g\), with \(m\)
the current total mass and
(zero at \(r = 0\)).
J2 oblateness perturbation
Earth's equatorial bulge is the second zonal harmonic. With
j2_perturbation=True (the default whenever gravity is on) the perturbing
acceleration added to \(\mathbf{a}_g\) is, in inertial coordinates with \(z\)
along Earth's rotation axis ([2],
[3]),
Its dominant secular effects are the regression of the node and the rotation of the line of apsides ([2]),
with \(n = \sqrt{\mu/a^3}\) and \(p = a(1-e^2)\) (checked). The J2 example shows the short-period effects.
Gravity-gradient torque
A body with non-spherical inertia in the central field feels, in the body frame ([5], [3]),
It drives the minimum-inertia axis towards the local vertical. Enabled by
gravity_gradient=True, independently of gravity.
Implementation:
physics/gravity.py
(gravity_accel, gravity_accel_j2, gravity_force,
gravity_gradient_torque)
References: [1], [2], [3], [5] — see the full bibliography.