SuperNOVAS C++ API v1.6
High-precision C/C++ astrometry library
Loading...
Searching...
No Matches
supernovas::Constant Class Reference

Various physical constants that SuperNOVAS uses for astrometric calculations, all expressed in terms of SI units. More...

#include <supernovas.h>

Static Public Attributes

static constexpr double c = NOVAS_C
 [rad] π/2
static constexpr double F_earth = NOVAS_GRS80_FLATTENING
 GRS80 Earth flattening.
static constexpr double G = 6.67428e-1
 [m3 kg-1 s-2]
static constexpr double GM_earth = NOVAS_G_EARTH
 [m3 s-2] Earth graviational constant
static constexpr double GM_sun = NOVAS_G_SUN
 [m3 s-2] Solar graviational constant
static constexpr double half_pi = 0.5 * pi
 [rad] 2π
static constexpr double L_B = 1.550519768e-8
 Barycentric clock rate increment over TT.
static constexpr double L_G = 6.969290134e-10
 Geocentric clock rate increment over TT.
static constexpr double M_earth = GM_sun / G
 [kg] Earth mass
static constexpr double M_sun = GM_sun / G
 [kg] Mass of the Sun
static constexpr double pi = M_PI
static constexpr double R_earth = NOVAS_GRS80_RADIUS
static constexpr double two_pi = TWOPI
 [rad] π

Detailed Description

Various physical constants that SuperNOVAS uses for astrometric calculations, all expressed in terms of SI units.

You can use them also. For example, you might use Constant::c to turn a velocity (im m/s) to a unitless β:

double beta = (29.5 * Unit::km / Unit::sec) / Constant::c;
static constexpr double c
[rad] π/2
Definition supernovas.h:201
static constexpr double km
[m] 1 Angstrom in meters
Definition supernovas.h:121
static constexpr double sec
[s] 1 second (standard unit of time)
Definition supernovas.h:132

Note, this class cannot be instantiated or copied. You should only use its static fields.

See also
Unit

Member Data Documentation

◆ c

◆ F_earth

double supernovas::Constant::F_earth = NOVAS_GRS80_FLATTENING
staticconstexpr

GRS80 Earth flattening.

◆ G

double supernovas::Constant::G = 6.67428e-1
staticconstexpr

[m3 kg-1 s-2]

◆ GM_earth

double supernovas::Constant::GM_earth = NOVAS_G_EARTH
staticconstexpr

[m3 s-2] Earth graviational constant

◆ GM_sun

double supernovas::Constant::GM_sun = NOVAS_G_SUN
staticconstexpr

[m3 s-2] Solar graviational constant

◆ half_pi

◆ L_B

double supernovas::Constant::L_B = 1.550519768e-8
staticconstexpr

Barycentric clock rate increment over TT.

◆ L_G

double supernovas::Constant::L_G = 6.969290134e-10
staticconstexpr

Geocentric clock rate increment over TT.

◆ M_earth

double supernovas::Constant::M_earth = GM_sun / G
staticconstexpr

[kg] Earth mass

◆ M_sun

double supernovas::Constant::M_sun = GM_sun / G
staticconstexpr

[kg] Mass of the Sun

Referenced by supernovas::Planet::mass().

◆ pi

double supernovas::Constant::pi = M_PI
staticconstexpr

◆ R_earth

double supernovas::Constant::R_earth = NOVAS_GRS80_RADIUS
staticconstexpr

◆ two_pi