Functions | Variables

microphysics/cool.c File Reference

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

Detailed Description

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.


Function Documentation

Real KoyInut ( const Real  dens,
const Real  Press,
const Real  dt 
)

Analytic fit to cooling in the diffuse ISM given by eq.

(4) in Koyama & Inutsuka, ApJ 564, L97 (2002); Returns rate in cgs.

Definition at line 48 of file cool.c.

References Gamma_1, HeatRate, kb, mbar, n, and Tmin.


Variable Documentation

const Real HeatRate = 2.0e-26 [static]

Definition at line 37 of file cool.c.

Referenced by KoyInut().

const Real kb = 1.380658e-16 [static]

Definition at line 36 of file cool.c.

Referenced by dump_restart(), KoyInut(), restart_grids(), RestrictCorrect(), and set_bvals_particle_init().

const Real mbar = (1.37)*(1.6733e-24) [static]

Definition at line 35 of file cool.c.

Referenced by KoyInut().

const Real Tmin = 10 [static]

Definition at line 38 of file cool.c.

Referenced by KoyInut().