|
PLUTO
|
Take a source step using power-law cooling. More...
#include "pluto.h"
Go to the source code of this file.
Functions | |
| void | PowerLawCooling (Data_Arr VV, double dt, Time_Step *Dts, Grid *grid) |
Take a source step using power-law cooling.
Integrate the ODE
which accounts for bremmstrahlung cooling. Here the subscript 'cgs' means that the corresponding quantity is given in c.g.s units. We denote with mu the molecular weight, mH the hydrogen mass (in c.g.s).
The previous integration is carried out analytically since the density does not change during this step. In non-dimensional form:
[notice that since p/rho=T/KELVIN this is equivalent to: dp/dt=-cost rho^2 (T/KELVIN)^(1/2) ]
The quantity cost is determined by transforming the dimensional equation into the non-dimensional one. If p, rho and t are in code (non-dimensional) units and if L_0, rho_0, and V_0 are the unit length, density and velocity, then cost is found to be:
a_br * (gamma - 1) * L_0 * rho_0
cost = -------------------------------------------
sqrt(kB * mu * mH) * kB * mu * mH * V_0^2
where a_{br} = 2.e-27 (in c.g.s), kB is the Boltmann constant
Definition in file cooling.c.
| [in,out] | VV | a pointer to the PLUTO 3D data array containing pimitive variables. |
| [in] | dt | the current integration time step |
| [in] | Dts | a pointer to the Time_Step structure |
| [in] | grid | pointer to an array of Grid structures |
Definition at line 50 of file cooling.c.

