Radiative Transfer Convergence Criteria¶
Class providing convergence criteria for Monte Carlo radiative transfer calculations—diagnostics that assess whether the iterative solution (radiation field, ionization state, or dust temperature) has converged to a stable solution after sufficient photon packets have been propagated. Methods process escaping photon packets, test individual domain cells for convergence, and determine whether the entire grid has reached the required accuracy. Multiple iterations of photon propagation may be needed before convergence is declared and the final radiation field is recorded.
Default implementation: radiativeTransferConvergenceAlways
Methods¶
photonPacketEscapes→voidProcess a photon packet that has escaped the computational domain, accumulating any statistics needed by the convergence criterion before the packet is discarded.
class(radiativeTransferPhotonPacketClass), intent(inout) :: photonPacket
testConvergence→voidTest whether a single domain cell has converged by comparing its current radiation field or matter state against the previous iteration, setting the
convergedflag accordingly.class (radiativeTransferMatterClass ), intent(inout) :: radiativeTransferMatter_class (radiativeTransferPropertiesMatter), intent(inout) :: propertiestype (enumerationStatusCellType ), intent(in ) :: statusCelllogical , intent( out) :: converged
radiativeTransferConvergenceAlways¶
A convergence criterion for radiative transfer which always passes.
(Default implementation)
radiativeTransferConvergenceHydrogenRecombinationRate¶
A radiative transfer convergence class that monitors the total hydrogen atomic recombination rate across successive iterations, declaring convergence when the relative change in the total recombination rate falls below the specified tolerance. The convergence criterion is set by [toleranceRelative].
Parameters
[toleranceRelative](default1.0d-3) — The relative tolerance in total recombination rate required to declare convergence.
radiativeTransferConvergenceLycEscape¶
A radiative transfer convergence class that monitors the hydrogen Lyman continuum photon escape rate across successive iterations, declaring convergence when the relative change in the total escape rate falls below the specified tolerance. The convergence criterion is set by [toleranceRelative].
Parameters
[toleranceRelative](default1.0d-3) — The relative tolerance in hydrogen Lyc escape required to declare convergence.