|
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::radMercury () |
| Radius of Mercury. | |
| template<typename units> | |
| constexpr units::realT | mx::astro::constants::mrVenus () |
| Mass ratio of Venus to the Sun. | |
| template<typename units> | |
| constexpr units::realT | mx::astro::constants::massVenus () |
| Mass of Venus. | |
| template<typename units> | |
| constexpr units::realT | mx::astro::constants::radVenus () |
| Radius of Venus. | |
| 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::radMars () |
| Radius of Mars. | |
| template<typename units> | |
| constexpr units::realT | mx::astro::constants::mrSaturn () |
| Mass ratio of Saturn to the Sun. | |
| template<typename units> | |
| constexpr units::realT | mx::astro::constants::massSaturn () |
| Mass of Saturn. | |
| template<typename units> | |
| constexpr units::realT | mx::astro::constants::radSaturn () |
| Radius of Saturn. | |
| 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::radUranus () |
| Radius of Uranus. | |
| template<typename units> | |
| constexpr units::realT | mx::astro::constants::mrNeptune () |
| Mass ratio of Neptune to the Sun. | |
| template<typename units> | |
| constexpr units::realT | mx::astro::constants::massNeptune () |
| Mass of Neptune. | |
| template<typename units> | |
| constexpr units::realT | mx::astro::constants::radNeptune () |
| Radius of Neptune. | |
|
constexpr |
Astronomical Unit.
As defined by IAU Resolution 2012 B2
Definition at line 119 of file constants.hpp.
Referenced by parsec().
|
constexpr |
The speed of light.
Source: 2014 CODATA recommended values [23], http://physics.nist.gov/cuu/Constants/index.html
Definition at line 58 of file constants.hpp.
Referenced by mx::astro::baseSpectrum< realT >::charFlux().
|
constexpr |
|
constexpr |
Newton's Gravitational Constant.
Source: 2014 CODATA recommended values [23], http://physics.nist.gov/cuu/Constants/index.html
Definition at line 48 of file constants.hpp.
Referenced by massEarth(), massJupiter(), massSun(), mx::astro::orbitPeriod(), mx::astro::orbitRV(), and mx::astro::orbitSemiMaj().
|
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.
Referenced by massEarth().
|
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.
Referenced by massJupiter().
|
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.
Referenced by massSun().
|
constexpr |
Planck Constant.
Source: 2014 CODATA recommended values [23], http://physics.nist.gov/cuu/Constants/index.html
Definition at line 91 of file constants.hpp.
Referenced by mx::astro::baseSpectrum< realT >::charFlux().
|
constexpr |
Boltzmann Constant.
\( k = 1.38064852 \times 10^{-23} \: J \: K^{-1}\)
Source: 2014 CODATA recommended values [23], 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.
References G(), and GMEarth().
Referenced by mx::astro::planetMass2Radius(), mx::astro::planetMass2RadiusFab2014(), and mx::astro::planetMass2RadiusWThorngren().
|
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.
References G(), and GMJupiter().
Referenced by mx::astro::planetMass2RadiusThorngren(), and mx::astro::planetMass2RadiusWThorngren().
|
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.
References massSun(), and mrMercury().
|
constexpr |
Mass of Neptune.
The mass of Neptune is the mass of the Sun divided by the mass ratio of Neptune to the Sun.
Definition at line 497 of file constants.hpp.
References massSun(), and mrNeptune().
|
constexpr |
Mass of Saturn.
The mass of Saturn is the mass of the Sun divided by the mass ratio of Saturn to the Sun.
Definition at line 419 of file constants.hpp.
References massSun(), and mrSaturn().
|
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.
Referenced by massMars(), massMercury(), massNeptune(), massSaturn(), massUranus(), and massVenus().
|
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.
References massSun(), and mrUranus().
|
constexpr |
Mass of Venus.
The mass of Venus is the mass of the Sun divided by the mass ratio of Venus to theSun.
Definition at line 341 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.
Referenced by massMars().
|
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.
Referenced by massMercury().
|
constexpr |
Mass ratio of Neptune to the Sun.
\( M_{Sun}/M_{U} = 1.941226 \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 486 of file constants.hpp.
Referenced by massNeptune().
|
constexpr |
Mass ratio of Saturn to the Sun.
\( M_{Sun}/M_{Sa} = 3.4979018 \times 10^{3}\)
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 408 of file constants.hpp.
Referenced by massSaturn().
|
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.
Referenced by massUranus().
|
constexpr |
Mass ratio of Venus to the Sun.
\( M_{Sun}/M_{Ve} = 4.08523719 \times 10^{5}\)
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 329 of file constants.hpp.
Referenced by massVenus().
|
constexpr |
|
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.
Referenced by mx::astro::planetMass2Radius(), mx::astro::planetMass2RadiusFab2014(), and mx::astro::planetMass2RadiusWThorngren().
|
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.
Referenced by mx::astro::planetMass2RadiusThorngren(), and mx::astro::planetMass2RadiusWThorngren().
|
constexpr |
Radius of Mars.
\( = 3.39619 \times 10^{6} \)
Source: Seidelmann et al. (2007) [31]
Definition at line 393 of file constants.hpp.
|
constexpr |
Radius of Mercury.
\( = 2.4397 \times 10^{6} \)
Source: Seidelmann et al. (2007) [31]
Definition at line 314 of file constants.hpp.
|
constexpr |
Radius of Neptune.
\( = 2.4764 \times 10^{7} \)
Source: Seidelmann et al. (2007) [31]
Definition at line 510 of file constants.hpp.
|
constexpr |
Radius of Saturn.
\( = 6.0268 \times 10^{7} \)
Source: Seidelmann et al. (2007) [31]
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 Uranus.
\( = 2.5559 \times 10^{7} \)
Source: Seidelmann et al. (2007) [31]
Definition at line 471 of file constants.hpp.
|
constexpr |
Radius of Venus.
\( = 6.0518 \times 10^{6} \)
Source: Seidelmann et al. (2007) [31]
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 [23], 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.
Referenced by mx::astro::blackbody< units, freq >::blackbody().
|
constexpr |