tardis.transport.montecarlo.estimators package¶
Submodules¶
- tardis.transport.montecarlo.estimators.base module
- tardis.transport.montecarlo.estimators.continuum_radfield_properties module
- tardis.transport.montecarlo.estimators.estimators_bulk module
- tardis.transport.montecarlo.estimators.estimators_continuum module
- tardis.transport.montecarlo.estimators.estimators_line module
- tardis.transport.montecarlo.estimators.mc_rad_field_solver module
- tardis.transport.montecarlo.estimators.radfield_estimator_calcs module
- tardis.transport.montecarlo.estimators.util module
Module contents¶
- class tardis.transport.montecarlo.estimators.EstimatedRadiationFieldProperties(dilute_blackbody_radiationfield_state: tardis.plasma.radiation_field.planck_rad_field.DilutePlanckianRadiationField, j_blues: numpy.ndarray)[source]¶
Bases:
object- dilute_blackbody_radiationfield_state: DilutePlanckianRadiationField¶
- class tardis.transport.montecarlo.estimators.EstimatorsBulk(*args, **kwargs)[source]¶
Bases:
EstimatorsBulkEstimators for bulk radiation field properties at the cell level.
- Attributes:
- mean_intensity_totalnumpy.ndarray
Mean intensity estimator per cell.
- mean_frequencynumpy.ndarray
Mean frequency estimator per cell.
Initialize EstimatorsBulk with pre-allocated arrays.
- Parameters:
- mean_intensity_total
Array for mean intensity per cell.
- mean_frequency
Array for mean frequency per cell.
- class_type = jitclass.EstimatorsBulk#7fdbe026c180<mean_intensity_total:array(float64, 1d, A),mean_frequency:array(float64, 1d, A)>¶
- class tardis.transport.montecarlo.estimators.EstimatorsContinuum(*args, **kwargs)[source]¶
Bases:
EstimatorsContinuumEstimators 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.
- 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)>¶
- class tardis.transport.montecarlo.estimators.EstimatorsLine(*args, **kwargs)[source]¶
Bases:
EstimatorsLineEstimators 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)>¶
- tardis.transport.montecarlo.estimators.create_estimators_bulk_list(n_cells: int, number: int) List[EstimatorsBulk][source]¶
Factory function to create a list of EstimatorsBulk instances.
- Parameters:
- n_cells
Number of cells in the simulation.
- number
Number of estimator instances to create.
- Returns:
- numba.typed.List[EstimatorsBulk]
Typed list of EstimatorsBulk instances.
- tardis.transport.montecarlo.estimators.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.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.init_estimators_bulk(n_cells: int) EstimatorsBulk[source]¶
Factory function to create and initialize EstimatorsBulk.
- Parameters:
- n_cells
Number of cells in the simulation.
- Returns:
- EstimatorsBulk
Initialized estimators with zero-filled arrays.
- tardis.transport.montecarlo.estimators.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
- tardis.transport.montecarlo.estimators.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.