tardis.transport.montecarlo.r_packet_transport module

tardis.transport.montecarlo.r_packet_transport.move_packet_across_shell_boundary(packet: RPacket, delta_shell: int, no_of_shells: int) None[source]

Move packet across shell boundary - realizing if we are still in the simulation or have moved out through the inner boundary or outer boundary and updating packet status.

Parameters:
packet

Radiative packet object

delta_shell

Change in shell index (+1 if moving outward or -1 if moving inward)

no_of_shells

Number of shells in TARDIS simulation

tardis.transport.montecarlo.r_packet_transport.move_r_packet(r_packet: RPacket, distance: float, time_explosion: float, estimators_bulk: EstimatorsBulk, enable_full_relativity: bool) None[source]

Move packet a distance and recalculate the new angle mu.

Parameters:
r_packet

Radiative packet object

distance

Distance to move in cm

time_explosion

Time since explosion in seconds

estimators_bulk

Cell-level bulk radiation field estimators

enable_full_relativity

Flag to enable full relativistic calculations

tardis.transport.montecarlo.r_packet_transport.trace_packet(r_packet: RPacket, numba_radial_1d_geometry: NumbaRadial1DGeometry, time_explosion: float, opacity_state: OpacityStateNumba, estimators_line: EstimatorsLine, chi_continuum: float, escat_prob: float, enable_full_relativity: bool, disable_line_scattering: bool) tuple[source]

Traces the RPacket through the ejecta and stops when an interaction happens (heart of the calculation).

Parameters:
r_packet

The radiative packet being transported

numba_radial_1d_geometry

Radial 1D geometry of the model

time_explosion

Time since explosion in seconds

opacity_state

Opacity state containing line list and tau sobolev

estimators_line

Line-level radiation field estimators

chi_continuum

Continuum opacity

escat_prob

Probability of electron scattering

enable_full_relativity

Flag to enable full relativistic calculations

disable_line_scattering

Flag to disable line scattering

Returns:
tuple

(distance, interaction_type, delta_shell)