Functions | Variables

prob/cylnewtmri.c File Reference

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

Detailed Description

Test of the evolution/saturation of the MRI in an unstratified/uniform Newtonian disk.

Definition in file cylnewtmri.c.


Function Documentation

static Real Bp ( const GridS pG,
const int  i,
const int  j,
const int  k 
) [static]

Definition at line 326 of file cylnewtmri.c.

References ConsS::B2c, and GridS::U.

Referenced by problem(), and problem_read_restart().

Here is the caller graph for this function:

static Real BpNet ( const Real  R,
const Real  phi,
const Real  z 
) [static]

Definition at line 97 of file cylnewtmri.c.

References ChiMag(), Mc, and rho0.

Referenced by problem().

Here is the call graph for this function:

Here is the caller graph for this function:

static Real Bpsub ( const GridS pG,
const int  i,
const int  j,
const int  k 
) [static]

Definition at line 376 of file cylnewtmri.c.

References ConsS::B2c, ChiSub(), GridS::U, and x1vc().

Referenced by problem(), and problem_read_restart().

Here is the call graph for this function:

Here is the caller graph for this function:

static Real Br ( const GridS pG,
const int  i,
const int  j,
const int  k 
) [static]

Definition at line 318 of file cylnewtmri.c.

References ConsS::B1c, and GridS::U.

Referenced by problem(), and problem_read_restart().

Here is the caller graph for this function:

static Real Bz ( const GridS pG,
const int  i,
const int  j,
const int  k 
) [static]

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().

Here is the caller graph for this function:

static Real BzNet ( const Real  R,
const Real  phi,
const Real  z 
) [static]

Definition at line 89 of file cylnewtmri.c.

References ChiMag(), and Omega().

Referenced by problem().

Here is the call graph for this function:

Here is the caller graph for this function:

static Real Bzsub ( const GridS pG,
const int  i,
const int  j,
const int  k 
) [static]

Definition at line 389 of file cylnewtmri.c.

References ConsS::B3c, ChiSub(), GridS::U, and x1vc().

Referenced by problem(), and problem_read_restart().

Here is the call graph for this function:

Here is the caller graph for this function:

static Real BzZero ( const Real  R,
const Real  phi,
const Real  z 
) [static]

Definition at line 77 of file cylnewtmri.c.

References ChiMag(), Iso_csound, n, Omega(), and R0.

Referenced by problem().

Here is the call graph for this function:

Here is the caller graph for this function:

static Real ChiMag ( Real  R  )  [static]

Definition at line 105 of file cylnewtmri.c.

Referenced by BpNet(), BzNet(), BzZero(), and problem().

Here is the caller graph for this function:

static Real ChiSub ( Real  R  )  [static]

Definition at line 114 of file cylnewtmri.c.

Referenced by Bpsub(), Bzsub(), Mrpsub(), Msub(), and Pbsub().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

static void dump_vtksub ( MeshS pM,
OutputS pOut 
) [static]
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.

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

Definition at line 55 of file cylnewtmri.c.

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

Definition at line 50 of file cylnewtmri.c.

static Real MdotR1 ( const GridS pG,
const int  i,
const int  j,
const int  k 
) [static]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

static Real MdotR2 ( const GridS pG,
const int  i,
const int  j,
const int  k 
) [static]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

static Real MdotR3 ( const GridS pG,
const int  i,
const int  j,
const int  k 
) [static]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

static Real MdotR4 ( const GridS pG,
const int  i,
const int  j,
const int  k 
) [static]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

Real Mollifier ( Real  Center,
Real  Scl,
Real  x 
)

Definition at line 497 of file cylnewtmri.c.

References a.

static Real Mrp ( const GridS pG,
const int  i,
const int  j,
const int  k 
) [static]

Definition at line 296 of file cylnewtmri.c.

References ConsS::B1c, ConsS::B2c, and GridS::U.

Referenced by problem(), and problem_read_restart().

Here is the caller graph for this function:

static Real Mrpsub ( const GridS pG,
const int  i,
const int  j,
const int  k 
) [static]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

static Real Msub ( const GridS pG,
const int  i,
const int  j,
const int  k 
) [static]

Definition at line 355 of file cylnewtmri.c.

References ChiSub(), ConsS::d, GridS::U, and x1vc().

Referenced by problem(), and problem_read_restart().

Here is the call graph for this function:

Here is the caller graph for this function:

static Real Omega ( const Real  R  )  [static]

Definition at line 63 of file cylnewtmri.c.

Referenced by BzNet(), BzZero(), problem(), and vphi().

Here is the caller graph for this function:

void out_ktab ( MeshS pM,
OutputS pOut 
)
static Real Pb ( const GridS pG,
const int  i,
const int  j,
const int  k 
) [static]

Definition at line 287 of file cylnewtmri.c.

References ConsS::B1c, ConsS::B2c, ConsS::B3c, and GridS::U.

Referenced by ScaleToBeta().

Here is the caller graph for this function:

static Real Pbsub ( const GridS pG,
const int  i,
const int  j,
const int  k 
) [static]

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().

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 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.

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 414 of file cylnewtmri.c.

void ScaleToBeta ( GridS pG,
Real  beta 
)

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().

Here is the call graph for this function:

Here is the caller graph for this function:

static Real Shear ( const Real  R  )  [static]

Definition at line 68 of file cylnewtmri.c.

static Real Trp ( const GridS pG,
const int  i,
const int  j,
const int  k 
) [static]

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().

Here is the caller graph for this function:

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.

static Real Vaz ( const GridS pG,
const int  i,
const int  j,
const int  k 
) [static]

Definition at line 310 of file cylnewtmri.c.

References ConsS::B3c, ConsS::d, and GridS::U.

static Real Vp ( const GridS pG,
const int  i,
const int  j,
const int  k 
) [static]

Definition at line 346 of file cylnewtmri.c.

References ConsS::d, ConsS::M2, and GridS::U.

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

Definition at line 72 of file cylnewtmri.c.

References Omega().

Referenced by problem().

Here is the call graph for this function:

Here is the caller graph for this function:

static Real Vr ( const GridS pG,
const int  i,
const int  j,
const int  k 
) [static]

Definition at line 342 of file cylnewtmri.c.

References ConsS::d, ConsS::M1, and GridS::U.

static Real Vz ( const GridS pG,
const int  i,
const int  j,
const int  k 
) [static]

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().

Here is the caller graph for this function:


Variable Documentation

Real Amp [static]

Definition at line 21 of file cylnewtmri.c.

Referenced by problem().

Real Beta [static]

Definition at line 21 of file cylnewtmri.c.

Referenced by problem().

Real Field [static]

Definition at line 21 of file cylnewtmri.c.

Referenced by problem().

Real Hbc [static]

Definition at line 21 of file cylnewtmri.c.

Referenced by disk_ir(), disk_or(), problem(), and problem_read_restart().

Real Mbc [static]

Definition at line 21 of file cylnewtmri.c.

Referenced by disk_ir(), disk_or(), problem(), and problem_read_restart().

Real Mc [static]

Definition at line 21 of file cylnewtmri.c.

Referenced by BpNet(), and problem().

Real R0 [static]

Definition at line 21 of file cylnewtmri.c.

Referenced by BzZero(), MdotR1(), MdotR2(), MdotR3(), MdotR4(), problem(), and problem_read_restart().

Real rho0 [static]

Definition at line 21 of file cylnewtmri.c.

Real rhomin [static]

Definition at line 21 of file cylnewtmri.c.

Referenced by problem().