Functions | Variables

prob/cyladvect.c File Reference

A simple density-pulse advection test in cylindrical coordinates with no pressure or tension forces. 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 d (const Real x1, const Real x2, const Real x3)
 Density.
Real M2 (const Real x1, const Real x2, const Real x3)
 2-component of momentum
void cyladvect_ix1 (GridS *pG)
 Inner-R boundary conditions.
void cyladvect_ox1 (GridS *pG)
 B_R = B_0/R boundary conditions, Outer x1 boundary.
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 Real bz0
static Real vz0
static Real Pgas0
static Real amp
static Real R0
static Real phi0
static Real z0
static Real rad
static Real alpha
static Real x2min
static Real x2max
static int iprob
static ConsS *** RootSoln = NULL

Detailed Description

A simple density-pulse advection test in cylindrical coordinates with no pressure or tension forces.

Definition in file cyladvect.c.


Function Documentation

void cyladvect_ix1 ( GridS pG  ) 

Inner-R boundary conditions.

d, M2, B1, B1i, and P are all functions of R, phi, and t.

Definition at line 237 of file cyladvect.c.

References alpha, avg2d(), ConsS::B3c, bz0, d(), ConsS::d, ConsS::E, Gamma_1, GridS::is, GridS::je, GridS::js, GridS::ke, GridS::ks, ConsS::M1, M2(), ConsS::M2, ConsS::M3, omega0, Pgas0, phi0, GridS::time, GridS::U, vz0, and x2min.

Referenced by problem().

Here is the call graph for this function:

Here is the caller graph for this function:

void cyladvect_ox1 ( GridS pG  ) 

B_R = B_0/R boundary conditions, Outer x1 boundary.

Definition at line 279 of file cyladvect.c.

References alpha, avg2d(), ConsS::B3c, bz0, d(), ConsS::d, ConsS::E, Gamma_1, GridS::ie, GridS::je, GridS::js, GridS::ke, GridS::ks, ConsS::M1, M2(), ConsS::M2, ConsS::M3, omega0, Pgas0, phi0, GridS::time, GridS::U, vz0, and x2min.

Referenced by problem().

Here is the call graph for this function:

Here is the caller graph for this function:

Real d ( const Real  x1,
const Real  x2,
const Real  x3 
)
ConsFun_t get_usr_expr ( const char *  expr  ) 

Sets pointer to expression for special output data.

Definition at line 172 of file cyladvect.c.

VOutFun_t get_usr_out_fun ( const char *  name  ) 

Returns a user defined output function pointer.

Definition at line 177 of file cyladvect.c.

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

Gravitational acceleration.

Definition at line 227 of file cyladvect.c.

References omega0.

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

Gravitational potential.

Definition at line 221 of file cyladvect.c.

References omega0.

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

2-component of momentum

Definition at line 215 of file cyladvect.c.

References d(), and omega0.

Referenced by cyladvect_ix1(), cyladvect_ox1(), cylbr_ix1(), cylbr_ox1(), dmrbv_ijb(), problem(), and ProCon().

Here is the call graph for this function:

Here is the caller graph for this function:

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 167 of file cyladvect.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 162 of file cyladvect.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 188 of file cyladvect.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 181 of file cyladvect.c.

References compute_div_b(), MeshS::Domain, and DomainS::Grid.

Here is the call graph for this function:


Variable Documentation

Real alpha [static]

Definition at line 24 of file cyladvect.c.

Referenced by cyladvect_ix1(), cyladvect_ox1(), d(), and problem().

Real amp [static]
Real bz0 [static]

Definition at line 24 of file cyladvect.c.

Referenced by cyladvect_ix1(), cyladvect_ox1(), and problem().

int iprob [static]

Definition at line 25 of file cyladvect.c.

Referenced by d(), and problem().

Real omega0 [static]

Definition at line 24 of file cyladvect.c.

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

Real Pgas0 [static]

Definition at line 24 of file cyladvect.c.

Referenced by cyladvect_ix1(), cyladvect_ox1(), and problem().

Real phi0 [static]

Definition at line 24 of file cyladvect.c.

Referenced by cyladvect_ix1(), cyladvect_ox1(), d(), and problem().

Real R0 [static]

Definition at line 24 of file cyladvect.c.

Referenced by d(), and problem().

Real rad [static]
Real rho0 [static]
ConsS*** RootSoln = NULL [static]

Definition at line 32 of file cyladvect.c.

Real vz0 [static]

Definition at line 24 of file cyladvect.c.

Referenced by cyladvect_ix1(), cyladvect_ox1(), and problem().

Real x2max [static]

Definition at line 24 of file cyladvect.c.

Real x2min [static]

Definition at line 24 of file cyladvect.c.

Real z0 [static]

Definition at line 24 of file cyladvect.c.

Referenced by d(), problem(), and ShearingBoxPot().