62 double rho, p,
T, p_f, T_f;
85 p_f = sqrt(p) - 0.5*cost*rho*sqrt(rho)*dt;
95 VV[PRS][
k][
j][
i] = p_f;
96 dE = fabs(1.0 - p_f/p) + 1.e-18;
#define UNIT_DENSITY
Unit density in gr/cm^3.
void PowerLawCooling(Data_Arr VV, double dt, Time_Step *Dts, Grid *grid)
#define UNIT_VELOCITY
Unit velocity in cm/sec.
double dt_cool
Cooling time step.
#define UNIT_LENGTH
Unit Length in cm.
#define CONST_kB
Boltzmann constant.
#define CONST_mH
Hydrogen atom mass.
double g_minCoolingTemp
The minimum temperature (in K) below which cooling is suppressed.
double g_maxCoolingRate
The maximum fractional variation due to cooling from one step to the next.