Problem generator for thermal instability. More...
Go to the source code of this file.
Functions | |
static double | ran2 (long int *idum) |
static Real | logd (const Grid *pG, const int i, const int j, const int k) |
Log10 of density. | |
void | problem (Grid *pGrid, Domain *pDomain) |
void | problem_write_restart (Grid *pG, Domain *pD, FILE *fp) |
void | problem_read_restart (Grid *pG, Domain *pD, FILE *fp) |
Gasfun_t | get_usr_expr (const char *expr) |
Sets pointer to expression for special output data. | |
VGFunout_t | get_usr_out_fun (const char *name) |
Returns a user defined output function pointer. | |
void | Userwork_in_loop (Grid *pGrid, Domain *pDomain) |
void | Userwork_after_loop (Grid *pGrid, Domain *pDomain) |
Variables | |
static const Real | mbar = (1.27)*(1.6733e-24) |
static const Real | kb = 1.380658e-16 |
static const Real | pi = 3.14159265358979323846 |
Problem generator for thermal instability.
PURPOSE: Problem generator for thermal instability. Setup to use the Koyama & Inutsuka cooling function, so must use cgs units for calculations
TI test w/ Isotropic Conduction - hydro The coefficient of conductivity kappa should be defined in cgs unit
TI test w/ Anisotropic Conduction - mhd The coefficient of Spitzer Coulombic conductivity should be given.
Various test cases are possible
Definition in file ti.c.
Gasfun_t get_usr_expr | ( | const char * | expr | ) |
VGFunout_t get_usr_out_fun | ( | const char * | name | ) |
static Real logd | ( | const Grid * | pG, | |
const int | i, | |||
const int | j, | |||
const int | k | |||
) | [static] |
void problem | ( | Grid * | pGrid, | |
Domain * | pDomain | |||
) |
Definition at line 51 of file ti.c.
References amp, ath_error(), b0, beta, calloc_3d_array(), CoolingFunc, Gamma_1, iprob, kb, kx, kz, mbar, n, nx1, nx2, nx3, par_getd(), par_geti(), pi, r, ran2(), rho0, and rseed.
void problem_read_restart | ( | Grid * | pG, | |
Domain * | pD, | |||
FILE * | fp | |||
) |
void problem_write_restart | ( | Grid * | pG, | |
Domain * | pD, | |||
FILE * | fp | |||
) |