Constants
The Constants module of Jems defines a common set of physical and mathematical constants for use across the package. Currently not all constants are exported, so some of them need to be accesed by using the module name (e.g. Const.FINE).
Jems.Constants.AMUJems.Constants.AUJems.Constants.AVOJems.Constants.CGASJems.Constants.CGRAVJems.Constants.CLIGHTJems.Constants.CRADJems.Constants.DAYYEARJems.Constants.EV_TO_ERGJems.Constants.FINEJems.Constants.G_TIMES_MEARTHJems.Constants.G_TIMES_MJUPITERJems.Constants.G_TIMES_MSUNJems.Constants.HBARJems.Constants.K_BOLTZJems.Constants.LSUNJems.Constants.LYJems.Constants.MEJems.Constants.MEARTHJems.Constants.MEV_TO_ERGSJems.Constants.MJUPITERJems.Constants.MNJems.Constants.MPJems.Constants.MSUNJems.Constants.PLANCK_HJems.Constants.QEJems.Constants.RBOHRJems.Constants.RSUNJems.Constants.SECYEARJems.Constants.SIGMA_SB
Jems.Constants.AMU — Constant
AMU = 1.6605390666e-24Atomic mass unit in units of $\mathrm{g}$
Source: CODATA 2018
Has a relative uncertainty of $3\times10^{-10}$
Jems.Constants.AU — Constant
AU = 1.49597870700e13Astronomical unit in $\mathrm{cm}$.
Jems.Constants.AVO — Constant
AVO = 6.02214076e23Avogadro's constant in units of $\mathrm{mol}^{-1}$.
Source CODATA 2018
Exact constant
Jems.Constants.CGAS — Constant
CGAS = K_BOLTZ * AVO = 8.31446261815324e7Ideal gas constant in units of $\mathrm{erg}~\mathrm{K}^{-1}~\mathrm{mol}^{-1}$
Exact constant
Jems.Constants.CGRAV — Constant
CGRAV = 6.67430e-8Gravitational constant in units of $\mathrm{g}^{-1}~\mathrm{cm}^{3}~\mathrm{s}^{-2}$
Source: CODATA 2018
Has a relative uncertainty of $2.2\times10^{-5}$
Jems.Constants.CLIGHT — Constant
CLIGHT = 2.99792458e10Speed of light in units of $\mathrm{cm}~\mathrm{s}^{-1}$.
Source CODATA 2018
Exact constant
Jems.Constants.CRAD — Constant
CRAD = SIGMA_SB * 4 / CLIGHT = 7.565733250280006e-15Radiation density constant in units of $\mathrm{erg}~\mathrm{cm}^{-3}\mathrm{K}^{-4}$
Jems.Constants.DAYYEAR — Constant
DAYYEAR = 365.25e0Number of days in a year
Jems.Constants.EV_TO_ERG — Constant
Jems.Constants.FINE — Constant
FINE = QE^2 / (HBAR * CLIGHT) = 0.007297352565305213Fine structure constant
Jems.Constants.G_TIMES_MEARTH — Constant
G_TIMES_MEARTH = 3.986004e20Product of the gravitational constant times the mass of the Earth. In units of $\mathrm{cm}^3~\mathrm{s}^{-2}$.
Taken from the "IAU 2015 Resolution B3 on Recommended Nominal Conversion Constants for Selected Solar and Planetary Properties".
Jems.Constants.G_TIMES_MJUPITER — Constant
G_TIMES_MJUPITER = 1.2668653e23Product of the gravitational constant times the mass of Jupiter. In units of $\mathrm{cm}^3~\mathrm{s}^{-2}$.
Taken from the "IAU 2015 Resolution B3 on Recommended Nominal Conversion Constants for Selected Solar and Planetary Properties".
Jems.Constants.G_TIMES_MSUN — Constant
G_TIMES_MSUN = 1.3271244e26Product of the gravitational constant times the mass of the Sun. In units of $\mathrm{cm}^3~\mathrm{s}^{-2}$.
Taken from the "IAU 2015 Resolution B3 on Recommended Nominal Conversion Constants for Selected Solar and Planetary Properties".
Jems.Constants.HBAR — Constant
HBAR = PLANCK_H / (2 * pi) = 1.0545718176461565e-27Reduced Planck constant in units of $\mathrm{erg}~\mathrm{s}$
Source: CODATA 2018
Exact constant
Jems.Constants.K_BOLTZ — Constant
K_BOLTZ = 1.380649e-16Boltzmann constant in units of $\mathrm{erg}^{-1}~\mathrm{K}^{-1}$.
Source CODATA 2018
Exact constant
Jems.Constants.LSUN — Constant
LSUN = 3.828e33Solar luminosity in $\mathrm{erg}~\mathrm{s}^{-1}$.
Taken from the "IAU 2015 Resolution B3 on Recommended Nominal Conversion Constants for Selected Solar and Planetary Properties".
Jems.Constants.LY — Constant
LY = CLIGHT*SECYEAR = 9.4607304725808e17Lightyear in units of $\mathrm{cm}$
Jems.Constants.ME — Constant
ME = 9.1093837015e-28Electron mass in units of $\mathrm{g}$
Source: CODATA 2018
Has a relative uncertainty of $3.0\times10^{-10}$
Jems.Constants.MEARTH — Constant
MEARTH = G_TIMES_MEARTH/CGRAV = 5.972167867791379e27Mass of the Earth in $\mathrm{g}$ computed from the product GM.
Jems.Constants.MEV_TO_ERGS — Constant
MEV_TO_ERG = 1e6 * EV_TO_ERG = 1.602176634e-6Energy of $1~\mathrm{MeV}$ in $\mathrm{erg}$
Jems.Constants.MJUPITER — Constant
MJUPITER = G_TIMES_MJUPITER/CGRAV = 1.89812459733605e30Mass of Jupiter in $\mathrm{g}$ computed from the product GM.
Jems.Constants.MN — Constant
MN = 1.6749274980e-24Neutron mass in units of $\mathrm{g}$
Source: CODATA 2018
Has a relative uncertainty of $5.7\times10^{-10}$
Jems.Constants.MP — Constant
MP = 1.67262192369e-24Neutron mass in units of $\mathrm{g}$
Source: CODATA 2018
Has a relative uncertainty of $3.1\times10^{-10}$
Jems.Constants.MSUN — Constant
MSUN = G_TIMES_MSUN/CGRAV = 1.9884098706980504e33Mass of the Sun in $\mathrm{g}$ computed from the product GM.
Jems.Constants.PLANCK_H — Constant
PLANCK_H = 6.62607015e-27Planck constant in units of $\mathrm{erg}~\mathrm{s}$
Source: CODATA 2018
Exact constant
Jems.Constants.QE — Constant
QE = (CLIGHT/10)*1.602176634e-19 = 4.803204712570263e-10Electron charge in esu==(g cm^3 s^-2)^(1/2) converted from the electron charge in Coulomb.
Source CODATA 2018
Exact constant
Jems.Constants.RBOHR — Constant
RBOHR = HBAR^2 / (ME * QE^2) = 5.291772111941798e-9Bohr radius in units of $\mathrm{cm}$
Jems.Constants.RSUN — Constant
RSUN = 6.957e10Solar radius in $\mathrm{cm}$.
Taken from the "IAU 2015 Resolution B3 on Recommended Nominal Conversion Constants for Selected Solar and Planetary Properties".
Jems.Constants.SECYEAR — Constant
SECYEAR = DAYYEAR * 24 * 3600 = 3.15576e7Number of seconds in a year.
Jems.Constants.SIGMA_SB — Constant
SIGMA_SB = (2*π^5*K_BOLTZ^4)/(15*CLIGHT^2*PLANCK_H^3) = 5.67037441918443e-5Stefan-Boltzmann constant in units of $\mathrm{erg}~\mathrm{cm}^{-2}\mathrm{K}^{-4}\mathrm{s}^{-1}$