Documentation / @interstellar-tools/equations / j2NodalPrecessionRate
Function: j2NodalPrecessionRate()
ts
function j2NodalPrecessionRate(
J2: number,
n: number,
Re: number,
a: number,
i: Radians,
e: number
): number;Defined in: orbits/j2-nodal-precession-rate.ts:54
Compute J2 nodal precession (RAAN drift) for an orbit about an oblate body.
Equation (common approximation):
Where:
is the second zonal harmonic (dimensionless) is mean motion (rad/s) is the body's equatorial radius (m or km) is semi-major axis (m or km) is inclination (radians) is eccentricity (dimensionless)
Units:
- If
nis in rad/s andiis in radians, the result is in rad/s. Reandamust use the same distance unit.
Parameters
| Parameter | Type | Description |
|---|---|---|
J2 | number | Second zonal harmonic (finite). |
n | number | Mean motion (finite, >= 0), in rad/s. |
Re | number | Equatorial radius (finite, > 0). |
a | number | Semi-major axis (finite, > 0). |
i | Radians | Inclination (finite), in radians. |
e | number | Eccentricity (finite, 0 <= e < 1). |
Returns
number
RAAN drift rate
Throws
If any input is not finite.
Throws
If n < 0, Re <= 0, a <= 0, or e is outside [0,1].
Example
ts
// Earth-ish example (units must be consistent):
const J2 = 1.08262668e-3;
const n = 0.001078; // rad/s (roughly LEO)
const Re = 6378.137; // km
const a = 7000; // km
const i = ((98 * Math.PI) / 180) as Radians;
const e = 0.001;
const raanDot = j2NodalPrecessionRate(J2, n, Re, a, i, e);See
- https://science.nasa.gov/wp-content/uploads/2023/05/GDC_OrbitPrimer.pdf?emrc=5e452c NASA GSFC - GDC Orbit Primer (includes nodal precession / regression formulas)
- https://en.wikipedia.org/wiki/Nodal_precession Wikipedia - Nodal precession (gives common J2 RAAN drift approximation)
- https://ai-solutions.com/\_freeflyeruniversityguide/j2_perturbation.htm FreeFlyer University Guide - J2 perturbation (mission-design oriented explanation + formulas)
- https://articles.adsabs.harvard.edu/pdf/1959AJ.....64..367K Kozai (1959) - The Motion of a Close Earth Satellite (classic primary source on secular J2 effects)
- https://help.agi.com/stk/Content/stk/vehSat_orbitProp_2bodyJ2J4.htm AGI/STK Help - Two-Body with J2/J4 perturbations (practical propagation context)