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 AA), 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→voidSet the wavelength (in AA) of the photon packet.
double precision, intent(in ) :: wavelength
wavelength→double precisionGet the wavelength (in AA) of the photon packet.
wavelengthMinimumSet→voidSet the minimum wavelength (in AA) of the photon packet.
double precision, intent(in ) :: wavelength
wavelengthMinimum→double precisionGet the minimum wavelength (in AA) of the photon packet.
wavelengthMaximumSet→voidSet the maximum wavelength (in AA) of the photon packet.
double precision, intent(in ) :: wavelength
wavelengthMaximum→double precisionGet the maximum wavelength (in AA) of the photon packet.
luminositySet→voidSet the luminosity (in \(L_\odot\)) of the photon packet.
double precision, intent(in ) :: luminosity
luminosity→double precisionGet the luminosity (in \(L_\odot\)) of the photon packet.
positionSet→voidSet the position of the photon packet.
double precision, intent(in ), dimension(3) :: position
position→double precision, dimension(3)Get the position of the photon packet.
directionSet→voidSet the direction of the photon packet.
double precision, intent(in ), dimension(3) :: direction
direction→double precision, dimension(3)Get the direction of the photon packet.
sourceType→integerGet a integer type describing the source of the photon packet.
sourceTypeSet→voidSet an integer type describing the source of the photon packet.
integer, intent(in ) :: sourceType
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)
Methods
calculationReset— Reset memoized calculations.
Parameters
[efficiencyWind](default2.2157d-3) — The coupling efficiency of the black hole accretion-driven wind, defined as the fraction of the accreted rest-mass energy that is deposited as kinetic or thermal energy into the surrounding gas via AGN-driven outflows.[redshiftReionization](default9.97d0) — The redshift of reionization below which baryonic accretion onto halos is suppressed due to the ionizing background heating the intergalactic medium and preventing gas from accreting onto low-mass halos.[opticalDepthReionization]— The optical depth to electron scattering below which baryonic accretion is suppressed.[velocitySuppressionReionization](default35.0d0) — The velocity scale below which baryonic accretion is suppressed.[accretionNegativeAllowed](default.true.) — Specifies whether negative accretion (mass loss) is allowed in the simple halo accretion model.[accretionNewGrowthOnly](default.false.) — Specifies whether accretion from the IGM is allowed only when a halo is growing past its previous greatest mass.[acceptedStateCount](default100) — The number of states to use in acceptance rate statistics.[timeStepRelative](default0.1d0) — The maximum allowed relative change in time for a single step in the evolution of a node.[timeStepAbsolute](default1.0d0) — The maximum allowed absolute change in time (in Gyr) for a single step in the evolution of a node.[timeStepMinimum](default1.0d-6) — The smallest timestep to use in profiling ODE solver steps.[timeStepMaximum](default1.0d+1) — The largest timestep to use in profiling ODE solver steps.[timeStepPointsPerDecade](default3) — The number of bins per decade of timestep to use when profiling ODE solver steps.[wavelength](default1.0d4) — The wavelength of the photon packet (in AA).[wavelengthMinimum](default0.5d4) — The minimum wavelength of the photon packet (in AA).[wavelengthMaximum](default2.0d4) — The maximum wavelength of the photon packet (in AA).[luminosity](default1.0d0) — The luminosity of the photon packet (in \(L_\odot\)).[massRatioMajorMerger](default0.25d0) — The mass ratio above which mergers are considered to be “major”.[destinationGasMinorMerger](defaultvar_str('spheroid')) — The component to which satellite galaxy gas moves to as a result of a minor merger.[destinationStarsMinorMerger](defaultvar_str('spheroid')) — The component to which satellite galaxy stars move to as a result of a minor merger.[degreesOfFreedom](default3.0d0) — Number of degrees of freedom to assume when computing the energy density of cooling gas in the “simple” cooling time class.[timeScale](default1.0d0) — The timescale (in Gyr) for cooling in the simple cooling rate model.[reionizationRedshift](default9.97d0) — The redshift of reionization in the simple IGM state model.[reionizationTemperature](default1.0d4) — The post-reionization temperature (in units of Kelvin) in the simple IGM state model.[preReionizationTemperature](default10.0d0) — The pre-reionization temperature (in units of Kelvin) in the simple IGM state model.[useFormationHalo](default.false.) — Specifies whether or not the “formation halo” should be used when solving for the radii of galaxies.[solveForInactiveProperties](default.true.) — If true, galactic structure is solved for during evaluation of inactive property integrals. Otherwise, structure is not solved for during this phase—this should only be used if the inactive property integrands do not depend on galactic structure.[rateFractionalMaximum](default10.0d0) — The maximum fractional mass loss rate per dynamical time in the simple model of mass loss due to tidal stripping.[beta](default1.0d0) — The scaling factor which multiplies the tidal mass loss rate.[OmegaMatter](default0.3153d0) — The density of matter in the Universe in units of the critical density.[OmegaBaryon](default0.04930d0) — The density of baryons in the Universe in units of the critical density.[OmegaDarkEnergy](default0.6847d0) — The density of dark energy in the Universe in units of the critical density.[temperatureCMB](default2.72548d0) — The present day temperature of the CMB in units of Kelvin.[HubbleConstant](default67.36d0) — The present day value of the Hubble parameter in units of km/s/Mpc.