EGXPhys
Escape Velocity

Functions

template<typename T >
EGXPhys::EscapeVelocity (const T distanceFromCenterOfMassInm, const T massOfBodyInkg)
 Calculates the escape velocity, \(v_{e}\), the minimum speed needed for an object to escape from the gravitational influence of a massive body.

\[v_{e}=\sqrt{\frac{2 G M}{r}}\]

. More...

 

Detailed Description

Function Documentation

◆ EscapeVelocity()

template<typename T >
T EGXPhys::EscapeVelocity ( const T  distanceFromCenterOfMassInm,
const T  massOfBodyInkg 
)

Calculates the escape velocity, \(v_{e}\), the minimum speed needed for an object to escape from the gravitational influence of a massive body.

\[v_{e}=\sqrt{\frac{2 G M}{r}}\]

.

See https://en.wikipedia.org/wiki/Escape_velocity

Parameters
distanceFromCenterOfMassInm\(r\ (m)\) Distance from center of mass of the massive body in meters.
massOfBodyInkg\(M\ (kg)\) Mass of massive body in kilograms.
Returns
\(v_{e}\ (\frac{m}{s})\) Escape velocity in meters per second.