8#ifndef __mx_astro_planets_hpp__
9#define __mx_astro_planets_hpp__
11#include "../math/constants.hpp"
60template <
typename units>
63 typedef typename units::realT realT;
65 using namespace mx::astro::constants;
79 return (
static_cast<realT
>( 14.0211 ) -
static_cast<realT
>( 44.8414 ) * logM +
80 static_cast<realT
>( 53.6554 ) * pow( logM, 2 ) -
static_cast<realT
>( 25.3289 ) * pow( logM, 3 ) +
81 static_cast<realT
>( 5.4920 ) * pow( logM, 4 ) - 0.4586 * pow( logM, 5 ) ) *
86 return static_cast<realT
>( 32.03 ) * pow( mass /
massEarth<units>(),
static_cast<realT
>( -0.125 ) ) *
117template <
typename units>
120 typedef typename units::realT realT;
122 using namespace mx::astro::constants;
136 return (
static_cast<realT
>( 0.96 ) +
static_cast<realT
>( 0.21 ) * lM -
137 static_cast<realT
>( 0.20 ) * pow( lM, 2 ) ) *
142 return static_cast<realT
>( 29.97 ) * pow( mass /
massEarth<units>(),
static_cast<realT
>( -0.125 ) ) *
155template <
typename units>
158 typedef typename units::realT realT;
160 using namespace mx::astro::constants;
186template <
typename units>
189 typedef typename units::realT realT;
191 using namespace mx::astro::constants;
199 return pow( mass /
massEarth<units>(),
static_cast<realT
>( 1 ) /
static_cast<realT
>( 2.06 ) ) *
constexpr units::realT radEarth()
Radius of Earth (nominal equatorial).
constexpr units::realT radJupiter()
Radius of Jupiter (nominal equatorial).
constexpr units::realT massEarth()
Earth Mass.
constexpr units::realT massJupiter()
Jupiter Mass.
constexpr T third()
Get the value of 1/3.
units::realT planetMass2RadiusFab2014(typename units::realT mass)
The planetary mass-to-radius of Fabrycky et al. (2014)..
units::realT planetMass2RadiusWThorngren(typename units::realT mass)
An ad-hoc planetary mass-to-radius relationship.
units::realT planetMass2Radius(typename units::realT mass)
An ad-hoc planetary mass-to-radius relationship.
units::realT planetMass2RadiusThorngren(typename units::realT mass)
Empirical mass-to-radius relationship for cool EGPs from Thorngren et al. (2019).
Unit specifications and conversions.