Functions | Variables

prob/cylrayleigh.c File Reference

A test of the Rayleigh instability using omega(R) = omega_0/R^q. 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 (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.
Real M2 (const Real x1, const Real x2, const Real x3)

Variables

static Real rho0
static Real omega0
static Real q

Detailed Description

A test of the Rayleigh instability using omega(R) = omega_0/R^q.

Definition in file cylrayleigh.c.


Function Documentation

ConsFun_t get_usr_expr ( const char *  expr  ) 

Sets pointer to expression for special output data.

Definition at line 140 of file cylrayleigh.c.

VOutFun_t get_usr_out_fun ( const char *  name  ) 

Returns a user defined output function pointer.

Definition at line 145 of file cylrayleigh.c.

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

Gravitational acceleration.

Definition at line 173 of file cylrayleigh.c.

References omega, omega0, and q.

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

Gravitational potential.

Definition at line 161 of file cylrayleigh.c.

References omega, omega0, and q.

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

Definition at line 180 of file cylrayleigh.c.

References omega0, q, and rho0.

void problem ( DomainS pDomain  ) 

Problem initial conditions, edited for each problem.

Definition at line 26 of file cylrayleigh.c.

References ath_error(), avg1d(), ConsS::B1c, ConsS::B2c, GridS::B2i, ConsS::B3c, bvals_mhd_fun(), cc_pos(), ConsS::d, do_nothing_bc(), GridS::dx1, ConsS::E, Gamma_1, DomainS::Grid, GridS::ie, il, GridS::is, iu, GridS::je, jl, GridS::js, ju, GridS::ke, kl, GridS::ks, ku, left_x1, ConsS::M1, M2(), ConsS::M2, ConsS::M3, nx1, nx2, nx3, omega, omega0, par_getd(), pgas0, q, r, rho0, right_x1, StaticGravPot, GridS::U, and x1GravAcc.

Here is the call graph for this function:

void problem_read_restart ( MeshS pM,
FILE *  fp 
)

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

Definition at line 127 of file cylrayleigh.c.

References bvals_mhd_fun(), do_nothing_bc(), left_x1, omega0, par_getd(), q, rho0, right_x1, StaticGravPot, and x1GravAcc.

Here is the call graph for this function:

void problem_write_restart ( MeshS pM,
FILE *  fp 
)

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

Definition at line 122 of file cylrayleigh.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 153 of file cylrayleigh.c.

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 149 of file cylrayleigh.c.


Variable Documentation

Real omega0 [static]

Definition at line 19 of file cylrayleigh.c.

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

Real q [static]

Definition at line 19 of file cylrayleigh.c.

Referenced by grav_acc(), grav_pot(), M2(), new_dt(), problem(), problem_read_restart(), and QUARTIC().

Real rho0 [static]

Definition at line 19 of file cylrayleigh.c.