Functions | Variables

prob/cylbphi.c File Reference

A simple magnetostatic test of pressure balance using a B-field with uniform phi-component. 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.
Real M2 (const Real x1, const Real x2, const Real x3)
void problem (DomainS *pDomain)
 Problem initial conditions, edited for each problem.
void problem_write_restart (MeshS *pM, FILE *fp)
 Problem specific subroutine for use with writing restart files, Edited for each problem.
void problem_read_restart (MeshS *pM, FILE *fp)
 Problem specific subroutine for use with reading restart files, Edited for each problem.
ConsFun_t get_usr_expr (const char *expr)
 Sets pointer to expression for special output data.
VOutFun_t get_usr_out_fun (const char *name)
 Returns a user defined output function pointer.
void Userwork_in_loop (MeshS *pM)
 Problem work executed during each step in the main Athena loop, see main.c.
void Userwork_after_loop (MeshS *pM)
 Problem work executed after the main Athena loop, see main.c Edited for each problem.

Variables

static Real omega0
static Real rho0
static int iprob
static ConsS *** RootSoln = NULL

Detailed Description

A simple magnetostatic test of pressure balance using a B-field with uniform phi-component.

Definition in file cylbphi.c.


Function Documentation

ConsFun_t get_usr_expr ( const char *  expr  ) 

Sets pointer to expression for special output data.

Definition at line 148 of file cylbphi.c.

VOutFun_t get_usr_out_fun ( const char *  name  ) 

Returns a user defined output function pointer.

Definition at line 153 of file cylbphi.c.

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

Gravitational acceleration.

Definition at line 183 of file cylbphi.c.

References iprob, omega0, and rho0.

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

Gravitational potential.

Definition at line 171 of file cylbphi.c.

References iprob, omega0, and rho0.

Real M2 ( const Real  x1,
const Real  x2,
const Real  x3 
)

Definition at line 195 of file cylbphi.c.

References omega0, and rho0.

void problem ( DomainS pDomain  ) 
void problem_read_restart ( MeshS pM,
FILE *  fp 
)

Problem specific subroutine for use with reading restart files, Edited for each problem.

Definition at line 143 of file cylbphi.c.

void problem_write_restart ( MeshS pM,
FILE *  fp 
)

Problem specific subroutine for use with writing restart files, Edited for each problem.

Definition at line 138 of file cylbphi.c.

void Userwork_after_loop ( MeshS pM  ) 

Problem work executed after the main Athena loop, see main.c Edited for each problem.

Definition at line 162 of file cylbphi.c.

References compute_l1_error().

Here is the call graph for this function:

void Userwork_in_loop ( MeshS pM  ) 

Problem work executed during each step in the main Athena loop, see main.c.

Edited for each problem.

Definition at line 157 of file cylbphi.c.


Variable Documentation

int iprob [static]

Definition at line 26 of file cylbphi.c.

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

Real omega0 [static]

Definition at line 25 of file cylbphi.c.

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

Real rho0 [static]

Definition at line 25 of file cylbphi.c.

ConsS*** RootSoln = NULL [static]

Definition at line 30 of file cylbphi.c.