tardis.transport.montecarlo.interaction_event_callers module

tardis.transport.montecarlo.interaction_event_callers.continuum_event(r_packet, time_explosion, opacity_state, chi_bf_tot, chi_ff, chi_bf_contributions, current_continua, enable_full_relativity)[source]

continuum event handler - activate the macroatom and run the handler

Parameters:
r_packettardis.transport.montecarlo.r_packet.RPacket
time_explosionfloat
opacity_statetardis.transport.montecarlo.numba_interface.OpacityState
continuumtardis.transport.montecarlo.numba_interface.Continuum
tardis.transport.montecarlo.interaction_event_callers.determine_continuum_macro_activation_idx(opacity_state, nu, chi_bf, chi_ff, chi_bf_contributions, active_continua)[source]

Determine the macro atom activation level after a continuum absorption.

Parameters:
nufloat

Comoving frequency of the r-packet.

chi_bfnumpy.ndarray, dtype float

Bound-free opacity.

chi_bfnumpy.ndarray, dtype float

Free-free opacity.

chi_bf_contributionsnumpy.ndarray, dtype float

Cumulative distribution of bound-free opacities at frequency nu.

active_continuanumpy.ndarray, dtype int

Continuum ids for which absorption is possible for frequency nu.

Returns:
float

Macro atom activation idx.

tardis.transport.montecarlo.interaction_event_callers.line_scatter_event(r_packet, time_explosion, line_interaction_type, opacity_state, enable_full_relativity)[source]

Line scatter function that handles the scattering itself, including new angle drawn, and calculating nu out using macro atom

Parameters:
r_packettardis.transport.montecarlo.r_packet.RPacket
time_explosionfloat
line_interaction_typeenum
opacity_statetardis.transport.montecarlo.numba_interface.OpacityState
tardis.transport.montecarlo.interaction_event_callers.macro_atom_event(destination_level_idx, r_packet, time_explosion, opacity_state, enable_full_relativity)[source]

Macroatom event handler - run the macroatom and handle the result

Parameters:
destination_level_idxint
r_packettardis.transport.montecarlo.r_packet.RPacket
time_explosionfloat
opacity_statetardis.transport.montecarlo.numba_interface.OpacityState