Astro  0.0.0
A C++ library for space dynamics
Loading...
Searching...
No Matches
Astro::Planets Namespace Reference

Classes

struct  KeplerianEarth
 Structure container for the Earth J2000 Keplerian orbital elements for orbit about the Sun. More...
struct  KeplerianMoon
 Structure container for the Moon Keplerian orbital elements for orbit about the Earth. More...

Functions

Body Earth ()
 Create a Earth object with J2000 Keplerian orbital elements.
Vector3 EarthMagneticFieldDipole (Vector3 const &position)
 Compute the Eath magnetic field at a given positionusing the IGRF model.
Body Moon ()
 Create a Moon object with Keplerian orbital elements.

Variables

static const Real KM3_S2_TO_AU3_DAY2 {(KM_TO_AU*KM_TO_AU*KM_TO_AU)/(SEC_TO_DAY*SEC_TO_DAY)}
static const Real AU3_DAY2_TO_KM3_S2 {1.0/KM3_S2_TO_AU3_DAY2}
static Real const Sun_mass_KG {1.9885E30}
static Real const Sun_radius_KM {695700.0}
static Real const Sun_radius_AU {KM_To_AU(Sun_radius_KM)}
static Real const Sun_mu_KM3_S2 {1.32712440018E11}
static Real const Sun_mu_AU3_DAY2 {KM3_S2_To_AU3_DAY2(Sun_mu_KM3_S2)}
static Real const Earth_mass_KG {5.97219E24}
static Real const Earth_radius_KM {6378.1370}
static Real const Earth_radius_AU {KM_To_AU(Earth_radius_KM)}
static Real const Earth_mu_KM3_S2 {398600.4418}
static Real const Earth_mu_KM3_DAY2 {KM3_S2_To_KM3_DAY2(Earth_mu_KM3_S2)}
static Real const Earth_mu_AU3_DAY2 {KM3_S2_To_AU3_DAY2(Earth_mu_KM3_S2)}
static constexpr Real EARTH_MAG_MOMENT {7.96e15}
static Real const Moon_mass_KG {7.34767309E22}
static Real const Moon_radius_KM {1737.400}
static Real const Moon_radius_AU {Moon_radius_KM*KM_TO_AU}
static Real const Moon_mu_M3S2 {4.9048695E12}
static Real const Moon_mu_KM3_S2 {Moon_mu_M3S2/1.0E9}
static Real const Moon_mu_AU3_DAY2 {Moon_mu_KM3_S2*KM3_S2_TO_AU3_DAY2}

Function Documentation

◆ Earth()

Body Astro::Planets::Earth ( )
inline
Returns
A new Earth object with J2000 Keplerian orbital elements.

◆ EarthMagneticFieldDipole()

Vector3 Astro::Planets::EarthMagneticFieldDipole ( Vector3 const & position)
inline
Parameters
[in]positionThe position vector in Km.
Returns
The magnetic field vector at the given position in nT.

◆ Moon()

Body Astro::Planets::Moon ( )
inline
Returns
A new Moon object with Keplerian orbital elements.

Variable Documentation

◆ AU3_DAY2_TO_KM3_S2

const Real Astro::Planets::AU3_DAY2_TO_KM3_S2 {1.0/KM3_S2_TO_AU3_DAY2}
static

Conversion factor from AU^3/day^2 to Km^3/s^2.

◆ EARTH_MAG_MOMENT

Real Astro::Planets::EARTH_MAG_MOMENT {7.96e15}
staticconstexpr

Magnetic dipole moment of the Earth in T*m^3.

◆ Earth_mass_KG

Real const Astro::Planets::Earth_mass_KG {5.97219E24}
static

Mass of the Earth in Kg.

◆ Earth_mu_AU3_DAY2

Real const Astro::Planets::Earth_mu_AU3_DAY2 {KM3_S2_To_AU3_DAY2(Earth_mu_KM3_S2)}
static

Gravitational constant of the Earth in AU^3/day^2.

◆ Earth_mu_KM3_DAY2

Real const Astro::Planets::Earth_mu_KM3_DAY2 {KM3_S2_To_KM3_DAY2(Earth_mu_KM3_S2)}
static

Gravitational constant of the Earth in Km^3/day^2.

◆ Earth_mu_KM3_S2

Real const Astro::Planets::Earth_mu_KM3_S2 {398600.4418}
static

Gravitational constant of the Earth in Km^3/s^2.

◆ Earth_radius_AU

Real const Astro::Planets::Earth_radius_AU {KM_To_AU(Earth_radius_KM)}
static

Radius of the Earth in AU.

◆ Earth_radius_KM

Real const Astro::Planets::Earth_radius_KM {6378.1370}
static

Radius of the Earth in Km.

◆ KM3_S2_TO_AU3_DAY2

const Real Astro::Planets::KM3_S2_TO_AU3_DAY2 {(KM_TO_AU*KM_TO_AU*KM_TO_AU)/(SEC_TO_DAY*SEC_TO_DAY)}
static

Conversion factor from Km^3/s^2 to AU^3/day^2.

◆ Moon_mass_KG

Real const Astro::Planets::Moon_mass_KG {7.34767309E22}
static

Mass of the Moon in Kg.

◆ Moon_mu_AU3_DAY2

Real const Astro::Planets::Moon_mu_AU3_DAY2 {Moon_mu_KM3_S2*KM3_S2_TO_AU3_DAY2}
static

Gravitational constant of the Moon in AU^3/day^2.

◆ Moon_mu_KM3_S2

Real const Astro::Planets::Moon_mu_KM3_S2 {Moon_mu_M3S2/1.0E9}
static

Gravitational constant of the Moon in Km^3/s^2.

◆ Moon_mu_M3S2

Real const Astro::Planets::Moon_mu_M3S2 {4.9048695E12}
static

Gravitational constant of the Moon in m^3/s^2.

◆ Moon_radius_AU

Real const Astro::Planets::Moon_radius_AU {Moon_radius_KM*KM_TO_AU}
static

Radius of the Moon in AU.

◆ Moon_radius_KM

Real const Astro::Planets::Moon_radius_KM {1737.400}
static

Radius of the Moon in Km.

◆ Sun_mass_KG

Real const Astro::Planets::Sun_mass_KG {1.9885E30}
static

◆ Sun_mu_AU3_DAY2

Real const Astro::Planets::Sun_mu_AU3_DAY2 {KM3_S2_To_AU3_DAY2(Sun_mu_KM3_S2)}
static

Gravitational constant of the Sun in AU^3/day^2.

◆ Sun_mu_KM3_S2

Real const Astro::Planets::Sun_mu_KM3_S2 {1.32712440018E11}
static

Gravitational constant of the Sun in Km^3/s^2.

◆ Sun_radius_AU

Real const Astro::Planets::Sun_radius_AU {KM_To_AU(Sun_radius_KM)}
static

Radius of the Sun in AU.

◆ Sun_radius_KM

Real const Astro::Planets::Sun_radius_KM {695700.0}
static

Mass of the Sun in Kg. Radius of the Sun in Km.