jaxrts.saha.saha_equation

jaxrts.saha.saha_equation(gi: float, gj: float, T_e: Quantity, energy_diff: Quantity) Quantity[source]

Calculate the Saha equation for a given set of statistical weights, temperatures and energy-differences.

Returns the value n_j / n_i * n_e

\[\frac{n_{i+1}n_e}{n_i} = 2\frac{g_j}{g_i} \frac{\left(2\pi m_e k_B T_e\right)^{1.5}}{h^3} \exp\left({\frac{-\Delta E}{k_B T_e}}\right)\]
Parameters:
  • gi (float) – The statistical weight of the lower-energy state.

  • gj (float) – The statistical weight of the upper-energy state, often g_{i+1}.

  • T_e (Quantity) – The electron temperature.

  • energy_diff – The difference in energy levels.

Returns:

n_j / n_i * n_e (Quantity) – The ratio of the population of the two states, multiplied with the free-electron density.