Implements various optically thin cooling functions. More...
Go to the source code of this file.
Functions | |
Real | KoyInut (const Real dens, const Real Press, const Real dt) |
Analytic fit to cooling in the diffuse ISM given by eq. | |
Variables | |
static const Real | mbar = (1.37)*(1.6733e-24) |
static const Real | kb = 1.380658e-16 |
static const Real | HeatRate = 2.0e-26 |
static const Real | Tmin = 10 |
Implements various optically thin cooling functions.
These can be enrolled by setting CoolingFunc=NAME in the problem generator, where NAME is one of the functions in this file.
Each cooling function returns the cooling rate per volume. The total (or equivalently the internal) energy then evolves as
Some of these cooling functions return the cooling rate per volume in cgs units [ergs/cm^{3}/s]. Thus, to use these functions, the entire calculation must be in cgs, or else the cooling rate has to scaled appropriately in the calling function.
To add a new cooling function, implement it below and add the name to src/microphysics/prototypes.h. Note the argument list must be (d,P,dt).
CONTAINS PUBLIC FUNCTIONS:
Definition in file cool.c.
Definition at line 36 of file cool.c.
Referenced by dump_restart(), KoyInut(), restart_grids(), RestrictCorrect(), and set_bvals_particle_init().