tardis.plasma.equilibrium.level_populations module

class tardis.plasma.equilibrium.level_populations.LevelPopulationSolver(rates_matrices: DataFrame, levels: DataFrame)[source]

Bases: object

Solve the normalized level population values from the rate matrices.

Parameters:
rates_matricespd.DataFrame

DataFrame of rate matrices indexed by atomic number and ion number, with each column being a cell.

levelspd.DataFrame

DataFrame of energy levels.

solve()[source]

Solves the normalized level population values from the rate matrices.

Returns:
pd.DataFrame

Normalized level population values indexed by atomic number, ion number and level number. Columns are cells.