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

wavelengthSet

Set the wavelength (in Å) of the photon packet.

  • double precision wavelength [in]

wavelengthdouble precision

Get the wavelength (in Å) of the photon packet.

wavelengthMinimumSet

Set the minimum wavelength (in Å) of the photon packet.

  • double precision wavelength [in]

wavelengthMinimumdouble precision

Get the minimum wavelength (in Å) of the photon packet.

wavelengthMaximumSet

Set the maximum wavelength (in Å) of the photon packet.

  • double precision wavelength [in]

wavelengthMaximumdouble precision

Get the maximum wavelength (in Å) of the photon packet.

luminositySet

Set the luminosity (in \(L_\odot\)) of the photon packet.

  • double precision luminosity [in]

luminositydouble precision

Get the luminosity (in \(L_\odot\)) of the photon packet.

positionSet

Set the position of the photon packet.

  • double precision(3) position [in]

positiondouble precision(3)

Get the position of the photon packet.

directionSet

Set the direction of the photon packet.

  • double precision(3) direction [in]

directiondouble precision(3)

Get the direction of the photon packet.

sourceTypeinteger

Get a integer type describing the source of the photon packet.

sourceTypeSet

Set 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; default 1.0d4) — The wavelength of the photon packet (in Å).

  • [wavelengthMinimum] (real; default 0.5d4) — The minimum wavelength of the photon packet (in Å).

  • [wavelengthMaximum] (real; default 2.0d4) — The maximum wavelength of the photon packet (in Å).

  • [luminosity] (real; default 1.0d0) — The luminosity of the photon packet (in \(L_\odot\)).