Constants API

src.Constants.AU_ = 14959787100000.0

astronomical unit, distance from the sun to our earth, [\(cm\)]

src.Constants.E_Rydberg_ = 2.1798741e-11

Rydberg constant of hydrogen atom, [\(erg\)]

src.Constants.J2erg_ = 10000000.0

unit conversion from J to erg, [\(erg/J\)]

src.Constants.K2eV_ = 8.617332400000001e-05

compute electron temperature in unit eV, [\(eV / K\)]

src.Constants.L_i2s = {0: 'S', 1: 'P', 2: 'D', 3: 'F', 4: 'G', 5: 'H', 6: 'I'}

a hash dictionary mapping integer value to its symbolic quantum number L

src.Constants.L_s2i = {'D': 2, 'F': 3, 'G': 4, 'H': 5, 'I': 6, 'P': 1, 'S': 0}

a hash dictionary mapping symbolic quantum number L to its integer value

src.Constants.R_sun_ = 69570000000.0

Solar radius, [\(cm\)]

src.Constants.a0_ = 5.2917720859000005e-09

Bohr radius, [\(cm\)]

src.Constants.alp_ = 0.0072973525205055605

fine structure constant, [\(-\)]

src.Constants.c_ = 29979246000.0

speed of light, [\(cm \cdot s^{-1}\)]

src.Constants.eV2AA_div_ = 12398.4176

unit conversion from eV to angstrom, [\(eV \cdot A\)]

src.Constants.eV2erg_ = 1.60217662e-12

unit conversion from eV to erg, [\(erg/eV\)]

src.Constants.e_ = 4.803204250000001e-10

eleceton charge, [\(esu\)]

src.Constants.h_ = 6.626068850000001e-27

Planck constant, [\(erg \cdot s\)]

src.Constants.isJIT = True

whether to turn on the JIT compilation in all *.py files, since sphinx does no understand numba thus can not generate documentation for numba jitted functions.

set to

True : before simulation; before pushing to github

False : before generating documentation using sphinx

src.Constants.k_ = 1.3806484999999998e-16

Boltzmann constant, [\(erg \cdot k^{-1}\)]

src.Constants.m2cm_ = 100.0

unit conversion from m to cm, [\(cm/m\)]

src.Constants.mH_ = 1.6599999999999997e-24

mass of hydrogen atom, [\(g\)]

src.Constants.me_ = 9.109383599999998e-28

mass of electron, [\(g\)]

src.Constants.micro2AA_ = 10000.0

unit conversion from micro to angstrom, [\(A / \mu m\)]

src.Constants.pi_ = 3.141592653589793

mathematical constant pi, [-]

src.Constants.saha_ = 4829366217494669.0

a constant factor in Saha’s equation, \(2(2 \pi m_e k /h^2)^{3/2}\), [\(g^{3/2} \cdot erg^{-3/2} \cdot k^{-3/2} \cdot s^{-3}\)]

src.Constants.sqrtPi_ = 1.7724538509055159

square root of pi, [-]