tardis.plasma.equilibrium.rate_matrix module¶
- class tardis.plasma.equilibrium.rate_matrix.RateMatrix(rate_solvers: list, levels: DataFrame)[source]¶
Bases:
object
Constructs the rate matrix from an arbitrary number of rate solvers.
- Parameters:
- rate_solverslist
List of rate solver objects.
- levelspd.DataFrame
DataFrame of energy levels.
- solve(radiation_field, thermal_electron_energy_distribution)[source]¶
Construct the compiled rate matrix dataframe.
- Parameters:
- radiation_fieldRadiationField
Radiation field containing radiative temperature.
- thermal_electron_energy_distributionThermalElectronEnergyDistribution
Distribution of electrons in the plasma, containing electron energies, temperatures and number densities.
- Returns:
- pd.DataFrame
A DataFrame of rate matrices indexed by atomic number and ion number, with each column being a cell.