Skip to content

Documentation / @interstellar-tools/equations / thirdBodyAcceleration

Function: thirdBodyAcceleration() ​

ts
function thirdBodyAcceleration(
  r: Vector3DTupleType,
  rBody: Vector3DTupleType,
  muBody: number
): Vector3DTupleType;

Defined in: gravity/third-body-acceleration.ts:57

The tidal pull of a third body, such as the Moon or the Sun, on a satellite: how much more, or less, it pulls the satellite than the planet the satellite orbits. Only that difference changes the orbit, as both fall toward the third body together.

a=μb(s−r‖s−r‖3−ss3)

computed in Battin's form, which doesn't lose digits to the near-cancelling terms when the body is far away:

a=−μb‖s−r‖3(r+f(q)s),q=r⋅(r−2s)s2,f(q)=q3+3q+q21+(1+q)3/2

Where:

  • r is the satellite's position from the planet's centre (m)
  • s is the third body's position from the planet's centre (m)
  • μb is the third body's gravitational parameter (m³/s²)

Units

  • Inputs: positions in m, muBody in m³/s².
  • Output: the acceleration in m/s², on the axes of the positions.

Notes

  • The Moon's tidal pull on a satellite in low Earth orbit is at most about 1.2 × 10⁻⁶ m/s², and the Sun's under half that. In geostationary orbit they're 7 × 10⁻⁶ and 3 × 10⁻⁶ m/s², and tilt the orbit plane by about 0.8° a year.
  • Use positions on the same axes: sunPosition and moonPosition give them in Earth's mean equator and equinox of the date.

Parameters ​

ParameterTypeDescription
rVector3DTupleTypeThe satellite's position r in m, from the planet's centre (finite).
rBodyVector3DTupleTypeThe third body's position s in m, from the planet's centre (finite, not zero, not at r).
muBodynumberThe third body's gravitational parameter μb in m³/s² (finite, >= 0).

Returns ​

Vector3DTupleType

The acceleration in m/s².

Throws ​

  • If a position is not three finite numbers, or muBody is not finite.
  • If rBody is zero or at r, or muBody < 0.

Example ​

ts
// The Moon straight overhead of a satellite 400 km up
thirdBodyAcceleration([6_778_137, 0, 0], [3.844e8, 0, 0], 4.9028e12);
// ≈ [1.2e-6, 0, 0]: toward the Moon, a stretching tide

See ​