solprop.constants#

Physical constants in SI units.

Thin, named wrappers over scipy.constants (CODATA) so that the rest of the package never spells a constant by hand. All values are SI (m, s, kg, J, W, V/m, Pa, K) as fixed in docs/dev/conventions.md; the two non-SI pressure units are provided as conversion factors because the user interface accepts pressures in bar.

Module Attributes

C

Speed of light in vacuum, m/s.

EPS0

Vacuum permittivity, F/m.

MU0

Vacuum permeability, H/m.

HBAR

Reduced Planck constant, J·s.

PLANCK

Planck constant, J·s.

E_CHARGE

Elementary charge, C.

M_E

Electron mass, kg.

CHARGE_MASS_RATIO

e^2 / m_e in C^2/kg, the constant of the plasma's free-electron current.

K_B

Boltzmann constant, J/K.

N_A

Avogadro constant, 1/mol.

FINE_STRUCTURE

Fine-structure constant, dimensionless.

BOHR_RADIUS

Bohr radius, m.

AU_ENERGY

Atomic unit of energy (Hartree), J.

AU_EFIELD

Atomic unit of electric field, V/m.

AU_POLARISABILITY

Atomic unit of electric polarisability, C^2 m^2 / J.

AU_TIME

Atomic unit of time, s.

BAR

One bar in pascal.

STD_ATMOSPHERE

One standard atmosphere in pascal.

ATOMIC_MASS

Atomic mass constant (unified atomic mass unit), kg.

AMAGAT

Loschmidt constant, m^-3.

ROOM_TEMPERATURE

The package-wide default temperature, K (docs/dev/conventions.md section 1).

solprop.constants.AMAGAT: float = 2.686780111798444e+25#

Loschmidt constant, m^-3.

The ideal-gas number density at 1 atm and 0 degrees Celsius.

The amagat is this quantity used as a unit; the Raman linewidth coefficients are tabulated in it. Exact in the SI since 2019, because the atmosphere, the Boltzmann constant and the temperature are all exact here.

solprop.constants.ATOMIC_MASS: float = 1.66053906892e-27#

Atomic mass constant (unified atomic mass unit), kg.

solprop.constants.AU_EFIELD: float = 514220675112.0#

Atomic unit of electric field, V/m.

solprop.constants.AU_ENERGY: float = 4.359744722206e-18#

Atomic unit of energy (Hartree), J.

solprop.constants.AU_POLARISABILITY: float = 1.64877727212e-41#

Atomic unit of electric polarisability, C^2 m^2 / J.

The SI polarisability, not the volume polarisability: a static field E shifts a level by -alpha E^2 / 2, so the unit is an energy divided by a field squared. Equal to e^2 a_0^2 / E_h.

solprop.constants.AU_TIME: float = 2.4188843265864e-17#

Atomic unit of time, s.

solprop.constants.BAR: float = 100000.0#

One bar in pascal.

solprop.constants.BOHR_RADIUS: float = 5.29177210544e-11#

Bohr radius, m.

solprop.constants.C: float = 299792458.0#

Speed of light in vacuum, m/s.

solprop.constants.CHARGE_MASS_RATIO: float = 2.8179403208349128e-08#

e^2 / m_e in C^2/kg, the constant of the plasma’s free-electron current.

The one derived constant here, rather than a CODATA value: the plasma response and the compiled plasma coefficients both need it, and the physics layer and the translation layer may not import each other.

solprop.constants.EPS0: float = 8.8541878188e-12#

Vacuum permittivity, F/m.

solprop.constants.E_CHARGE: float = 1.602176634e-19#

Elementary charge, C.

solprop.constants.FINE_STRUCTURE: float = 0.0072973525643#

Fine-structure constant, dimensionless.

solprop.constants.HBAR: float = 1.0545718176461565e-34#

Reduced Planck constant, J·s.

solprop.constants.K_B: float = 1.380649e-23#

Boltzmann constant, J/K.

solprop.constants.MU0: float = 1.25663706127e-06#

Vacuum permeability, H/m.

solprop.constants.M_E: float = 9.1093837139e-31#

Electron mass, kg.

solprop.constants.N_A: float = 6.02214076e+23#

Avogadro constant, 1/mol.

solprop.constants.PLANCK: float = 6.62607015e-34#

Planck constant, J·s.

solprop.constants.ROOM_TEMPERATURE: float = 293.15#

The package-wide default temperature, K (docs/dev/conventions.md section 1).

20 °C, the usual laboratory reference and Luna’s room temperature (roomtemp). Not a physical constant but a modelling default, kept here so that every module which needs one spells it the same way.

solprop.constants.STD_ATMOSPHERE: float = 101325.0#

One standard atmosphere in pascal.