Problem generator for spherical collapse. More...
Go to the source code of this file.
Functions | |
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 | d0 |
static Real | d1 |
static Real | p0 |
static Real | vx0 |
static Real | vy0 |
static Real | vz0 |
static Real | bx0 |
static Real | by0 |
static Real | bz0 |
static Real | radius |
Problem generator for spherical collapse.
Gravity test.
Definition in file collapse3d.c.
ConsFun_t get_usr_expr | ( | const char * | expr | ) |
Sets pointer to expression for special output data.
Definition at line 241 of file collapse3d.c.
VOutFun_t get_usr_out_fun | ( | const char * | name | ) |
Returns a user defined output function pointer.
Definition at line 246 of file collapse3d.c.
void problem | ( | DomainS * | pDomain | ) |
Problem initial conditions, edited for each problem.
Definition at line 27 of file collapse3d.c.
References ath_error(), ConsS::B1c, GridS::B1i, ConsS::B2c, GridS::B2i, ConsS::B3c, GridS::B3i, bx0, by0, bz0, cc_pos(), ConsS::d, d0, d1, GridS::dx1, GridS::dx2, GridS::dx3, ConsS::E, four_pi_G, Gamma_1, DomainS::Grid, GridS::ie, GridS::is, GridS::je, GridS::js, GridS::ke, GridS::ks, ConsS::M1, ConsS::M2, ConsS::M3, myID_Comm_world, nx1, nx2, nx3, p0, par_getd(), par_geti(), r2, radius, GridS::U, vx0, vy0, vz0, x1max, x1min, x2max, x2min, x3max, and x3min.
void problem_read_restart | ( | MeshS * | pM, | |
FILE * | fp | |||
) |
Problem specific subroutine for use with reading restart files, Edited for each problem.
Definition at line 236 of file collapse3d.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 228 of file collapse3d.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 255 of file collapse3d.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 250 of file collapse3d.c.
Definition at line 19 of file collapse3d.c.
Referenced by problem().
Definition at line 19 of file collapse3d.c.
Referenced by problem().
Definition at line 19 of file collapse3d.c.
Referenced by problem().
Definition at line 19 of file collapse3d.c.
Referenced by dmrbv_iib(), dmrbv_ijb(), dmrbv_ojb(), noh3d_oib(), noh3d_ojb(), noh3d_okb(), outflow_ix1(), outflow_ix3(), outflow_ox1(), outflow_ox2(), outflow_ox3(), problem(), and problem_read_restart().
Definition at line 19 of file collapse3d.c.
Referenced by dump_history(), dump_tab_prim(), integrate_1d_ctu(), integrate_2d_ctu(), integrate_3d_ctu(), and problem().
Definition at line 19 of file collapse3d.c.
Referenced by fluxes(), outflow_ix1(), outflow_ix3(), outflow_ox1(), outflow_ox2(), outflow_ox3(), and problem().
Definition at line 19 of file collapse3d.c.
Referenced by problem().
Definition at line 19 of file collapse3d.c.
Referenced by problem().
Definition at line 19 of file collapse3d.c.
Referenced by problem().
Definition at line 19 of file collapse3d.c.
Referenced by problem().