Documentation / @interstellar-tools/equations / atmosphericDragAcceleration
Function: atmosphericDragAcceleration()
ts
function atmosphericDragAcceleration(
Cd: number,
A: number,
m: number,
rho: number,
v: number
): number;Defined in: orbits/atmospheric-drag-acceleration.ts:39
Compute atmospheric drag acceleration magnitude.
Equation:
Where:
is the drag coefficient (dimensionless) is reference area normal to the flow (m²) is spacecraft mass (kg) is atmospheric density (kg/m³) is speed relative to the atmosphere (m/s)
Units:
- Returns acceleration magnitude in m/s².
Note:
- This returns the magnitude of drag acceleration. The drag acceleration vector points opposite the velocity direction (i.e., along
).
Parameters
| Parameter | Type | Description |
|---|---|---|
Cd | number | Drag coefficient |
A | number | Reference area |
m | number | Mass |
rho | number | Atmospheric density |
v | number | Speed relative to the atmosphere |
Returns
number
Drag acceleration magnitude
Throws
If any input is not finite.
Throws
If m <= 0 or any of Cd, A, rho, v is negative.
Example
ts
// Example (rough LEO order-of-magnitude):
const aD = atmosphericDragAcceleration(2.2, 2.0, 500, 1e-12, 7700);