LTE Plasma¶
The LTEPlasma
plasma class is the child of BasePlasma
but is the first class that actually calculates plasma conditions.
After running exactly through the same steps as BasePlasma
, LTEPlasma
will start calculating the partition functions.
where Z is the partition function, g is the degeneracy factor, E the energy of the level and T the temperature of the radiation field.
The next step is to calculate the ionization balance using the Saha ionization equation.
and then calculating the Number density of the ions (and an electron number density) in a second step.
First \(g_e=\left(\frac{2 \pi m_e k_\textrm{B}T_\textrm{rad}}{h^2}\right)^{3/2}\) is calculated (in LTEPlasma.update_t_rad
),
followed by calculating the ion fractions (LTEPlasma.calculate_saha
).
In the second step (LTEPlasma.calculate_ionization_balance
), we calculate in an iterative process the electron density and the number density for each ion species.
Initially, we set the electron density (\(N_e\)) to the sum of all atom number densities. After having calculated the ion species number densities, we recalculate the electron density by weighting the ion species number densities with their ion number (e.g. neutral ion number densities don’t contribute at all to the electron number density, once ionized contribute with a factor of 1, twice ionized contribute with a factor of two, ….).
Finally, we calculate the level populations (LTEPlasma.calculate_level_populations
) by using the calculated ion species number densities:
This concludes the calculation of the plasma. In the code, the next step is calculating the \(\tau_\textrm{Sobolev}\) using the quantities calculated here.