Functions | Variables

prob/ti.c File Reference

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

Detailed Description

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.


Function Documentation

Gasfun_t get_usr_expr ( const char *  expr  ) 

Sets pointer to expression for special output data.

Definition at line 504 of file ti.c.

VGFunout_t get_usr_out_fun ( const char *  name  ) 

Returns a user defined output function pointer.

Definition at line 510 of file ti.c.

static Real logd ( const Grid *  pG,
const int  i,
const int  j,
const int  k 
) [static]

Log10 of density.

Definition at line 499 of file ti.c.

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.

Here is the call graph for this function:

void problem_read_restart ( Grid *  pG,
Domain *  pD,
FILE *  fp 
)

Definition at line 492 of file ti.c.

void problem_write_restart ( Grid *  pG,
Domain *  pD,
FILE *  fp 
)

Definition at line 487 of file ti.c.

static double ran2 ( long int *  idum  )  [static]

Definition at line 556 of file ti.c.

void Userwork_after_loop ( Grid *  pGrid,
Domain *  pDomain 
)

Definition at line 520 of file ti.c.

void Userwork_in_loop ( Grid *  pGrid,
Domain *  pDomain 
)

Definition at line 515 of file ti.c.


Variable Documentation

const Real kb = 1.380658e-16 [static]

Definition at line 36 of file ti.c.

Referenced by problem().

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

Definition at line 35 of file ti.c.

Referenced by problem().

const Real pi = 3.14159265358979323846 [static]

Definition at line 37 of file ti.c.

Referenced by problem().