tardis.transport.montecarlo.estimators.estimators_line module

Line radiation field estimators for Monte Carlo simulations.

This module contains estimators for line-specific radiation field properties.

class tardis.transport.montecarlo.estimators.estimators_line.EstimatorsLine(*args, **kwargs)[source]

Bases: EstimatorsLine

Estimators for line-specific radiation field properties.

Attributes:
mean_intensity_bluewardnumpy.ndarray

Monte Carlo estimator for the mean intensity in a line’s extreme blue wing (Lucy 1999).

energy_deposition_line_ratenumpy.ndarray

Monte Carlo estimator for the rate per unit volume at which energy is removed from the radiation field by line excitations (Lucy 1999).

Initialize EstimatorsLine with pre-allocated arrays.

Parameters:
mean_intensity_blueward

Monte Carlo estimator for the mean intensity in a line’s extreme blue wing

energy_deposition_line_rate

Monte Carlo estimator for the rate per unit volume at which energy is removed from the radiation field by line excitations

class_type = jitclass.EstimatorsLine#7fdbe02ed910<mean_intensity_blueward:array(float64, 2d, A),energy_deposition_line_rate:array(float64, 2d, A)>
energy_deposition_line_rate: Array(float64, 2, 'A', False, aligned=True)
mean_intensity_blueward: Array(float64, 2, 'A', False, aligned=True)
tardis.transport.montecarlo.estimators.estimators_line.create_estimators_line_list(n_lines_by_n_cells_tuple: tuple[int, int], number: int) List[EstimatorsLine][source]

Factory function to create a list of EstimatorsLine instances.

Parameters:
n_lines_by_n_cells_tuple

Shape tuple (n_lines, n_cells).

number

Number of estimator instances to create.

Returns:
Typed list of EstimatorsLine instances.
tardis.transport.montecarlo.estimators.estimators_line.init_estimators_line(n_lines_by_n_cells_tuple: tuple[int, int]) EstimatorsLine[source]

Factory function to create and initialize EstimatorsLine.

Parameters:
n_lines_by_n_cells_tuple

Shape of tau_sobolev array (n_lines, n_cells).

Returns:
Initialized estimators with zero-filled arrays.