wsssss.constants package
Submodules
wsssss.constants.post15140 module
Numerical constants used by MESA in $MESA_DIR/const/public/const_def.f90. This file is generated by wsssss/dev/create_const_files.py.
- wsssss.constants.post15140.version = 'r24.03.1'
MESA version used to generate this file.
- wsssss.constants.post15140.max_extra_inlists = 5
number of inlists an inlist can depend on
- wsssss.constants.post15140.pi = 3.141592653589793
pi = 3.1415926535897932384626433832795028841971693993751E0
- wsssss.constants.post15140.pi2 = 9.869604401089358
pi2 = pi * pi
- wsssss.constants.post15140.pi4 = 12.566370614359172
pi4 = 4*pi
- wsssss.constants.post15140.eulercon = 0.5772156649015329
eulercon = 0.577215664901532861E0
- wsssss.constants.post15140.eulernum = 2.718281828459045
eulernum = 2.71828182845904523536028747135266249E0
- wsssss.constants.post15140.ln2 = 0.6931471805599453
log(2d0)
- wsssss.constants.post15140.ln3 = 1.0986122886681096
log(3d0)
- wsssss.constants.post15140.lnpi = 1.1447298858494002
log(pi)
- wsssss.constants.post15140.ln10 = 2.3025850929940455
log(10d0)
- wsssss.constants.post15140.iln10 = 0.43429448190325187
1d0/log(10d0)
- wsssss.constants.post15140.a2rad = 0.017453292519943295
angle to radians
- wsssss.constants.post15140.rad2a = 57.29577951308232
radians to angle
- wsssss.constants.post15140.one_third = 0.3333333333333333
one_third = 1E0/3E0
- wsssss.constants.post15140.two_thirds = 0.6666666666666666
two_thirds = 2E0/3E0
- wsssss.constants.post15140.four_thirds = 1.3333333333333333
four_thirds = 4E0/3E0
- wsssss.constants.post15140.five_thirds = 1.6666666666666667
five_thirds = 5E0/3E0
- wsssss.constants.post15140.one_sixth = 0.16666666666666666
one_sixth = 1E0/6E0
- wsssss.constants.post15140.four_thirds_pi = 4.1887902047863905
four_thirds_pi = four_thirds*pi
- wsssss.constants.post15140.ln4pi3 = 1.432411958301181
log(4*pi/3)
- wsssss.constants.post15140.two_13 = 1.259921049894873
pow(2d0,1d0/3d0)
- wsssss.constants.post15140.four_13 = 1.5874010519681994
pow(4d0,1d0/3d0)
- wsssss.constants.post15140.sqrt2 = 1.414213562373095
sqrt(2)
- wsssss.constants.post15140.sqrt_2_div_3 = 0.816496580927726
sqrt(2/3)
- wsssss.constants.post15140.avo = 6.02214076e+23
Avogadro constant (mole^-1)
- wsssss.constants.post15140.amu = 1.6605390671738466e-24
atomic mass unit (g)
- wsssss.constants.post15140.clight = 29979245800.0
speed of light in vacuum (cm s^-1)
- wsssss.constants.post15140.qe = 4.803204712570263e-10
elementary charge (esu # (g cm^3 s^-2)^(1/2))
- wsssss.constants.post15140.kerg = 1.380649e-16
kerg = 1.380649E-16
- wsssss.constants.post15140.boltzm = 1.380649e-16
Boltzmann constant (erg K^-1)
- wsssss.constants.post15140.planck_h = 6.62607015e-27
Planck constant (erg s)
- wsssss.constants.post15140.hbar = 1.0545718176461565e-27
hbar = planck_h / (2*pi)
- wsssss.constants.post15140.cgas = 83144626.1815324
ideal gas constant (erg K^-1)
- wsssss.constants.post15140.ev2erg = 1.602176634e-12
electron volt (erg)
- wsssss.constants.post15140.mev_to_ergs = 1.602176634e-06
mev_to_ergs = 1E6*ev2erg
- wsssss.constants.post15140.mev_amu = 9.648533212331003e+17
mev_amu = mev_to_ergs/amu
- wsssss.constants.post15140.mev2gr = 1.7826619216278976e-27
MeV to grams
- wsssss.constants.post15140.qconv = 9.648533212331002e+17
qconv = mev_to_ergs*avo
- wsssss.constants.post15140.kev = 8.617333262145177e-05
converts temp to ev (ev K^-1)
- wsssss.constants.post15140.boltz_sigma = 5.670374419184426e-05
Stefan-Boltzmann constant (erg cm^-2 K^-4 s^-1)
- wsssss.constants.post15140.crad = 7.56573325028e-15
radiation density constant, AKA ‘a’ (erg cm^-3 K^-4)# Prad # crad * T^4 / 3
- wsssss.constants.post15140.au = 14959787070000.0
exact value defined by IAU 2009, 2012 (cm)
- wsssss.constants.post15140.pc = 3.0856775814913674e+18
parsec, by definition (cm)
- wsssss.constants.post15140.dayyer = 365.25
days per (Julian) year
- wsssss.constants.post15140.secday = 86400
seconds in a day
- wsssss.constants.post15140.secyer = 31557600.0
seconds per year
- wsssss.constants.post15140.ly = 9.4607304725808e+17
light year (cm)
- wsssss.constants.post15140.mn = 1.67492749804e-24
neutron mass (g)
- wsssss.constants.post15140.mp = 1.67262192369e-24
proton mass (g)
- wsssss.constants.post15140.me = 9.1093837015e-28
electron mass (g)
- wsssss.constants.post15140.rbohr = 5.29177210903e-09
Bohr radius (cm)
- wsssss.constants.post15140.fine = 0.0072973525693
fine-structure constant
- wsssss.constants.post15140.hion = 13.605693122994
Rydberg constant (eV)
- wsssss.constants.post15140.sige = 6.6524587321e-25
Thomson cross section (cm^2)
- wsssss.constants.post15140.weinberg_theta = 0.2229
sin**2(theta_weinberg)
- wsssss.constants.post15140.num_neu_fam = 3.0
number of neutrino flavors # 3.02 plus/minus 0.005 (1998)
- wsssss.constants.post15140.standard_cgrav = 6.6743e-08
gravitational constant (g^-1 cm^3 s^-2)
- wsssss.constants.post15140.mu_sun = 1.3271244e+26
mu_sun = 1.3271244E26
- wsssss.constants.post15140.mu_earth = 3.986004e+20
mu_earth = 3.986004E20
- wsssss.constants.post15140.mu_jupiter = 1.2668653e+23
mu_jupiter = 1.2668653E23
- wsssss.constants.post15140.agesun = 4570000000.0
solar age (years) from Bahcall et al, ApJ 618 (2005) 1049-1056.
- wsssss.constants.post15140.msun = 1.9884098706980504e+33
solar mass (g)# gravitational mass, not baryonic
- wsssss.constants.post15140.rsun = 69570000000.0
solar radius (cm), IAU 2015 Resolution B3
- wsssss.constants.post15140.lsun = 3.828e+33
solar luminosity (erg s^-1), IAU 2015 Resolution B3
- wsssss.constants.post15140.teffsun = 5772.0
solar effective temperature (K), IAU 2015 Resolution B3
- wsssss.constants.post15140.loggsun = 4.438067627303133
log10(mu_sun/(Rsun*Rsun)), can’t call log10 because we don’t have math_lib at this point
- wsssss.constants.post15140.mbolsun = 4.74
Bolometric magnitude of the Sun, IAU 2015 Resolution B2
- wsssss.constants.post15140.m_earth = 5.972167867791379e+27
earth mass (g)
- wsssss.constants.post15140.r_earth = 637810000.0
earth equatorial radius (cm)
- wsssss.constants.post15140.r_earth_polar = 635680000.0
earth polar radius (cm)
- wsssss.constants.post15140.m_jupiter = 1.89812459733605e+30
jupiter mass (g)
- wsssss.constants.post15140.r_jupiter = 7149200000.0
jupiter equatorial radius (cm)
- wsssss.constants.post15140.r_jupiter_polar = 6685400000.0
jupiter polar radius (cm)
- wsssss.constants.post15140.semimajor_axis_jupiter = 77857000000000.0
jupiter semimajor axis (cm)
- wsssss.constants.post15140.arg_not_provided = -9e+99
arg_not_provided = -9E99
- wsssss.constants.post15140.missing_value = -9e+99
missing_value = arg_not_provided
- wsssss.constants.post15140.crystallized = -1
crystallized = -1
- wsssss.constants.post15140.no_mixing = 0
no_mixing = 0
- wsssss.constants.post15140.convective_mixing = 1
convective_mixing = 1
- wsssss.constants.post15140.overshoot_mixing = 2
overshoot_mixing = 2
- wsssss.constants.post15140.semiconvective_mixing = 3
semiconvective_mixing = 3
- wsssss.constants.post15140.thermohaline_mixing = 4
thermohaline_mixing = 4
- wsssss.constants.post15140.rotation_mixing = 5
rotation_mixing = 5
- wsssss.constants.post15140.rayleigh_taylor_mixing = 6
rayleigh_taylor_mixing = 6
- wsssss.constants.post15140.minimum_mixing = 7
minimum_mixing = 7
- wsssss.constants.post15140.anonymous_mixing = 8
AKA ‘WTF_mixing’
- wsssss.constants.post15140.leftover_convective_mixing = 9
for regions with non-zero conv_vel that are not unstable to convection used for time dependent convection
- wsssss.constants.post15140.phase_separation_mixing = 10
phase_separation_mixing = 10
- wsssss.constants.post15140.number_of_mixing_types = 11
number_of_mixing_types = phase_separation_mixing+1
wsssss.constants.pre15140 module
Numerical constants used by MESA in $MESA_DIR/const/public/const_def.f90. This file is generated by wsssss/dev/create_const_files.py.
- wsssss.constants.pre15140.version = '11701'
MESA version used to generate this file.
- wsssss.constants.pre15140.pi = 3.141592653589793
pi = 3.1415926535897932384626433832795028841971693993751E0
- wsssss.constants.pre15140.pi4 = 12.566370614359172
pi4 = 4*pi
- wsssss.constants.pre15140.eulercon = 0.5772156649015329
eulercon = 0.577215664901532861E0
- wsssss.constants.pre15140.ln2 = 0.6931471805599453
log_cr(2d0)
- wsssss.constants.pre15140.ln3 = 1.0986122886681096
log_cr(3d0)
- wsssss.constants.pre15140.ln10 = 2.3025850929940455
log_cr(10d0)
- wsssss.constants.pre15140.a2rad = 0.017453292519943295
angle to radians
- wsssss.constants.pre15140.rad2a = 57.29577951308232
radians to angle
- wsssss.constants.pre15140.one_third = 0.3333333333333333
one_third = 1E0/3E0
- wsssss.constants.pre15140.two_thirds = 0.6666666666666666
two_thirds = 2E0/3E0
- wsssss.constants.pre15140.ln4pi3 = 1.432411958301181
log_cr(4*pi/3)
- wsssss.constants.pre15140.two_13 = 1.259921049894873
pow_cr(2d0,1d0/3d0)
- wsssss.constants.pre15140.four_13 = 1.5874010519681994
pow_cr(4d0,1d0/3d0)
- wsssss.constants.pre15140.sqrt2 = 1.414213562373095
sqrt(2)
- wsssss.constants.pre15140.standard_cgrav = 6.67428e-08
gravitational constant (g^-1 cm^3 s^-2)
- wsssss.constants.pre15140.planck_h = 6.62606896e-27
Planck’s constant (erg s)
- wsssss.constants.pre15140.hbar = 1.054571628251774e-27
hbar = planck_h / (2*pi)
- wsssss.constants.pre15140.qe = 4.8032044e-10
electron charge (esu # (g cm^3 s^-2)^(1/2))
- wsssss.constants.pre15140.avo = 6.02214179e+23
Avogadro’s constant (mole^-1)
- wsssss.constants.pre15140.clight = 29979245800.0
speed of light in vacuum (cm s^1)
- wsssss.constants.pre15140.kerg = 1.3806504e-16
Boltzmann’s constant (erg K^-1)
- wsssss.constants.pre15140.boltzm = 1.3806504e-16
boltzm = kerg
- wsssss.constants.pre15140.cgas = 83144724.71220216
R_gas# ideal gas constant# erg/K/mole
- wsssss.constants.pre15140.kev = 8.617385e-05
converts temp (kelvin) to ev (ev K^-1)
- wsssss.constants.pre15140.amu = 1.660538782e-24
atomic mass unit (g)
- wsssss.constants.pre15140.mn = 1.6749286e-24
neutron mass (g)
- wsssss.constants.pre15140.mp = 1.6726231e-24
proton mass (g)
- wsssss.constants.pre15140.me = 9.1093826e-28
electron mass (g) (was 9.1093897d-28)
- wsssss.constants.pre15140.rbohr = 5.291771539809704e-09
Bohr radius (cm)
- wsssss.constants.pre15140.fine = 0.007297352926107705
fine structure constant
- wsssss.constants.pre15140.hion = 13.60569814
hydrogen ionization energy (eV)
- wsssss.constants.pre15140.ev2erg = 1.602176487e-12
electron volt (erg)
- wsssss.constants.pre15140.mev_to_ergs = 1.602176487e-06
mev_to_ergs = 1E6*ev2erg
- wsssss.constants.pre15140.mev_amu = 9.648533984074092e+17
mev_amu = mev_to_ergs/amu
- wsssss.constants.pre15140.qconv = 9.648533977318092e+17
convert Q rates to erg/gm/sec
- wsssss.constants.pre15140.boltz_sigma = 5.6704e-05
boltzmann’s sigma # crad*clight/4 (erg cm^-2 K^-4 s^-1)
- wsssss.constants.pre15140.crad = 7.565767381646406e-15
radiation density constant, a (erg cm^-3 K^-4)# Prad crad * T^4 / 3
- wsssss.constants.pre15140.sige = 6.6524587158e-25
Thomson scattering electron cross section
- wsssss.constants.pre15140.ssol = 5.6704e-05
ssol = boltz_sigma
- wsssss.constants.pre15140.asol = 7.565767381646406e-15
asol = crad
- wsssss.constants.pre15140.weinlam = 0.2897768496231288
weinlam = planck_h*clight/(kerg * 4.965114232E0)
- wsssss.constants.pre15140.weinfre = 58789327745.35368
weinfre = 2.821439372E0*kerg/planck_h
- wsssss.constants.pre15140.rhonuc = 234200000000000.0
density of nucleus (g cm^3)
- wsssss.constants.pre15140.msol = 1.9892e+33
solar mass (g)
- wsssss.constants.pre15140.rsol = 69598000000.0
solar radius (cm)
- wsssss.constants.pre15140.lsol = 3.8418e+33
solar luminosity (erg s^-1)
- wsssss.constants.pre15140.agesol = 4570000000.0
solar age (years)
- wsssss.constants.pre15140.msun = 1.9892e+33
msun = msol
- wsssss.constants.pre15140.rsun = 69598000000.0
rsun = rsol
- wsssss.constants.pre15140.lsun = 3.8418e+33
lsun = lsol
- wsssss.constants.pre15140.msun33 = 1.9892
msun33 = msol*1E-33
- wsssss.constants.pre15140.rsun11 = 0.6959799999999999
rsun11 = rsol*1E-11
- wsssss.constants.pre15140.lsun33 = 3.8418
lsun33 = lsol*1E-33
- wsssss.constants.pre15140.teffsol = 5777.0
temperature (k)
- wsssss.constants.pre15140.loggsol = 4.437889353413126
log surface gravity # log(g/(cm s^-2))
- wsssss.constants.pre15140.teffsun = 5777.0
teffsun = teffsol
- wsssss.constants.pre15140.loggsun = 4.437889353413126
loggsun = loggsol
- wsssss.constants.pre15140.mbolsun = 4.74
Bolometric magnitude of the Sun
- wsssss.constants.pre15140.mbolsol = 4.74
mbolsol = mbolsun
- wsssss.constants.pre15140.ly = 9.460528e+17
light year (cm)
- wsssss.constants.pre15140.pc = 3.0856770322224e+18
parsec (cm)
- wsssss.constants.pre15140.secyer = 31558149.984
# seconds per year
- wsssss.constants.pre15140.dayyer = 365.25
# days per year
- wsssss.constants.pre15140.m_earth = 5.9764e+27
earth mass (g)
- wsssss.constants.pre15140.r_earth = 637000000.0
earth radius (cm)
- wsssss.constants.pre15140.au = 14959789210000.0
astronomical unit (cm)
- wsssss.constants.pre15140.m_jupiter = 1.8986e+30
jupiter mass (g)
- wsssss.constants.pre15140.r_jupiter = 6991100000.0
jupiter mean radius (cm)
- wsssss.constants.pre15140.semimajor_axis_jupiter = 77857000000000.0
jupiter semimajor axis (cm)
- wsssss.constants.pre15140.arg_not_provided = -9e+99
arg_not_provided = -9E99
- wsssss.constants.pre15140.missing_value = -9e+99
missing_value = arg_not_provided
- wsssss.constants.pre15140.no_mixing = 0
no_mixing = 0
- wsssss.constants.pre15140.convective_mixing = 1
convective_mixing = 1
- wsssss.constants.pre15140.softened_convective_mixing = 2
for modified D_mix near convective boundary
- wsssss.constants.pre15140.overshoot_mixing = 3
overshoot_mixing = 3
- wsssss.constants.pre15140.semiconvective_mixing = 4
semiconvective_mixing = 4
- wsssss.constants.pre15140.thermohaline_mixing = 5
thermohaline_mixing = 5
- wsssss.constants.pre15140.rotation_mixing = 6
rotation_mixing = 6
- wsssss.constants.pre15140.rayleigh_taylor_mixing = 7
rayleigh_taylor_mixing = 7
- wsssss.constants.pre15140.minimum_mixing = 8
minimum_mixing = 8
- wsssss.constants.pre15140.anonymous_mixing = 9
anonymous_mixing = 9