tardis.transport.montecarlo.estimators.estimators_continuum module

Continuum interaction estimators for Monte Carlo simulations.

This module contains estimators for continuum process tracking.

class tardis.transport.montecarlo.estimators.estimators_continuum.EstimatorsContinuum(*args, **kwargs)[source]

Bases: EstimatorsContinuum

Estimators for continuum interaction processes.

Attributes:
photo_ion_estimatornumpy.ndarray

Photoionization rate estimator.

stim_recomb_estimatornumpy.ndarray

Stimulated recombination rate estimator.

bf_heating_estimatornumpy.ndarray

Bound-free heating rate estimator.

stim_recomb_cooling_estimatornumpy.ndarray

Stimulated recombination cooling rate estimator.

ff_heating_estimatornumpy.ndarray

Free-free heating rate estimator.

photo_ion_estimator_statisticsnumpy.ndarray

Photoionization statistics counter.

Initialize EstimatorsContinuum with pre-allocated arrays.

Parameters:
photo_ion_estimator

Array for photoionization rates.

stim_recomb_estimator

Array for stimulated recombination rates.

bf_heating_estimator

Array for bound-free heating rates.

stim_recomb_cooling_estimator

Array for stimulated recombination cooling rates.

ff_heating_estimator

Array for free-free heating rates.

photo_ion_estimator_statistics

Array for photoionization statistics.

bf_heating_estimator: Array(float64, 2, 'A', False, aligned=True)
class_type = jitclass.EstimatorsContinuum#7fdbe026c2b0<photo_ion_estimator:array(float64, 2d, A),stim_recomb_estimator:array(float64, 2d, A),bf_heating_estimator:array(float64, 2d, A),stim_recomb_cooling_estimator:array(float64, 2d, A),ff_heating_estimator:array(float64, 1d, A),photo_ion_estimator_statistics:array(int64, 2d, A)>
ff_heating_estimator: Array(float64, 1, 'A', False, aligned=True)
photo_ion_estimator: Array(float64, 2, 'A', False, aligned=True)
photo_ion_estimator_statistics: Array(int64, 2, 'A', False, aligned=True)
stim_recomb_cooling_estimator: Array(float64, 2, 'A', False, aligned=True)
stim_recomb_estimator: Array(float64, 2, 'A', False, aligned=True)
tardis.transport.montecarlo.estimators.estimators_continuum.create_estimators_continuum_list(n_levels_bf_species_by_n_cells_tuple: tuple[int, int], n_cells: int, number: int) List[EstimatorsContinuum][source]

Factory function to create a list of EstimatorsContinuum instances.

Parameters:
n_levels_bf_species_by_n_cells_tuple

Shape tuple for bound-free transitions (n_levels_bf_species, n_cells)

n_cells

Number of cells in the simulation

number

Number of estimator instances to create

Returns:
numba.typed.List[EstimatorsContinuum]

Typed list of EstimatorsContinuum instances

tardis.transport.montecarlo.estimators.estimators_continuum.init_estimators_continuum(n_levels_bf_species_by_n_cells_tuple: tuple[int, int], n_cells: int) EstimatorsContinuum[source]

Factory function to create and initialize EstimatorsContinuum.

Parameters:
n_levels_bf_species_by_n_cells_tuple

Shape tuple for bound-free transitions (n_levels_bf_species, n_cells)

n_cells

Number of cells in the simulation

Returns:
EstimatorsContinuum

Initialized estimators with zero-filled arrays