Test of the evolution/saturation of the MRI in an unstratified/uniform Newtonian disk. More...
Go to the source code of this file.
Functions | |
Real | Mollifier (Real Center, Real Scl, Real x) |
void | ScaleToBeta (GridS *pG, Real beta) |
void | disk_ir (GridS *pG) |
void | disk_or (GridS *pG) |
static Real | ChiMag (Real R) |
static Real | ChiSub (Real R) |
static Real | Mrp (const GridS *pG, const int i, const int j, const int k) |
static Real | Trp (const GridS *pG, const int i, const int j, const int k) |
static Real | Pb (const GridS *pG, const int i, const int j, const int k) |
static Real | Vaz (const GridS *pG, const int i, const int j, const int k) |
static Real | Br (const GridS *pG, const int i, const int j, const int k) |
static Real | Bp (const GridS *pG, const int i, const int j, const int k) |
static Real | Bz (const GridS *pG, const int i, const int j, const int k) |
static Real | Vr (const GridS *pG, const int i, const int j, const int k) |
static Real | Vp (const GridS *pG, const int i, const int j, const int k) |
static Real | Vz (const GridS *pG, const int i, const int j, const int k) |
static Real | MdotR1 (const GridS *pG, const int i, const int j, const int k) |
static Real | MdotR2 (const GridS *pG, const int i, const int j, const int k) |
static Real | MdotR3 (const GridS *pG, const int i, const int j, const int k) |
static Real | MdotR4 (const GridS *pG, const int i, const int j, const int k) |
static Real | Msub (const GridS *pG, const int i, const int j, const int k) |
static Real | Mrpsub (const GridS *pG, const int i, const int j, const int k) |
static Real | Bzsub (const GridS *pG, const int i, const int j, const int k) |
static Real | Bpsub (const GridS *pG, const int i, const int j, const int k) |
static Real | Pbsub (const GridS *pG, const int i, const int j, const int k) |
static void | dump_vtksub (MeshS *pM, OutputS *pOut) |
void | out_ktab (MeshS *pM, OutputS *pOut) |
static Real | grav_pot (const Real x1, const Real x2, const Real x3) |
static Real | grav_acc (const Real x1, const Real x2, const Real x3) |
static Real | Omega (const Real R) |
static Real | Shear (const Real R) |
static Real | vphi (const Real x1, const Real x2, const Real x3) |
static Real | BzZero (const Real R, const Real phi, const Real z) |
static Real | BzNet (const Real R, const Real phi, const Real z) |
static Real | BpNet (const Real R, const Real phi, const Real z) |
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 | rho0 |
static Real | Amp |
static Real | Beta |
static Real | R0 |
static Real | rhomin |
static Real | Field |
static Real | Hbc |
static Real | Mbc |
static Real | Mc |
Test of the evolution/saturation of the MRI in an unstratified/uniform Newtonian disk.
Definition in file cylnewtmri.c.
Definition at line 326 of file cylnewtmri.c.
References ConsS::B2c, and GridS::U.
Referenced by problem(), and problem_read_restart().
Definition at line 376 of file cylnewtmri.c.
References ConsS::B2c, ChiSub(), GridS::U, and x1vc().
Referenced by problem(), and problem_read_restart().
Definition at line 318 of file cylnewtmri.c.
References ConsS::B1c, and GridS::U.
Referenced by problem(), and problem_read_restart().
Definition at line 334 of file cylnewtmri.c.
References ConsS::B3c, and GridS::U.
Referenced by integrate_2d_ctu(), integrate_2d_vl(), integrate_3d_ctu(), integrate_3d_vl(), integrate_emf3_corner(), lr_states(), problem(), and problem_read_restart().
Definition at line 89 of file cylnewtmri.c.
References ChiMag(), and Omega().
Referenced by problem().
Definition at line 389 of file cylnewtmri.c.
References ConsS::B3c, ChiSub(), GridS::U, and x1vc().
Referenced by problem(), and problem_read_restart().
Definition at line 77 of file cylnewtmri.c.
References ChiMag(), Iso_csound, n, Omega(), and R0.
Referenced by problem().
void disk_ir | ( | GridS * | pG | ) |
Definition at line 573 of file cylnewtmri.c.
References ConsS::B1c, GridS::B1i, ConsS::B2c, GridS::B2i, ConsS::B3c, GridS::B3i, cc_pos(), ConsS::d, GridS::dx1, Hbc, GridS::is, GridS::je, GridS::js, ju, GridS::ke, GridS::ks, ku, ConsS::M1, ConsS::M2, Mbc, GridS::Nx, GridS::U, and x1GravAcc.
Referenced by problem(), and problem_read_restart().
void disk_or | ( | GridS * | pG | ) |
Definition at line 679 of file cylnewtmri.c.
References ConsS::B1c, GridS::B1i, ConsS::B2c, GridS::B2i, ConsS::B3c, GridS::B3i, cc_pos(), ConsS::d, Hbc, GridS::ie, GridS::je, GridS::js, ju, GridS::ke, GridS::ks, ku, ConsS::M1, ConsS::M2, Mbc, GridS::Nx, GridS::r, GridS::ri, GridS::U, and x1GravAcc.
Referenced by problem(), and problem_read_restart().
Definition at line 781 of file cylnewtmri.c.
References ath_big_endian(), ath_bswap(), ath_error(), ath_fname(), ConsS::B1c, ConsS::B2c, ConsS::B3c, cc_pos(), ConsS::d, data, MeshS::Domain, GridS::dx1, GridS::dx2, GridS::dx3, DomainS::Grid, GridS::ie, il, GridS::is, iu, GridS::je, jl, GridS::js, ju, GridS::ke, kl, GridS::ks, ku, ConsS::M1, ConsS::M2, ConsS::M3, GridS::MaxX, GridS::MinX, OutputS::num, GridS::Nx, MeshS::outfilename, GridS::time, and GridS::U.
ConsFun_t get_usr_expr | ( | const char * | expr | ) |
Sets pointer to expression for special output data.
Definition at line 458 of file cylnewtmri.c.
VOutFun_t get_usr_out_fun | ( | const char * | name | ) |
Returns a user defined output function pointer.
Definition at line 479 of file cylnewtmri.c.
Definition at line 55 of file cylnewtmri.c.
Definition at line 50 of file cylnewtmri.c.
Definition at line 240 of file cylnewtmri.c.
References cc_pos(), GridS::dx1, ConsS::M1, R0, and GridS::U.
Referenced by problem(), and problem_read_restart().
Definition at line 253 of file cylnewtmri.c.
References cc_pos(), GridS::dx1, ConsS::M1, R0, and GridS::U.
Referenced by problem(), and problem_read_restart().
Definition at line 265 of file cylnewtmri.c.
References cc_pos(), GridS::dx1, ConsS::M1, R0, and GridS::U.
Referenced by problem(), and problem_read_restart().
Definition at line 276 of file cylnewtmri.c.
References cc_pos(), GridS::dx1, ConsS::M1, R0, and GridS::U.
Referenced by problem(), and problem_read_restart().
Definition at line 497 of file cylnewtmri.c.
References a.
Definition at line 296 of file cylnewtmri.c.
References ConsS::B1c, ConsS::B2c, and GridS::U.
Referenced by problem(), and problem_read_restart().
Definition at line 363 of file cylnewtmri.c.
References ConsS::B1c, ConsS::B2c, ChiSub(), GridS::U, and x1vc().
Referenced by problem(), and problem_read_restart().
Definition at line 355 of file cylnewtmri.c.
References ChiSub(), ConsS::d, GridS::U, and x1vc().
Referenced by problem(), and problem_read_restart().
Definition at line 938 of file cylnewtmri.c.
References ath_error(), ath_fname(), OutputS::dat_fmt, data, GridS::Disp, MeshS::Domain, free_1d_array(), OutputS::gmax, OutputS::gmin, DomainS::Grid, OutputS::id, minmax1(), OutputS::num, nx1, OutData1(), and MeshS::outfilename.
Definition at line 287 of file cylnewtmri.c.
References ConsS::B1c, ConsS::B2c, ConsS::B3c, and GridS::U.
Referenced by ScaleToBeta().
Definition at line 402 of file cylnewtmri.c.
References ConsS::B1c, ConsS::B2c, ConsS::B3c, ChiSub(), GridS::U, and x1vc().
Referenced by problem(), and problem_read_restart().
void problem | ( | DomainS * | pDomain | ) |
Problem initial conditions, edited for each problem.
Definition at line 127 of file cylnewtmri.c.
References Amp, avg1d(), ConsS::B1c, GridS::B1i, ConsS::B2c, GridS::B2i, ConsS::B3c, GridS::B3i, Beta, Bp(), BpNet(), Bpsub(), Br(), bvals_mhd_fun(), Bz(), BzNet(), Bzsub(), BzZero(), cc_pos(), ChiMag(), ConsS::d, disk_ir(), disk_or(), dump_history_enroll(), Field, DomainS::Grid, Hbc, GridS::ie, il, GridS::is, Iso_csound, iu, GridS::je, jl, GridS::js, ju, GridS::ke, kl, GridS::ks, ku, left_x1, ConsS::M1, ConsS::M2, ConsS::M3, Mbc, Mc, MdotR1(), MdotR2(), MdotR3(), MdotR4(), Mrp(), Mrpsub(), Msub(), myID_Comm_world, nx1, nx2, nx3, OrbitalProfile, par_getd_def(), Pbsub(), r, R0, rho0, rhomin, right_x1, ScaleToBeta(), ShearProfile, StaticGravPot, Trp(), GridS::U, vphi(), x1GravAcc, and x1vc().
void problem_read_restart | ( | MeshS * | pM, | |
FILE * | fp | |||
) |
Problem specific subroutine for use with reading restart files, Edited for each problem.
Definition at line 419 of file cylnewtmri.c.
References Bp(), Bpsub(), Br(), bvals_mhd_fun(), Bz(), Bzsub(), disk_ir(), disk_or(), MeshS::Domain, dump_history_enroll(), Hbc, left_x1, Mbc, MdotR1(), MdotR2(), MdotR3(), MdotR4(), Mrp(), Mrpsub(), Msub(), OrbitalProfile, par_getd_def(), Pbsub(), R0, right_x1, ShearProfile, StaticGravPot, Trp(), and x1GravAcc.
void problem_write_restart | ( | MeshS * | pM, | |
FILE * | fp | |||
) |
Problem specific subroutine for use with writing restart files, Edited for each problem.
Definition at line 414 of file cylnewtmri.c.
Definition at line 511 of file cylnewtmri.c.
References ConsS::B1c, GridS::B1i, ConsS::B2c, GridS::B2i, ConsS::B3c, GridS::B3i, ConsS::d, GridS::dx1, GridS::dx2, GridS::dx3, ConsS::E, Gamma, GridS::ie, il, GridS::is, Iso_csound2, iu, GridS::je, jl, GridS::js, ju, GridS::ke, kl, GridS::ks, ku, nx1, nx2, nx3, Pb(), Pgas(), GridS::r, and GridS::U.
Referenced by problem().
Definition at line 68 of file cylnewtmri.c.
Definition at line 305 of file cylnewtmri.c.
References ConsS::d, ConsS::M1, ConsS::M2, and GridS::U.
Referenced by problem(), and problem_read_restart().
void Userwork_after_loop | ( | MeshS * | pM | ) |
Problem work executed after the main Athena loop, see main.c Edited for each problem.
Definition at line 492 of file cylnewtmri.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 488 of file cylnewtmri.c.
Definition at line 310 of file cylnewtmri.c.
References ConsS::B3c, ConsS::d, and GridS::U.
Definition at line 346 of file cylnewtmri.c.
Definition at line 72 of file cylnewtmri.c.
References Omega().
Referenced by problem().
Definition at line 342 of file cylnewtmri.c.
Definition at line 350 of file cylnewtmri.c.
References ConsS::d, ConsS::M3, and GridS::U.
Referenced by integrate_1d_vl(), integrate_2d_vl(), and integrate_3d_vl().
Definition at line 21 of file cylnewtmri.c.
Referenced by problem().
Definition at line 21 of file cylnewtmri.c.
Referenced by problem().
Definition at line 21 of file cylnewtmri.c.
Referenced by problem().
Definition at line 21 of file cylnewtmri.c.
Referenced by disk_ir(), disk_or(), problem(), and problem_read_restart().
Definition at line 21 of file cylnewtmri.c.
Referenced by disk_ir(), disk_or(), problem(), and problem_read_restart().
Definition at line 21 of file cylnewtmri.c.
Referenced by BzZero(), MdotR1(), MdotR2(), MdotR3(), MdotR4(), problem(), and problem_read_restart().
Definition at line 21 of file cylnewtmri.c.
Definition at line 21 of file cylnewtmri.c.
Referenced by problem().