tardis.plasma.properties.level_population module

class tardis.plasma.properties.level_population.LevelNumberDensity(plasma_parent)[source]

Bases: tardis.plasma.properties.base.ProcessingPlasmaProperty

Calculates the level populations

Attributes
level_number_densityPandas DataFrame, dtype float

Index atom number, ion number, level number. Columns are zones.

calculate(level_boltzmann_factor, ion_number_density, levels, partition_function)

Calculate the level populations from the level_boltzmann_factor, ion_number_density and partition_function

latex_formula = ('N_{i,j}\\dfrac{bf_{i,j,k}}{Z_{i,j}}',)
latex_name = ('N_{i,j,k}',)
outputs = ('level_number_density',)
class tardis.plasma.properties.level_population.LevelNumberDensityHeNLTE(plasma_parent)[source]

Bases: tardis.plasma.properties.level_population.LevelNumberDensity

Attributes
level_number_densityPandas DataFrame, dtype float

Index atom number, ion number, level number. Columns are zones.

calculate(level_boltzmann_factor, ion_number_density, levels, partition_function, helium_population_updated)[source]

If one of the two helium NLTE methods is used, this updates the helium level populations to the appropriate values.