Radiative Transfer Photon Sources¶
Class providing photon sources for Monte Carlo radiative transfer calculations—objects that emit photon packets into the computational domain. Each implementation describes a specific type of radiation source (e.g. a point source, a stellar population, an AGN, or a uniform field) and provides the luminosity spectrum (in \(L_\odot\) Å\(^{-1}\)), the integrated luminosity over a wavelength range, and a method to initialize photon packet properties (wavelength, position, direction, and luminosity weight) drawn from the source’s spatial and spectral distribution.
Default implementation: radiativeTransferSourcePoint
Methods¶
initializePhotonPacketInitialize a photon packet from the source.
class(radiativeTransferPhotonPacketClass) photonPacket[inout]
spectrum→double precisionReturn the spectrum (in units of \(L_\odot\) Å\(^{-1}\)) of the source at the given
wavelength.double precision wavelength[in]integer sourceType(optional) [in]
luminosity→double precisionReturn the luminosity (in units of \(L_\odot\)) of the source at the given wavelength range.
double precision wavelengthMinimum[in]double precision wavelengthMaximum[in]integer sourceType(optional) [in]
sourceTypeCount→integerReturn the number of source types.
sourceTypeName→type(varying_string)Return the name of the requested of source type.
integer sourceType[in]
radiativeTransferSourceDistributed¶
A photon source class for spatially extended radiative transfer sources whose emission is distributed according to a specified mass distribution. Photon packets are launched from positions sampled from the mass distribution, with spectra and a descriptive label provided via the [radiativeTransferSpectrum] object and [label] parameter.
Parameters
[position](real; default[0.0d0,0.0d0,0.0d0]) — The position of the distributed source.[label](string; defaultunknown) — A descriptive label for the source.
radiativeTransferSourcePoint¶
A photon source class for unresolved point-like radiative transfer sources that emit isotropically from a fixed location in three-dimensional space. The source position and a descriptive label are given by the [position] and [label] parameters, and the spectral shape is provided via the [radiativeTransferSpectrum] object.
(Default implementation)
Parameters
[position](real; default[0.0d0,0.0d0,0.0d0]) — The position of the point source.[label](string; defaultunknown) — A descriptive label for the source.
radiativeTransferSourceSummation¶
A photon source class for summation sources.