Documentation / @interstellar-tools/equations / hyperbolicPeriapsisSpeed
Function: hyperbolicPeriapsisSpeed()
ts
function hyperbolicPeriapsisSpeed(
vInfinity: number,
rp: number,
mu: number
): number;Defined in: orbits/hyperbolic-periapsis-speed.ts:35
Compute hyperbolic periapsis speed for a flyby/escape hyperbola.
Equation:
Where:
is the hyperbolic excess speed (m/s or km/s) is the standard gravitational parameter of the central body (m³/s² or km³/s²) is the periapsis radius measured from the body's center (m or km)
Unit consistency is required:
- If
is in m³/s², then must be in m and speeds are in m/s. - If
is in km³/s², then must be in km and speeds are in km/s.
Parameters
| Parameter | Type | Description |
|---|---|---|
vInfinity | number | Hyperbolic excess speed |
rp | number | Periapsis radius |
mu | number | Standard gravitational parameter |
Returns
number
Periapsis speed vInfinity.
Throws
If any input is not finite.
Throws
If vInfinity < 0, rp <= 0, or mu <= 0.
Example
ts
// Earth example (km-based):
// mu = 398600.4418 km³/s², rp ~ 6678 km (LEO-ish), v∞ = 3.2 km/s
const vp = hyperbolicPeriapsisSpeed(3.2, 6678, 398600.4418);