Radiative Transfer Outputters¶
Class providing outputters for Monte Carlo radiative transfer calculations—routines that collect and record photon packet statistics as packets propagate through the computational domain. Methods handle escaped photon packets (recording their wavelength, direction, and weight), output properties of the source distribution, and optionally record intermediate quantities such as the local radiation field or ionization state. Implementations write results to HDF5 output groups for subsequent analysis of the emergent spectrum or radiation field.
Default implementation: radiativeTransferOutputterNull
Methods¶
resetReset the outputter to its initial state, clearing any accumulated photon packet statistics in preparation for a new iteration or output epoch.
sourcePropertiesOutput properties of the source distribution.
class(radiativeTransferSourceClass) radiativeTransferSource_[inout]type(hdf5Group) outputGroup[inout]
photonPacketEscapesHandle cases where a photon packet escapes the computational domain.
class(radiativeTransferPhotonPacketClass) photonPacket[inout]
finalizeFinalize any calculations output.
outputPerform final output.
type(hdf5Group) outputGroup[inout]
radiativeTransferOutputterContinuuaRates¶
A radiative transfer outputter class that records the ionizing photon emission rates in the photoionization continua of all specified chemical elements, enabling tracking of the Lyman continuum and other ionizing fluxes. The list of elements to track is specified via the [elements] parameter.
Parameters
[elements](string) — The names of the elements to be tracked.
radiativeTransferOutputterLymanContinuumRate¶
A radiative transfer outputter class which outputs the Lyman continuum photon emission rate.
radiativeTransferOutputterMulti¶
A radiative transfer outputter class which combines multiple other outputters.
radiativeTransferOutputterNull¶
A null (no-op) radiative transfer outputter that performs no output operations, used as a placeholder or default when radiative transfer results do not need to be written out.
(Default implementation)
radiativeTransferOutputterSpectrum¶
A radiative transfer outputter class that records wavelength-binned spectra of both the total emitted and emergent photon luminosities, allowing comparison of intrinsic and attenuated radiation. The wavelength range and resolution are set by [wavelengthMinimum], [wavelengthMaximum], and [wavelengthsPerDecade].
Parameters
[wavelengthMinimum](real; default0.3d4) — The minimum wavelength at which to compute spectra.[wavelengthMaximum](real; default10.0d4) — The maximum wavelength at which to compute spectra.[wavelengthCountPerDecade](integer; default10_c_size_t) — The number of wavelengths per decade at which to compute spectra.[thetaMinimum](real; default0.0d0) — The minimum angle \(\theta\) at which to bin the emergent spectrum.[thetaMaximum](real; default+Pi) — The maximum angle \(\theta\) at which to bin the emergent spectrum.[countThetas](integer; default1_c_size_t) — The number of bins in angle \(\theta\) at which to compute spectra.