boltzmann_level

typhon.spectroscopy.boltzmann_level(elow, t, t0)[source]

Computes the Boltzmann level function

\[K_1 = \exp\left(\frac{E_l \left[T-T_0\right]}{k_B T T_0}\right),\]

where \(k_B\) is the Boltzmann constant.

All ndarrays must be of same size, any of the inputs can be ndarray

Parameters:
  • elow (float or ndarray) – Lower state energy level [J]
  • t (float or ndarray) – Temperature [Kelvin]
  • t0 (float or ndarray) – Line temperature [Kelvin]
Returns
K1 (like input): How much Boltzmann statistics feeds the transition
\[S(T) = S(T_0)K_1K_2 \frac{Q(T_0)}{Q(T)}\]