Documentation / @interstellar-tools/equations / synodicPeriod
Function: synodicPeriod()
ts
function synodicPeriod(n1: number, n2: number): number;Defined in: orbits/synodic-period.ts:58
Compute the synodic period of two bodies on circular orbits: the time between two alignments.
Where:
, are the two mean motions (rad/s)
Units
- Inputs:
n1,n2in rad/s. - Output:
in s.
Notes
- The faster body gains
on the slower one every synodic period. - The closer the two orbits, the longer it takes: a chaser that's slightly lower gains only a little each orbit.
- For planets, the same formula gives the time between launch windows, e.g. about 26 months for Earth and Mars.
In practiceApollo 11, after lunar liftoff
41.8 h
The LM in its 9.4 × 48.0 n mi orbit against the CSM in 56 × 62 n mi
The LM gained only about 16° on the CSM each orbit, so it had to lift off at the right moment: the whole rendezvous took 3 h 41 min.
ts
const nLM = meanMotion(1_790_552, 4.902800118e12);
const nCSM = meanMotion(1_846_668, 4.902800118e12);
synodicPeriod(nLM, nCSM) / 3600; // ≈ 41.8 hParameters
| Parameter | Type | Description |
|---|---|---|
n1 | number | Mean motion of the first body in rad/s (finite, > 0). |
n2 | number | Mean motion of the second body in rad/s (finite, > 0, not equal to n1). |
Returns
number
Synodic period in s.
Throws
- If any input is not a finite number.
- If
n1 <= 0,n2 <= 0, orn1 = n2(the bodies never realign).
Example
ts
// Earth and Mars, from their periods in days
const day = 86_400;
const t = synodicPeriod(
(2 * Math.PI) / (365.256 * day),
(2 * Math.PI) / (686.98 * day)
);
// t / day ≈ 780 days