Cooling Times¶
Class providing models of the cooling time (in Gyr) for gas in the hot halo surrounding a galaxy, defined as the ratio of the thermal energy density to the radiative cooling rate. Given temperature, density, elemental abundances, chemical species densities, and an ambient radiation field, implementations typically evaluate \(t_\mathrm{cool} = (3/2) n k_\mathrm{B} T / \mathcal{L}\). The logarithmic gradients with respect to density and temperature are also provided for use in implicit ODE solvers that integrate the cooling flow equations.
Default implementation: coolingTimeSimple
Methods¶
time→double precisionReturns the cooling time for gas in the hot atmosphere surrounding the galaxy in units of Gyr.
type (treeNode ), intent(inout) :: nodedouble precision , intent(in ) :: temperature , densitytype (abundances ), intent(in ) :: gasAbundancestype (chemicalAbundances ), intent(in ) :: chemicalDensitiesclass (radiationFieldClass), intent(inout) :: radiation
gradientDensityLogarithmic→double precisionReturns the logarithmic derivative of cooling time with respect to density for gas in the hot atmosphere surrounding the galaxy.
type (treeNode ), intent(inout) :: nodedouble precision , intent(in ) :: temperature , densitytype (abundances ), intent(in ) :: gasAbundancestype (chemicalAbundances ), intent(in ) :: chemicalDensitiesclass (radiationFieldClass), intent(inout) :: radiation
gradientTemperatureLogarithmic→double precisionReturns the logarithmic derivative of cooling time with respect to temperature for gas in the hot atmosphere surrounding the galaxy.
type (treeNode ), intent(inout) :: nodedouble precision , intent(in ) :: temperature , densitytype (abundances ), intent(in ) :: gasAbundancestype (chemicalAbundances ), intent(in ) :: chemicalDensitiesclass (radiationFieldClass), intent(inout) :: radiation
coolingTimeSimple¶
A cooling time class in which the cooling time is simply
where \(N=\)[degreesOfFreedom] is the number of degrees of freedom in the cooling gas which has temperature \(T\) and total particle number density (including electrons) \(n_\mathrm{tot}\) and \(\Lambda\) is the cooling function.
(Default implementation)
Methods
calculationReset— Reset memoized calculations.
Parameters
[degreesOfFreedom](real; default3.0d0) — Number of degrees of freedom to assume when computing the energy density of cooling gas in the “simple” cooling time class.