tardis.transport.montecarlo.modes.classic.packet_propagation module¶
Classic mode packet transport - line-only without continuum processes.
- tardis.transport.montecarlo.modes.classic.packet_propagation.packet_propagation(r_packet: RPacket, numba_radial_1d_geometry: NumbaRadial1DGeometry, time_explosion: float, opacity_state: OpacityStateNumba, estimators_bulk: EstimatorsBulk, estimators_line: EstimatorsLine, vpacket_collection: VPacketCollection, rpacket_tracker, montecarlo_configuration: MonteCarloConfiguration) None[source]¶
Execute Monte Carlo transport for a single radiative packet in classic mode.
Classic mode performs line-only transport without continuum processes. Only electron scattering and line interactions are handled.
- Parameters:
- r_packetRPacket
The radiative packet to transport through the ejecta.
- numba_radial_1d_geometryNumbaRadial1DGeometry
The spherically symmetric geometry of the supernova ejecta.
- time_explosionfloat
Time since explosion in seconds.
- opacity_stateOpacityStateNumba
Current opacity state containing line opacities.
- estimators_bulkEstimatorsBulk
Monte Carlo estimators for cell-level bulk radiation field quantities.
- estimators_lineEstimatorsLine
Monte Carlo estimators for line-level radiation field quantities.
- vpacket_collectionVPacketCollection
Collection for storing virtual packets when enabled.
- rpacket_tracker
Tracker for recording packet interactions and trajectories.
- montecarlo_configurationMonteCarloConfiguration
Configuration parameters for the Monte Carlo simulation.
- Returns:
- None
This function modifies the r_packet object in-place and updates estimators and collections.
- tardis.transport.montecarlo.modes.classic.packet_propagation.set_packet_props_full_relativity(r_packet: RPacket, time_explosion: float) None[source]¶
Set packet properties using full relativistic corrections.
This function applies inverse Doppler corrections to the packet frequency, energy, and direction cosine based on full relativistic treatment, including aberration effects on the direction cosine.
- Parameters:
- r_packet
The radiative packet whose properties will be modified.
- time_explosion
Time since explosion in seconds, used to calculate velocity.
- Returns:
- Modifies r_packet.nu, r_packet.energy, and r_packet.mu in-place.
- tardis.transport.montecarlo.modes.classic.packet_propagation.set_packet_props_partial_relativity(r_packet: RPacket, time_explosion: float) None[source]¶
Set packet properties using partial relativistic corrections.
This function applies inverse Doppler corrections to the packet frequency and energy based on partial relativistic treatment (first-order in v/c).
- Parameters:
- r_packet
The radiative packet whose properties will be modified.
- time_explosion
Time since explosion in seconds, used to calculate velocity.
- Returns:
- Modifies r_packet.nu and r_packet.energy in-place.