ARTS 2.5.11 (git: 6827797f)
|
Namespace containing several constants, physical and mathematical. More...
Variables | |
constexpr Numeric | pi = std::numbers::pi |
The following mathematical constants are generated in python Decimal package by the code: | |
constexpr Numeric | inv_pi = std::numbers::inv_pi |
Inverse of pi. | |
constexpr Numeric | two_pi = 2 * pi |
Two times pi. | |
constexpr Numeric | inv_two_pi = 0.5 * inv_pi |
Inverse of two pi. | |
constexpr Numeric | sqrt_pi = 1.0/std::numbers::inv_sqrtpi |
Square root of pi. | |
constexpr Numeric | inv_sqrt_pi = std::numbers::inv_sqrtpi |
Inverse of the square root of pi. | |
constexpr Numeric | euler = std::numbers::e |
Euler's number. | |
constexpr Numeric | inv_euler = 1.0 / euler |
Inverse of Euler's number. | |
constexpr Numeric | log10_euler = std::numbers::log10e |
Ten's logarithm of Euler's number. | |
constexpr Numeric | ln_10 = std::numbers::ln10 |
Natural logarithm of 10. | |
constexpr Numeric | sqrt_2 = std::numbers::sqrt2 |
Square root of 2. | |
constexpr Numeric | inv_sqrt_2 = 1.0 / sqrt_2 |
Inverse of the square root of 2. | |
constexpr Numeric | ln_2 = std::numbers::ln2 |
Natural logarithm of 2. | |
constexpr Numeric | inv_ln_2 = 1.0 / ln_2 |
Inverse of the natural logarithm of 2. | |
constexpr Numeric | sqrt_ln_2 |
Square root of natural logarithm of 2. | |
constexpr Numeric | inv_sqrt_ln_2 |
Inverse of the square root of the natural logarithm of 2. | |
constexpr Numeric | Delta_nu_Cs = 9192631770 |
Cesium-133 Unperturbed ground-state hyperfine transition frequency [Hz] From: https://en.wikipedia.org/wiki/2019_redefinition_of_SI_base_units Date: 2019-04-01. | |
constexpr Numeric | speed_of_light = 299792458 |
Speed of light [m/s] From: https://en.wikipedia.org/wiki/2019_redefinition_of_SI_base_units Date: 2019-04-01. | |
constexpr Numeric | c = speed_of_light |
Speed of light convenience name [m/s]. | |
constexpr Numeric | planck_constant = 6.62607015e-34 |
Planck constant [J s] From: https://en.wikipedia.org/wiki/2019_redefinition_of_SI_base_units Date: 2019-04-01. | |
constexpr Numeric | h = planck_constant |
Planck constant convenience name [J s]. | |
constexpr Numeric | reduced_planck_constant = h * inv_two_pi |
Reduced planck constant [J s]. | |
constexpr Numeric | h_bar = reduced_planck_constant |
Reduced planck constant convenience name [J s]. | |
constexpr Numeric | elementary_charge = 1.602176634e-19 |
Elementary charge [C] From: https://en.wikipedia.org/wiki/2019_redefinition_of_SI_base_units Date: 2019-04-01. | |
constexpr Numeric | e = elementary_charge |
Elementary charge convenience name [C]. | |
constexpr Numeric | boltzmann_constant = 1.380649e-23 |
Boltzmann constant [J/K] From: https://en.wikipedia.org/wiki/2019_redefinition_of_SI_base_units Date: 2019-04-01. | |
constexpr Numeric | k = boltzmann_constant |
Boltzmann constant convenience name [J/K]. | |
constexpr Numeric | avogadro_constant = 6.02214076e23 |
Avogadro constant [1/mol] From: https://en.wikipedia.org/wiki/2019_redefinition_of_SI_base_units Date: 2019-04-01. | |
constexpr Numeric | NA = avogadro_constant |
Avogadro constant convenience name [1/mol]. | |
constexpr Numeric | K_cd = 683 |
Luminous efficacy of monochromatic 540 THz radiation [lm / W] From: https://en.wikipedia.org/wiki/2019_redefinition_of_SI_base_units Date: 2019-04-01. | |
constexpr Numeric | fine_structure_constant = 7.2973525693e-3 |
Fine structure constant [-] From: https://physics.nist.gov/cgi-bin/cuu/Value?alph Date: 2019-06-18 Reported error: (11) | |
constexpr Numeric | alpha = fine_structure_constant |
Fine structure constant convenience name [-]. | |
constexpr Numeric | rydberg_constant = 10973731.568160 |
Rydberg constant [1/m] From: https://physics.nist.gov/cgi-bin/cuu/Value?ryd Date: 2016-06-18 Reported error: (21) | |
constexpr Numeric | R_inf = rydberg_constant |
Rydberg constant convenience name [1/m]. | |
constexpr Numeric | magnetic_constant = 2 * h * alpha / (c * Math::pow2(e)) |
Magnetic constant [H/m]. | |
constexpr Numeric | mu_0 = magnetic_constant |
Magnetic constant convenience name [H/m]. | |
constexpr Numeric | vacuum_permittivity = Math::pow2(e) / (2 * h * c * alpha) |
Vacuum permittivity [F/m]. | |
constexpr Numeric | epsilon_0 = vacuum_permittivity |
Vacuum permittivity convenience name [F/m]. | |
constexpr Numeric | electron_mass = 2 * h * R_inf / (c * Math::pow2(alpha)) |
Mass of resting electron [kg]. | |
constexpr Numeric | m_e = electron_mass |
Mass of resting electron convenience name [kg]. | |
constexpr Numeric | unified_atomic_mass_unit = 1.66053906660e-27 |
Unified atomic mass unit [kg] From: https://physics.nist.gov/cgi-bin/cuu/Value?ukg Date: 2020-02-18 Reported error: (50) | |
constexpr Numeric | m_u = unified_atomic_mass_unit |
Unified atomic mass unit convenience name [kg]. | |
constexpr Numeric | mass_ratio_electrons_per_proton = 1'836.152'673'43 |
Mass ratio of electrons to protons [-] From: https://physics.nist.gov/cgi-bin/cuu/Value?mpsme Date: 2020-01-08 Reported error: (11) | |
constexpr Numeric | proton_mass |
Mass of a proton [kg]. | |
constexpr Numeric | mass_ratio_electrons_per_neutron = 1'838.683'661'73 |
Mass ratio of electrons to protons [-] From: https://physics.nist.gov/cgi-bin/cuu/Value?mnsme Date: 2020-01-08 Reported error: (89) | |
constexpr Numeric | neutron_mass |
Mass of a neutron [kg]. | |
constexpr Numeric | bohr_magneton = e * h_bar / (2 * m_e) |
Bohr magneton [J/T]. | |
constexpr Numeric | ideal_gas_constant = k * NA |
Ideal gas constant [J/mol K]. | |
constexpr Numeric | R = ideal_gas_constant |
Ideal gas constant convenience name [J/mol K]. | |
constexpr Numeric | doppler_broadening_const_squared = 2'000 * R / Math::pow2(c) |
Doppler broadening constant squared [kg/T]^2. | |
constexpr Numeric | one_degree_in_radians = pi / 180 |
One degree in radians. | |
constexpr Numeric | stefan_boltzmann_constant |
Stefan-Boltzmann constant [W/(K^4*m^2)]. | |
constexpr Numeric | sigma = stefan_boltzmann_constant |
Stefan-Boltzmann constant convenience name [W/(K^4*m^2)]. | |
constexpr Numeric | density_of_ice_at_0c = 0.9167e3 |
Global constant, Density of water ice at 0C [kg/m3] source: http://en.wikipedia.org/wiki/Ice. | |
constexpr Numeric | denity_of_water_at_4c = 1e3 |
Global constant, Density of liquid water +4C [kg/m3] source: http://en.wikipedia.org/wiki/Water. | |
constexpr Numeric | cosmic_microwave_background_temperature = 2.735 |
Global constant, Planck temperature for cosmic background radiation [K]. | |
constexpr Numeric | earth_radius = 6.3781e6 |
Global constant, the radius of the Earth [m]. | |
constexpr Numeric | temperature_at_0c = 273.15 |
Global constant, Temperature in Celsius of 0 Kelvin. | |
Namespace containing several constants, physical and mathematical.
|
inlineconstexpr |
Fine structure constant convenience name [-].
Definition at line 177 of file arts_constants.h.
|
inlineconstexpr |
Avogadro constant [1/mol] From: https://en.wikipedia.org/wiki/2019_redefinition_of_SI_base_units Date: 2019-04-01.
Definition at line 158 of file arts_constants.h.
Bohr magneton [J/T].
Definition at line 240 of file arts_constants.h.
Referenced by Zeeman::Model::Splitting().
|
inlineconstexpr |
Boltzmann constant [J/K] From: https://en.wikipedia.org/wiki/2019_redefinition_of_SI_base_units Date: 2019-04-01.
Definition at line 149 of file arts_constants.h.
Referenced by setCji().
|
inlineconstexpr |
Speed of light convenience name [m/s].
Definition at line 119 of file arts_constants.h.
Referenced by createBij(), dplanck_df(), dplanck_dt(), Conversion::freq2kaycm(), Conversion::freq2wavelen(), get_stepwise_f_partials(), Conversion::kaycm2freq(), planck(), Absorption::ReadFromHitran2001Stream(), Absorption::ReadFromHitran2004Stream(), Absorption::ReadFromHitranOnlineStream(), Absorption::ReadFromLBLRTMStream(), and Conversion::wavelen2freq().
|
inlineconstexpr |
Global constant, Planck temperature for cosmic background radiation [K].
Definition at line 279 of file arts_constants.h.
|
inlineconstexpr |
Cesium-133 Unperturbed ground-state hyperfine transition frequency [Hz] From: https://en.wikipedia.org/wiki/2019_redefinition_of_SI_base_units Date: 2019-04-01.
Definition at line 110 of file arts_constants.h.
|
inlineconstexpr |
Global constant, Density of liquid water +4C [kg/m3] source: http://en.wikipedia.org/wiki/Water.
Definition at line 273 of file arts_constants.h.
|
inlineconstexpr |
Global constant, Density of water ice at 0C [kg/m3] source: http://en.wikipedia.org/wiki/Ice.
Definition at line 266 of file arts_constants.h.
|
inlineconstexpr |
Doppler broadening constant squared [kg/T]^2.
Definition at line 249 of file arts_constants.h.
Referenced by Absorption::Lines::DopplerConstant().
|
inlineconstexpr |
Elementary charge convenience name [C].
Definition at line 143 of file arts_constants.h.
Referenced by Conversion::angstrom2meter(), Conversion::hpa2bar(), Conversion::hz2ghz(), Conversion::kaycm_per_cmsquared2hz_per_msquared(), Conversion::pa2bar(), and Conversion::pa2hpa().
|
inlineconstexpr |
Global constant, the radius of the Earth [m].
Definition at line 285 of file arts_constants.h.
|
inlineconstexpr |
Mass of resting electron [kg].
Definition at line 202 of file arts_constants.h.
|
inlineconstexpr |
Elementary charge [C] From: https://en.wikipedia.org/wiki/2019_redefinition_of_SI_base_units Date: 2019-04-01.
Definition at line 140 of file arts_constants.h.
|
inlineconstexpr |
Vacuum permittivity convenience name [F/m].
Definition at line 199 of file arts_constants.h.
|
inlineconstexpr |
Euler's number.
Definition at line 75 of file arts_constants.h.
|
inlineconstexpr |
Fine structure constant [-] From: https://physics.nist.gov/cgi-bin/cuu/Value?alph Date: 2019-06-18 Reported error: (11)
Definition at line 174 of file arts_constants.h.
|
inlineconstexpr |
Planck constant convenience name [J s].
Definition at line 128 of file arts_constants.h.
Referenced by lm_hitran_2017::compabs(), lm_hitran_2017::convtp(), createBij(), dabsorption_nlte_rate_dF0(), dabsorption_nlte_rate_dT(), LineShape::SimpleFrequencyScaling::dNdf(), LineShape::SimpleFrequencyScaling::dNdF0(), LineShape::SimpleFrequencyScaling::dNdT(), dplanck_df(), dplanck_dt(), dstimulated_relative_emission_dF0(), dstimulated_relative_emission_dT(), Absorption::LineMixing::ecs_absorption_impl(), Absorption::LineMixing::eigenvalue_adaptation_of_relmat(), Absorption::Lines::F_mean(), lm_hitran_2017::hitran_lm_eigenvalue_approximation(), Conversion::hz2joule(), Conversion::joule2hz(), Conversion::joule2kaycm(), Conversion::kaycm2joule(), Absorption::LineMixing::SpeciesErrorCorrectedSuddenData::Omega(), LineShape::SimpleFrequencyScaling::operator()(), planck(), Absorption::LineMixing::PopulationAndDipole::PopulationAndDipole(), and Zeeman::Model::Splitting().
|
inlineconstexpr |
Reduced planck constant convenience name [J s].
Definition at line 134 of file arts_constants.h.
Referenced by Absorption::LineMixing::SpeciesErrorCorrectedSuddenData::Omega().
Ideal gas constant [J/mol K].
Definition at line 243 of file arts_constants.h.
|
inlineconstexpr |
Inverse of Euler's number.
Definition at line 78 of file arts_constants.h.
|
inlineconstexpr |
Inverse of the natural logarithm of 2.
Definition at line 96 of file arts_constants.h.
|
inlineconstexpr |
Inverse of pi.
Definition at line 60 of file arts_constants.h.
Referenced by lm_hitran_2017::compabs(), and LineShape::Lorentz::operator()().
|
inlineconstexpr |
Inverse of the square root of 2.
Definition at line 90 of file arts_constants.h.
Referenced by dtransmat4(), and transmat4().
|
inlineconstexpr |
Inverse of the square root of the natural logarithm of 2.
Definition at line 103 of file arts_constants.h.
|
inlineconstexpr |
Inverse of the square root of pi.
Definition at line 72 of file arts_constants.h.
|
inlineconstexpr |
Inverse of two pi.
Definition at line 66 of file arts_constants.h.
Referenced by Conversion::angcm2freq(), Conversion::angfreq2freq(), and Conversion::freq2angcm().
|
inlineconstexpr |
Boltzmann constant convenience name [J/K].
Definition at line 152 of file arts_constants.h.
Referenced by boltzman_factor(), boltzman_ratio(), lm_hitran_2017::compabs(), lm_hitran_2017::convtp(), dabsorption_nlte_rate_dF0(), dabsorption_nlte_rate_dT(), dabsorption_nlte_rate_dTl(), dabsorption_nlte_rate_dTu(), dboltzman_ratio_dT(), dboltzman_ratio_dT_div_boltzmann_ratio(), LineShape::SimpleFrequencyScaling::dNdf(), LineShape::SimpleFrequencyScaling::dNdF0(), LineShape::SimpleFrequencyScaling::dNdT(), dnumber_density_dt(), dplanck_df(), dplanck_dt(), dstimulated_relative_emission_dF0(), dstimulated_relative_emission_dT(), Absorption::LineMixing::ecs_absorption_impl(), Absorption::LineMixing::eigenvalue_adaptation_of_relmat(), Absorption::Lines::F_mean(), lm_hitran_2017::hitran_lm_eigenvalue_approximation(), Conversion::kelvin2joule(), nlte_collision_factorsCalcFromCoeffs(), number_density(), Absorption::LineMixing::SpeciesErrorCorrectedSuddenData::Omega(), LineShape::SimpleFrequencyScaling::operator()(), planck(), Absorption::LineMixing::PopulationAndDipole::PopulationAndDipole(), and Absorption::LineMixing::SpeciesErrorCorrectedSuddenData::Q().
|
inlineconstexpr |
Luminous efficacy of monochromatic 540 THz radiation [lm / W] From: https://en.wikipedia.org/wiki/2019_redefinition_of_SI_base_units Date: 2019-04-01.
Definition at line 167 of file arts_constants.h.
|
inlineconstexpr |
Natural logarithm of 10.
Definition at line 84 of file arts_constants.h.
|
inlineconstexpr |
Natural logarithm of 2.
Definition at line 93 of file arts_constants.h.
|
inlineconstexpr |
Ten's logarithm of Euler's number.
Definition at line 81 of file arts_constants.h.
|
inlineconstexpr |
Mass of resting electron convenience name [kg].
Definition at line 205 of file arts_constants.h.
|
inlineconstexpr |
Unified atomic mass unit convenience name [kg].
Definition at line 215 of file arts_constants.h.
Referenced by Absorption::LineMixing::SpeciesErrorCorrectedSuddenData::Omega().
|
inlineconstexpr |
Magnetic constant [H/m].
Definition at line 190 of file arts_constants.h.
|
inlineconstexpr |
Mass ratio of electrons to protons [-] From: https://physics.nist.gov/cgi-bin/cuu/Value?mnsme Date: 2020-01-08 Reported error: (89)
Definition at line 233 of file arts_constants.h.
|
inlineconstexpr |
Mass ratio of electrons to protons [-] From: https://physics.nist.gov/cgi-bin/cuu/Value?mpsme Date: 2020-01-08 Reported error: (11)
Definition at line 222 of file arts_constants.h.
Referenced by Zeeman::GetAdvancedModel().
|
inlineconstexpr |
Magnetic constant convenience name [H/m].
Definition at line 193 of file arts_constants.h.
|
inlineconstexpr |
Avogadro constant convenience name [1/mol].
Definition at line 161 of file arts_constants.h.
|
inlineconstexpr |
Mass of a neutron [kg].
Definition at line 236 of file arts_constants.h.
|
inlineconstexpr |
One degree in radians.
Definition at line 252 of file arts_constants.h.
Referenced by Conversion::deg2rad(), and Conversion::rad2deg().
|
inlineconstexpr |
The following mathematical constants are generated in python Decimal package by the code:
import decimal as d d.getcontext().prec = 76 two = d.Decimal('2') print('sqrt_ln_2 =', two.ln().sqrt()) print('inv_sqrt_ln_2 =', 1/two.ln().sqrt())
To improve the numerical accuracy further, insert larger pi string Pi, related to circles
Definition at line 57 of file arts_constants.h.
Referenced by calc_rayleighPhaMat(), calcSingleScatteringDataProperties(), lm_hitran_2017::compabs(), integrate_phamat_theta0_phi10(), integrate_phamat_theta0_phi_alpha6(), Absorption::LineMixing::SpeciesErrorCorrectedSuddenData::Omega(), LineShape::Lorentz::operator()(), pha_mat_labCalc(), lm_hitran_2017::qsdv(), lm_hitran_2017::qsdv_si(), Legendre::schmidt(), and ze_cfac().
|
inlineconstexpr |
Planck constant [J s] From: https://en.wikipedia.org/wiki/2019_redefinition_of_SI_base_units Date: 2019-04-01.
Definition at line 125 of file arts_constants.h.
Referenced by setCji().
|
inlineconstexpr |
Mass of a proton [kg].
Definition at line 225 of file arts_constants.h.
|
inlineconstexpr |
Ideal gas constant convenience name [J/mol K].
Definition at line 246 of file arts_constants.h.
|
inlineconstexpr |
Rydberg constant convenience name [1/m].
Definition at line 187 of file arts_constants.h.
|
inlineconstexpr |
Reduced planck constant [J s].
Definition at line 131 of file arts_constants.h.
|
inlineconstexpr |
Rydberg constant [1/m] From: https://physics.nist.gov/cgi-bin/cuu/Value?ryd Date: 2016-06-18 Reported error: (21)
Definition at line 184 of file arts_constants.h.
|
inlineconstexpr |
Stefan-Boltzmann constant convenience name [W/(K^4*m^2)].
Definition at line 259 of file arts_constants.h.
|
inlineconstexpr |
Speed of light [m/s] From: https://en.wikipedia.org/wiki/2019_redefinition_of_SI_base_units Date: 2019-04-01.
Definition at line 116 of file arts_constants.h.
Referenced by calcSingleScatteringDataProperties().
|
inlineconstexpr |
Square root of 2.
Definition at line 87 of file arts_constants.h.
|
inlineconstexpr |
Square root of natural logarithm of 2.
Definition at line 99 of file arts_constants.h.
Referenced by lm_hitran_2017::compabs(), Absorption::LineMixing::ecs_absorption_impl(), lm_hitran_2017::qsdv(), and lm_hitran_2017::qsdv_si().
|
inlineconstexpr |
Square root of pi.
Definition at line 69 of file arts_constants.h.
Referenced by lm_hitran_2017::compabs(), Absorption::LineMixing::ecs_absorption_impl(), lm_hitran_2017::qsdv(), and lm_hitran_2017::qsdv_si().
|
inlineconstexpr |
Stefan-Boltzmann constant [W/(K^4*m^2)].
Definition at line 255 of file arts_constants.h.
|
inlineconstexpr |
Global constant, Temperature in Celsius of 0 Kelvin.
Definition at line 291 of file arts_constants.h.
|
inlineconstexpr |
Two times pi.
Definition at line 63 of file arts_constants.h.
Referenced by Conversion::freq2angfreq(), jacobianCalcSinefit(), and pha_mat_labCalc().
|
inlineconstexpr |
Unified atomic mass unit [kg] From: https://physics.nist.gov/cgi-bin/cuu/Value?ukg Date: 2020-02-18 Reported error: (50)
Definition at line 212 of file arts_constants.h.
|
inlineconstexpr |
Vacuum permittivity [F/m].
Definition at line 196 of file arts_constants.h.