mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
Constants with dimensions are provided with a template argument specifying the units system to use, see Unit Conversions.
Functions | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::G () |
Newton's Gravitational Constant. | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::c () |
The speed of light. | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::k () |
Boltzmann Constant. | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::sigma () |
Stefan-Boltzmann Constant. | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::h () |
Planck Constant. | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::day () |
Length of day. | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::year () |
Length of year. | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::au () |
Astronomical Unit. | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::parsec () |
The parsec. | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::radSun () |
Radius of the Sun. | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::solarIrrad () |
Solar Irradiance at 1 au. | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::lumSun () |
Luminosity of the Sun. | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::TeffSun () |
Effective Temperature of the Sun. | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::GMSun () |
Solar Mass Parameter. | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::massSun () |
Solar Mass. | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::radEarth () |
Radius of Earth (nominal equatorial) | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::GMEarth () |
Earth Mass Parameter. | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::massEarth () |
Earth Mass. | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::radJupiter () |
Radius of Jupiter (nominal equatorial) | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::GMJupiter () |
Jupiter Mass Parameter. | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::massJupiter () |
Jupiter Mass. | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::mrMercury () |
Mass ratio of Mercury to the Sun. | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::massMercury () |
Mass of Mercury. | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::radVenus () |
Radius of Mercury. | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::mrMars () |
Mass ratio of Mars to the Sun. | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::massMars () |
Mass of Mars. | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::radSaturn () |
Radius of Mars. | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::mrUranus () |
Mass ratio of Uranus to the Sun. | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::massUranus () |
Mass of Uranus. | |
template<typename units > | |
constexpr units::realT | mx::astro::constants::radNeptune () |
Radius of Uranus. | |
|
constexpr |
Astronomical Unit.
As defined by IAU Resolution 2012 B2
Definition at line 119 of file constants.hpp.
|
constexpr |
The speed of light.
Source: 2014 CODATA recommended values [15], http://physics.nist.gov/cuu/Constants/index.html
Definition at line 58 of file constants.hpp.
|
constexpr |
|
constexpr |
Newton's Gravitational Constant.
Source: 2014 CODATA recommended values [15], http://physics.nist.gov/cuu/Constants/index.html
Definition at line 48 of file constants.hpp.
|
constexpr |
Earth Mass Parameter.
\( GM_{e} = 3.986004 \times 10^14 \: m^3 \: s^{-2} \)
Source: IAU Resolution 2015 B2, https://www.iau.org/static/resolutions/IAU2015_English.pdf
Definition at line 223 of file constants.hpp.
|
constexpr |
Jupiter Mass Parameter.
\( GM_{J} = 1.2668653 \times 10^17 \: m^3 \: s^{-2} \)
Source: IAU Resolution 2015 B2, https://www.iau.org/static/resolutions/IAU2015_English.pdf
Definition at line 260 of file constants.hpp.
|
constexpr |
Solar Mass Parameter.
\( GM_{sun} = 1.3271244 \times 10^20 \: m^3 \: s^{-2} \)
Source: IAU Resolution 2015 B2, https://www.iau.org/static/resolutions/IAU2015_English.pdf
Definition at line 186 of file constants.hpp.
|
constexpr |
Planck Constant.
Source: 2014 CODATA recommended values [15], http://physics.nist.gov/cuu/Constants/index.html
Definition at line 91 of file constants.hpp.
|
constexpr |
Boltzmann Constant.
\( k = 1.38064852 \times 10^{-23} \: J \: K^{-1}\)
Source: 2014 CODATA recommended values [15], http://physics.nist.gov/cuu/Constants/index.html
Definition at line 69 of file constants.hpp.
|
constexpr |
Luminosity of the Sun.
\( L_{sun} = 3.828\times 10^{26} \: W\)
Source: IAU Resolution 2015 B2, https://www.iau.org/static/resolutions/IAU2015_English.pdf
Definition at line 162 of file constants.hpp.
|
constexpr |
Earth Mass.
The mass of Earth is the mass parameter divided by the gravitational constant.
\( M_{e} = GM_{e}/G \)
Definition at line 236 of file constants.hpp.
|
constexpr |
Jupiter Mass.
The mass of Jupiter is the Jupiter mass parameter divided by the gravitationalconstant".
\( M_{J} = GM_{J}/G \)
Definition at line 274 of file constants.hpp.
|
constexpr |
Mass of Mars.
The mass of Mars is the mass of the Sun divided by the mass ratio of Mars to the Sun.
Definition at line 380 of file constants.hpp.
|
constexpr |
Mass of Mercury.
The mass of Mercury is the mass of the Sun divided by the mass ratio of Mercury tothe Sun".
Definition at line 301 of file constants.hpp.
|
constexpr |
Solar Mass.
The mass of Sun is the Solar mass parameter divided by the graviational constant.
\( M_{Sun} = GM_{Sun}/G \)
Definition at line 199 of file constants.hpp.
|
constexpr |
Mass of Uranus.
The mass of Uranus is the mass of the Sun divided by the mass ratio of Uranus to the Sun.
Definition at line 458 of file constants.hpp.
|
constexpr |
Mass ratio of Mars to the Sun.
\( M_{Sun}/M_{Ma} = 3.09870359 \times 10^{6}\)
Source: IAU Resolution 2009 B2, https://www.iau.org/static/resolutions/IAU2009_English.pdf. see also http://maia.usno.navy.mil/NSFA/NSFA_cbe.html
Definition at line 369 of file constants.hpp.
|
constexpr |
Mass ratio of Mercury to the Sun.
\( M_{Sun}/M_{Me} = 6.023657330 \times 10^{6} \)
Source: IAU Resolution 2009 B2, https://www.iau.org/static/resolutions/IAU2009_English.pdf. see also http://maia.usno.navy.mil/NSFA/NSFA_cbe.html
Definition at line 289 of file constants.hpp.
|
constexpr |
Mass ratio of Uranus to the Sun.
\( M_{Sun}/M_{U} = 2.2902951 \times 10^{4}\)
Source: IAU Resolution 2009 B2, https://www.iau.org/static/resolutions/IAU2009_English.pdf. see also http://maia.usno.navy.mil/NSFA/NSFA_cbe.html
Definition at line 447 of file constants.hpp.
|
constexpr |
The parsec.
Definition at line 126 of file constants.hpp.
|
constexpr |
Radius of Earth (nominal equatorial)
\( R_{e} = 6.3781\times 10^6 \: m \)
Source: IAU Resolution 2015 B2, https://www.iau.org/static/resolutions/IAU2015_English.pdf
Definition at line 211 of file constants.hpp.
|
constexpr |
Radius of Jupiter (nominal equatorial)
\( R_{J} = 7.1492\times 10^7 \: m \)
Source: IAU Resolution 2015 B2, https://www.iau.org/static/resolutions/IAU2015_English.pdf
Definition at line 248 of file constants.hpp.
|
constexpr |
Radius of Uranus.
\( = 2.5559 \times 10^{7} Source: Seidelmann et al. (2007) \cite seidelmann_2007 */ template <typename units> constexpr typename units::realT radUranus() { return static_cast<typename units::realT>( 2.5559e7 ) * units::length; } Mass ratio of Neptune to the Sun. /** \) M_{Sun}/M_{U} = 1.941226 \times 10^{4} \( Source: IAU Resolution 2009 B2, <a href="https://www.iau.org/static/resolutions/IAU2009_English.pdf">https://www.iau.org/static/resolutions/IAU2009_English.pdf</a>. see also <a href="http://maia.usno.navy.mil/NSFA/NSFA_cbe.html">http://maia.usno.navy.mil/NSFA/NSFA_cbe.html</a> */ template <typename units> constexpr typename units::realT mrNeptune() { return static_cast<typename units::realT>( 1.941226e4 ); } Mass of Neptune. /** The mass of Neptune is the mass of the Sun divided by the mass ratio of Neptune to the Sun. */ template <typename units> constexpr typename units::realT massNeptune() { return massSun<units>() / mrNeptune<units>(); } Radius of Neptune. /** \) = 2.4764 \times 10^{7}
Source: Seidelmann et al. (2007) [23]
Definition at line 510 of file constants.hpp.
|
constexpr |
Radius of Mars.
\( = 3.39619 \times 10^{6} Source: Seidelmann et al. (2007) \cite seidelmann_2007 */ template <typename units> constexpr typename units::realT radMars() { return static_cast<typename units::realT>( 3.39619e6 ) * units::length; } Mass ratio of Saturn to the Sun. /** \) M_{Sun}/M_{Sa} = 3.4979018 \times 10^{3} \( Source: IAU Resolution 2009 B2, <a href="https://www.iau.org/static/resolutions/IAU2009_English.pdf">https://www.iau.org/static/resolutions/IAU2009_English.pdf</a>. see also <a href="http://maia.usno.navy.mil/NSFA/NSFA_cbe.html">http://maia.usno.navy.mil/NSFA/NSFA_cbe.html</a> */ template <typename units> constexpr typename units::realT mrSaturn() { return static_cast<typename units::realT>( 3.4979018e3 ); } Mass of Saturn. /** The mass of Saturn is the mass of the Sun divided by the mass ratio of Saturn to the Sun. */ template <typename units> constexpr typename units::realT massSaturn() { return massSun<units>() / mrSaturn<units>(); } Radius of Saturn. /** \) = 6.0268 \times 10^{7}
Source: Seidelmann et al. (2007) [23]
Definition at line 432 of file constants.hpp.
|
constexpr |
Radius of the Sun.
\( R_{sun} = 6.957\times 10^{8} \: m\)
Source: IAU Resolution 2015 B2, https://www.iau.org/static/resolutions/IAU2015_English.pdf
Definition at line 138 of file constants.hpp.
|
constexpr |
Radius of Mercury.
\( = 2.4397 \times 10^{6} Source: Seidelmann et al. (2007) \cite seidelmann_2007 */ template <typename units> constexpr typename units::realT radMercury() { return static_cast<typename units::realT>( 2.4397e6 ) * units::length; } Mass ratio of Venus to the Sun. /** \) M_{Sun}/M_{Ve} = 4.08523719 \times 10^{5} \( Source: IAU Resolution 2009 B2, <a href="https://www.iau.org/static/resolutions/IAU2009_English.pdf">https://www.iau.org/static/resolutions/IAU2009_English.pdf</a>. see also <a href="http://maia.usno.navy.mil/NSFA/NSFA_cbe.html">http://maia.usno.navy.mil/NSFA/NSFA_cbe.html</a> */ template <typename units> constexpr typename units::realT mrVenus() { return static_cast<typename units::realT>( 4.08523719e5 ); } Mass of Venus. /** The mass of Venus is the \ref massSun() "mass of the Sun" divided by the \ref mrVenus() "mass ratio of Venus to the Sun". */ template <typename units> constexpr typename units::realT massVenus() { return massSun<units>() / mrVenus<units>(); } Radius of Venus. /** \) = 6.0518 \times 10^{6}
Source: Seidelmann et al. (2007) [23]
Definition at line 354 of file constants.hpp.
|
constexpr |
Stefan-Boltzmann Constant.
\( \sigma = 5.670367 \times 10^{-8} \: W \: m^{-2} \: K^{-4} \)
Source: 2014 CODATA recommended values [15], http://physics.nist.gov/cuu/Constants/index.html
Definition at line 80 of file constants.hpp.
|
constexpr |
Solar Irradiance at 1 au.
\( S_{sun} = 1361 \: W \: m^{-2}\)
Source: IAU Resolution 2015 B2, https://www.iau.org/static/resolutions/IAU2015_English.pdf
Definition at line 150 of file constants.hpp.
|
constexpr |
Effective Temperature of the Sun.
\( T_{sun} = 5772 \: K \)
Source: IAU Resolution 2015 B2, https://www.iau.org/static/resolutions/IAU2015_English.pdf
Definition at line 174 of file constants.hpp.
|
constexpr |