Radiative Transfer Photon Packets¶
Class providing photon packets for Monte Carlo radiative transfer calculations—discrete bundles of photon energy that are launched from sources and propagated through the computational domain, interacting with matter via absorption and scattering. Each packet carries a wavelength (in Å), a wavelength range, a luminosity (in \(L_\odot\)), a 3-D position, a direction of propagation, and a weight tracking how much of the original energy remains. The packet’s trajectory through the grid determines the local radiation field and drives the ionization and heating of the matter.
Default implementation: radiativeTransferPhotonPacketSimple
Methods¶
wavelengthSetSet the wavelength (in Å) of the photon packet.
double precision wavelength[in]
wavelength→double precisionGet the wavelength (in Å) of the photon packet.
wavelengthMinimumSetSet the minimum wavelength (in Å) of the photon packet.
double precision wavelength[in]
wavelengthMinimum→double precisionGet the minimum wavelength (in Å) of the photon packet.
wavelengthMaximumSetSet the maximum wavelength (in Å) of the photon packet.
double precision wavelength[in]
wavelengthMaximum→double precisionGet the maximum wavelength (in Å) of the photon packet.
luminositySetSet the luminosity (in \(L_\odot\)) of the photon packet.
double precision luminosity[in]
luminosity→double precisionGet the luminosity (in \(L_\odot\)) of the photon packet.
positionSetSet the position of the photon packet.
double precision(3) position[in]
position→double precision(3)Get the position of the photon packet.
directionSetSet the direction of the photon packet.
double precision(3) direction[in]
direction→double precision(3)Get the direction of the photon packet.
sourceType→integerGet a integer type describing the source of the photon packet.
sourceTypeSetSet an integer type describing the source of the photon packet.
integer sourceType[in]
radiativeTransferPhotonPacketSimple¶
A simple photon packet class for Monte Carlo radiative transfer that tracks the minimum required properties: wavelength, luminosity, three-dimensional position, and propagation direction. The initial wavelength and luminosity of each packet are set by [wavelength] and [luminosity], with wavelength bounds given by [wavelengthMinimum] and [wavelengthMaximum].
(Default implementation)
Parameters
[wavelength](real; default1.0d4) — The wavelength of the photon packet (in Å).[wavelengthMinimum](real; default0.5d4) — The minimum wavelength of the photon packet (in Å).[wavelengthMaximum](real; default2.0d4) — The maximum wavelength of the photon packet (in Å).[luminosity](real; default1.0d0) — The luminosity of the photon packet (in \(L_\odot\)).