Problem generator for blast wave in cylindrical coords. 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 |
Problem generator for blast wave in cylindrical coords.
PURPOSE: Problem generator for blast wave in cylindrical coords. Can only be run in 2D or 3D. Input parameters are:
REFERENCE: P. Londrillo & L. Del Zanna, "High-order upwind schemes for multidimensional MHD", ApJ, 530, 508 (2000), and references therein.
Definition in file cylblast.c.
ConsFun_t get_usr_expr | ( | const char * | expr | ) |
Sets pointer to expression for special output data.
Definition at line 165 of file cylblast.c.
VOutFun_t get_usr_out_fun | ( | const char * | name | ) |
Returns a user defined output function pointer.
Definition at line 170 of file cylblast.c.
Definition at line 198 of file cylblast.c.
void problem | ( | DomainS * | pDomain | ) |
Problem initial conditions, edited for each problem.
Definition at line 44 of file cylblast.c.
References ath_error(), b0, ConsS::B1c, GridS::B1i, ConsS::B2c, GridS::B2i, ConsS::B3c, GridS::B3i, bvals_mhd_fun(), cc_pos(), ConsS::d, do_nothing_bc(), GridS::dx2, 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, left_x2, ConsS::M1, ConsS::M2, ConsS::M3, nx1, nx2, nx3, omega0, par_getd(), phi0, r0, radius, rho0, right_x1, right_x2, StaticGravPot, GridS::U, x0, x1GravAcc, and z0.
void problem_read_restart | ( | MeshS * | pM, | |
FILE * | fp | |||
) |
Problem specific subroutine for use with reading restart files, Edited for each problem.
Definition at line 160 of file cylblast.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 155 of file cylblast.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 178 of file cylblast.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 174 of file cylblast.c.
Definition at line 35 of file cylblast.c.
Referenced by grav_acc(), grav_pot(), M2(), and problem().
Definition at line 35 of file cylblast.c.