wiki:DMCool

Version 2 (modified by trac, 12 years ago) ( diff )

SUBROUTINE DMCool(REAL[] q, REAL[] dqdt)


Defined In:

contrib/astro/physics/i_i_ODEs.f90


Inputs:

REAL[] q. The 1D array that holds the field values for the cell.

REAL[] dqdt. A 1D INTENT(INOUT) array that is returned with DMCool()'s contribution to q's time-derivatives.


Description:

Apply time-derivatives from cooling source term. In this case, the cooling source term is derived from the Dalgarno-McCray cooling curve; see the CoolingRate() subroutine for more details.

Note that this subroutine treats dqdt as an accumulator—it will add its terms to whatever is already in dqdt without overwriting it. DMCool() only affects the energy time-derivative, or dqdt(iE).


Called In:

ODEs :: Derivatives2D()

ODEs :: Derivatives3D()


Modules Used:

None.


Files Included:

None.

Note: See TracWiki for help on using the wiki.