LTELib API

description here.

Boltzmann_distribution(_gi, _gj, _Eji, _Te)

calculate the population ratio between upper level j and lower level i under LTE.

Saha_distribution(_gi, _gk, _chi, _ne, _Te)

calculate the population ratio between the ground states of two subsequent ionization stage under LTE.

get_LTE_ratio(_erg, _g, _stage, _Te, _Ne)

Compute LTE population ratio relative to 1st level.

EinsteinA_to_EinsteinBs_hz(Aji, f0, gi, gj)

given Einstein A coefficient Aij, calculate Einstein B coefficients Bij and Bji.

EinsteinA_to_EinsteinBs_cm(Aji, w0, gi, gj)

given Einstein A coefficient Aij, calculate Einstein B coefficients Bij and Bji.

Planck_hz

given frequency and temperature, calculate the frequency based planck function.

Planck_cm

given wavelength and temperature, calculate the wavelength based planck function.

Ufunc(elm, T)

partition function of neutral hydrogen