tardis.transport.montecarlo.packets.movement module
Packet movement routines shared by Monte Carlo transport modes.
- tardis.transport.montecarlo.packets.movement.move_packet_across_shell_boundary(packet: RPacket, delta_shell: int, no_of_shells: int) None[source]
Move packet across a shell boundary and update packet status.
- Parameters:
- packettardis.transport.montecarlo.packets.radiative_packet.RPacket
Packet object.
- delta_shellint
Change in shell index (+1 if moving outward or -1 if moving inward).
- no_of_shellsint
Number of shells in the simulation.
- tardis.transport.montecarlo.packets.movement.move_r_packet(r_packet: RPacket, distance: float, geometry: NumbaRadial1DGeometry | NumbaNonhomologousRadial1DGeometry, estimators_bulk: EstimatorsBulk, enable_full_relativity: bool) None[source]
Move a radiative packet using velocity from the model geometry.
- Parameters:
- r_packettardis.transport.montecarlo.packets.radiative_packet.RPacket
Radiative packet to move.
- distancefloat
Lab-frame distance traveled by the packet [cm].
- geometryNumbaRadial1DGeometry or NumbaNonhomologousRadial1DGeometry
Geometry object that provides local packet-frame velocity.
- estimators_bulktardis.transport.montecarlo.estimators.estimators_bulk.EstimatorsBulk
Cell-level bulk radiation field estimators to update in place.
- enable_full_relativitybool
Whether to apply full-relativity Doppler and path-length corrections.