Functions | Variables

prob/cylunif.c File Reference

A test of conservation using uniform initial conditions. More...

Go to the source code of this file.

Functions

static Real grav_pot (const Real x1, const Real x2, const Real x3)
 Gravitational potential.
static Real grav_acc (const Real x1, const Real x2, const Real x3)
 Gravitational acceleration.
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.
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 Real br
static Real bphi
static Real omega
static Real rho
static Real pgas
static int iprob
static Gas *** Soln = NULL

Detailed Description

A test of conservation using uniform initial conditions.

Definition in file cylunif.c.


Function Documentation

Gasfun_t get_usr_expr ( const char *  expr  ) 

Sets pointer to expression for special output data.

Definition at line 195 of file cylunif.c.

VGFunout_t get_usr_out_fun ( const char *  name  ) 

Returns a user defined output function pointer.

Definition at line 200 of file cylunif.c.

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

Gravitational acceleration.

Definition at line 48 of file cylunif.c.

References ath_error(), iprob, omega, and rho.

Here is the call graph for this function:

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

Gravitational potential.

Definition at line 24 of file cylunif.c.

References ath_error(), iprob, omega, and rho.

Here is the call graph for this function:

void problem ( Grid *  pG,
Domain *  pDomain 
)

Definition at line 77 of file cylunif.c.

References ath_error(), bphi, br, calloc_3d_array(), cc_pos(), do_nothing_bc(), Gamma_1, il, iprob, iu, jl, ju, kl, ku, left_x1, nx1, nx2, nx3, omega, par_getd(), par_geti(), pgas, r, r1, r2, rho, right_x1, Soln, StaticGravPot, x1GravAcc, x1max, x1min, x2max, and x2min.

Here is the call graph for this function:

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

Definition at line 190 of file cylunif.c.

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

Definition at line 185 of file cylunif.c.

void Userwork_after_loop ( Grid *  pGrid,
Domain *  pDomain 
)

Definition at line 208 of file cylunif.c.

References compute_l1_error(), and Soln.

Here is the call graph for this function:

void Userwork_in_loop ( Grid *  pGrid,
Domain *  pDomain 
)

Definition at line 204 of file cylunif.c.


Variable Documentation

Real bphi [static]

Definition at line 18 of file cylunif.c.

Referenced by problem().

Real br [static]

Definition at line 18 of file cylunif.c.

Referenced by problem().

int iprob [static]

Definition at line 19 of file cylunif.c.

Referenced by grav_acc(), grav_pot(), and problem().

Real omega [static]

Definition at line 18 of file cylunif.c.

Referenced by grav_acc(), grav_pot(), problem(), and Userwork_after_loop().

Real pgas [static]

Definition at line 18 of file cylunif.c.

Referenced by problem().

Real rho [static]
Gas*** Soln = NULL [static]

Definition at line 70 of file cylunif.c.

Referenced by problem(), and Userwork_after_loop().