tardis.plasma.equilibrium.rates.collisional_rates module

class tardis.plasma.equilibrium.rates.collisional_rates.ThermalCollisionalRateSolver(levels: DataFrame, radiative_transitions: DataFrame, thermal_collisional_strengths_temperatures: ArrayLike, thermal_collisional_strengths: DataFrame, collision_strengths_type: str, collisional_strength_approximation: str = 'regemorter')[source]

Bases: object

Solve thermal electron-collision bound-bound rate coefficients.

Initialize thermal collisional rates for the supplied levels.

Collision strengths whose lower or upper level is absent from levels are dropped, because their energies and statistical weights are undefined.

Parameters:
levelspandas.DataFrame

Level energies and statistical weights.

radiative_transitionspandas.DataFrame

Radiative line data.

thermal_collisional_strengths_temperaturesarray-like

Temperatures of the tabulated collision strengths [K].

thermal_collisional_strengthspandas.DataFrame

Tabulated collision strengths indexed by transition.

collision_strengths_typestr

Collision-strength format, "cmfgen" or "chianti".

collisional_strength_approximationstr, optional

Approximation for transitions without collision strengths.

calculate_collision_strengths(temperatures_electron)[source]

Calculate collision strengths based on the provided electron temperatures.

Parameters:
temperatures_electronarray-like

Array-like of electron temperatures.

Returns:
pandas.DataFrame

DataFrame containing the calculated collision strengths.

solve(temperatures_electron)[source]