Functions | Variables

prob/hkdisk.c File Reference

Problem generator for Hawley Krolik disk (Specifically, GT4). More...

Go to the source code of this file.

Functions

static Real grav_pot (const Real x1, const Real x2, const Real x3)
static Real grav_acc (const Real x1, const Real x2, const Real x3)
Real density (Real x1, Real x2, Real x3)
 Calculates the density at x1, x2, x3.
Real Volume (Grid *pG, int i, int j, int k)
 Calculates the volume of cell (i,j,k).
void problem (Grid *pG, 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.
void Userwork_in_loop (Grid *pG, Domain *pDomain)
void Userwork_after_loop (Grid *pG, Domain *pDomain)

Variables

static Real q
static Real r0
static Real rhomax
static Real r_in
static Real rho0
static Real e0
static Real dcut
static Real beta
static Real seed
static Real f
static Real C
static Real Kbar
static Real n

Detailed Description

Problem generator for Hawley Krolik disk (Specifically, GT4).

Definition in file hkdisk.c.


Function Documentation

Real density ( Real  x1,
Real  x2,
Real  x3 
)

Calculates the density at x1, x2, x3.

Definition at line 45 of file hkdisk.c.

References C, f, Kbar, n, q, r_in, rad, and rho0.

Referenced by problem().

Here is the caller graph for this function:

Gasfun_t get_usr_expr ( const char *  expr  ) 

Sets pointer to expression for special output data.

Definition at line 353 of file hkdisk.c.

static Real grav_acc ( const Real  x1,
const Real  x2,
const Real  x3 
) [static]

Definition at line 35 of file hkdisk.c.

References rad.

static Real grav_pot ( const Real  x1,
const Real  x2,
const Real  x3 
) [static]

Definition at line 26 of file hkdisk.c.

References rad.

void problem ( Grid *  pG,
Domain *  pDomain 
)

Definition at line 68 of file hkdisk.c.

References ath_error(), beta, C, calloc_3d_array(), cc_pos(), dcut, density(), divB(), e0, f, Gamma, Gamma_1, il, iu, jl, ju, Kbar, kl, ku, left_x1, left_x3, n, nx1, nx2, nx3, par_getd(), q, r0, r02, r_in, rad, rho0, rhomax, right_x1, right_x3, seed, StaticGravPot, Volume(), and x1GravAcc.

Here is the call graph for this function:

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

Definition at line 326 of file hkdisk.c.

References beta, dcut, e0, left_x1, left_x3, par_getd(), q, r0, r_in, rho0, rhomax, right_x1, right_x3, seed, StaticGravPot, and x1GravAcc.

Here is the call graph for this function:

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

Definition at line 321 of file hkdisk.c.

void Userwork_after_loop ( Grid *  pG,
Domain *  pDomain 
)

Definition at line 445 of file hkdisk.c.

void Userwork_in_loop ( Grid *  pG,
Domain *  pDomain 
)

Definition at line 358 of file hkdisk.c.

References cc_pos(), compute_div_b(), e0, il, iu, jl, ju, kl, ku, nx1, nx2, nx3, and rho0.

Here is the call graph for this function:

Real Volume ( Grid *  pG,
int  i,
int  j,
int  k 
)

Calculates the volume of cell (i,j,k).

Definition at line 58 of file hkdisk.c.

References cc_pos().

Referenced by problem().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Real beta [static]

Definition at line 19 of file hkdisk.c.

Referenced by lr_states(), problem(), and problem_read_restart().

Real C [static]
Real dcut [static]

Definition at line 19 of file hkdisk.c.

Referenced by problem(), and problem_read_restart().

Real e0 [static]
Real f [static]
Real Kbar [static]

Definition at line 22 of file hkdisk.c.

Referenced by density(), and problem().

Real n [static]
Real q [static]

Definition at line 19 of file hkdisk.c.

Referenced by density(), problem(), and problem_read_restart().

Real r0 [static]

Definition at line 19 of file hkdisk.c.

Referenced by problem(), and problem_read_restart().

Real r_in [static]

Definition at line 19 of file hkdisk.c.

Referenced by density(), problem(), and problem_read_restart().

Real rho0 [static]

Definition at line 19 of file hkdisk.c.

Real rhomax [static]

Definition at line 19 of file hkdisk.c.

Referenced by problem(), and problem_read_restart().

Real seed [static]

Definition at line 19 of file hkdisk.c.

Referenced by problem(), and problem_read_restart().