EGXPhys
Surface Gravity

Functions

template<typename T >
EGXPhys::SurfaceGravityInmPersSquared (const T massInkg, const T meanRadiusInm)
 Calculates the surface gravity, \(g\), of a celestial body in meters per second squared. The surface gravity is a product of the gravitational constant, \(G\), as well as the mass, \(M\), and mean radius, \(r\), of the celestial body:

\[g = \frac{GM}{r^2}\]

. More...

 
template<typename T >
EGXPhys::SurfaceGravityIng (const T massInkg, const T meanRadiusInm)
 Calculates the surface gravity, \(g\), of a celestial body in gs (Earth's gravity). The surface gravity is a product of the gravitational constant, \(G\), as well as the mass, \(M\), and mean radius, \(r\), of the celestial body:

\[g = \frac{GM}{g_{Earth}r^2}\]

. More...

 

Detailed Description

Function Documentation

◆ SurfaceGravityIng()

template<typename T >
T EGXPhys::SurfaceGravityIng ( const T  massInkg,
const T  meanRadiusInm 
)

Calculates the surface gravity, \(g\), of a celestial body in gs (Earth's gravity). The surface gravity is a product of the gravitational constant, \(G\), as well as the mass, \(M\), and mean radius, \(r\), of the celestial body:

\[g = \frac{GM}{g_{Earth}r^2}\]

.

See https://en.wikipedia.org/wiki/Surface_gravity and https://en.wikipedia.org/wiki/Gravity_of_Earth

Parameters
massInkg\(M\ (kg)\) Mass of celestial body in kilograms.
meanRadiusInm\(r\ (m)\) Mean radius of celestial body in meters.
Returns
\(g\ (g)\) Surface gravity of celestial body in gs.
See also
SurfaceGravityInmPersSquared() for surface gravity in meter per second squared.
StandardGravitationalParameter() for calulations of the standard gravitational parameter.

◆ SurfaceGravityInmPersSquared()

template<typename T >
T EGXPhys::SurfaceGravityInmPersSquared ( const T  massInkg,
const T  meanRadiusInm 
)

Calculates the surface gravity, \(g\), of a celestial body in meters per second squared. The surface gravity is a product of the gravitational constant, \(G\), as well as the mass, \(M\), and mean radius, \(r\), of the celestial body:

\[g = \frac{GM}{r^2}\]

.

See https://en.wikipedia.org/wiki/Surface_gravity and https://en.wikipedia.org/wiki/Gravity_of_Earth

Parameters
massInkg\(M\ (kg)\) Mass of celestial body in kilograms.
meanRadiusInm\(r\ (m)\) Mean radius of celestial body in meters.
Returns
\(g\ (\frac{m}{s^2})\) Surface gravity of celestial body in meters per second squared.
See also
SurfaceGravityIng() for surface gravity in gs.
StandardGravitationalParameter() for calulations of the standard gravitational parameter.