Functions | Variables

prob/cylbr.c File Reference

A dynamic test of force balance using a B_R-only, time-dependent, non-axisymmetric magnetic field. More...

Go to the source code of this file.

Functions

Real d (const Real x1, const Real x2, const Real x3)
Real M2 (const Real x1, const Real x2, const Real x3)
Real B1 (const Real x1, const Real x2, const Real x3)
 1-component of B field
Real B1i (const Real x2)
 1-component of B field at interface
Real Pgas (const Real x1, const Real x2, const Real x3)
 gas pressure
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 cylbr_ix1 (GridS *pG)
 Inner-R boundary conditions.
void cylbr_ox1 (GridS *pG)
 B_R = B_0/R boundary conditions, Outer x1 boundary.
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 br0
static Real omega0
static Real vz0
static Real rho0
static Real pgas0
static Real a
static Real x2min
static Real x2max
static Real phi0
static Real x1save
static Real x3save
static ConsS *** RootSoln = NULL

Detailed Description

A dynamic test of force balance using a B_R-only, time-dependent, non-axisymmetric magnetic field.

Definition in file cylbr.c.


Function Documentation

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

1-component of B field

Definition at line 190 of file cylbr.c.

References a, br0, and phi0.

Referenced by B1i(), cylbr_ix1(), cylbr_ox1(), and problem().

Here is the caller graph for this function:

Real B1i ( const Real  x2  ) 

1-component of B field at interface

Definition at line 196 of file cylbr.c.

References B1(), x1save, and x3save.

Referenced by cylbr_ix1(), cylbr_ox1(), and problem().

Here is the call graph for this function:

Here is the caller graph for this function:

void cylbr_ix1 ( GridS pG  ) 

Inner-R boundary conditions.

d, M2, B1, B1i, and P are all functions of R, phi, and t.

Definition at line 212 of file cylbr.c.

References a, avg2d(), B1(), ConsS::B1c, B1i(), GridS::B1i, ConsS::B2c, ConsS::B3c, cc_pos(), d(), ConsS::d, GridS::dx1, GridS::dx2, ConsS::E, Gamma_1, GridS::is, GridS::je, GridS::js, GridS::ke, GridS::ks, ConsS::M1, M2(), ConsS::M2, ConsS::M3, omega0, Pgas(), phi0, qsimp(), GridS::time, GridS::U, vz0, x1save, x2min, and x3save.

Referenced by problem().

Here is the call graph for this function:

Here is the caller graph for this function:

void cylbr_ox1 ( GridS pG  ) 

B_R = B_0/R boundary conditions, Outer x1 boundary.

Definition at line 253 of file cylbr.c.

References a, avg2d(), B1(), ConsS::B1c, B1i(), GridS::B1i, ConsS::B2c, ConsS::B3c, cc_pos(), d(), ConsS::d, GridS::dx1, GridS::dx2, ConsS::E, Gamma_1, GridS::ie, GridS::je, GridS::js, GridS::ke, GridS::ks, ConsS::M1, M2(), ConsS::M2, ConsS::M3, omega0, Pgas(), phi0, qsimp(), GridS::time, GridS::U, vz0, x1save, x2min, and x3save.

Referenced by problem().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 178 of file cylbr.c.

References a, phi0, and rho0.

ConsFun_t get_usr_expr ( const char *  expr  ) 

Sets pointer to expression for special output data.

Definition at line 143 of file cylbr.c.

VOutFun_t get_usr_out_fun ( const char *  name  ) 

Returns a user defined output function pointer.

Definition at line 148 of file cylbr.c.

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

Gravitational acceleration.

Definition at line 172 of file cylbr.c.

References br0, and omega0.

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

Gravitational potential.

Definition at line 166 of file cylbr.c.

References br0, and omega0.

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

Definition at line 184 of file cylbr.c.

References a, omega0, phi0, and rho0.

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

gas pressure

Definition at line 202 of file cylbr.c.

References a, br0, pgas0, phi0, and rho0.

Referenced by cylbr_ix1(), cylbr_ox1(), problem(), and ScaleToBeta().

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 138 of file cylbr.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 133 of file cylbr.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 157 of file cylbr.c.

References compute_l1_error().

Here is the call graph for this function:

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 152 of file cylbr.c.

References compute_div_b(), MeshS::Domain, and DomainS::Grid.

Here is the call graph for this function:


Variable Documentation

Real a [static]
Real br0 [static]

Definition at line 31 of file cylbr.c.

Referenced by B1(), grav_acc(), grav_pot(), Pgas(), and problem().

Real omega0 [static]

Definition at line 31 of file cylbr.c.

Referenced by cylbr_ix1(), cylbr_ox1(), grav_acc(), grav_pot(), M2(), and problem().

Real pgas0 [static]

Definition at line 31 of file cylbr.c.

Referenced by Pgas(), and problem().

Real phi0 [static]

Definition at line 31 of file cylbr.c.

Referenced by B1(), cylbr_ix1(), cylbr_ox1(), d(), M2(), Pgas(), and problem().

Real rho0 [static]

Definition at line 31 of file cylbr.c.

ConsS*** RootSoln = NULL [static]

Definition at line 41 of file cylbr.c.

Real vz0 [static]

Definition at line 31 of file cylbr.c.

Referenced by cylbr_ix1(), cylbr_ox1(), and problem().

Real x1save [static]

Definition at line 31 of file cylbr.c.

Referenced by B1i(), cylbr_ix1(), cylbr_ox1(), and problem().

Real x2max [static]

Definition at line 31 of file cylbr.c.

Real x2min [static]

Definition at line 31 of file cylbr.c.

Real x3save [static]

Definition at line 31 of file cylbr.c.

Referenced by B1i(), cylbr_ix1(), cylbr_ox1(), and problem().