Functions | Variables

integrators/integrate_2d_ctu.c File Reference

Integrate MHD equations in 2D using the directionally unsplit CTU method of Colella (1990). More...

Go to the source code of this file.

Functions

static void integrate_emf3_corner (GridS *pG)
 Corner EMF terms in the upwind CT method.
void integrate_2d_ctu (DomainS *pD)
 CTU integrator in 2D.
void integrate_init_2d (MeshS *pM)
 Allocate temporary integration arrays.
void integrate_destruct_2d (void)
 Free temporary integration arrays.

Variables

static Cons1DS ** Ul_x1Face = NULL
static Cons1DS ** Ur_x1Face = NULL
static Cons1DS ** Ul_x2Face = NULL
static Cons1DS ** Ur_x2Face = NULL
static Cons1DS ** x1Flux = NULL
static Cons1DS ** x2Flux = NULL
static Real ** B1_x1Face = NULL
static Real ** B2_x2Face = NULL
static Real ** emf3 = NULL
static Real ** emf3_cc = NULL
static RealBxc = NULL
static RealBxi = NULL
static Prim1DSW = NULL
static Prim1DSWl = NULL
static Prim1DSWr = NULL
static Cons1DSU1d = NULL
static Cons1DSUl = NULL
static Cons1DSUr = NULL
static Real ** dhalf = NULL
static Real ** phalf = NULL
Real etah
static Real ** eta1 = NULL
static Real ** eta2 = NULL
static Real ** geom_src = NULL

Detailed Description

Integrate MHD equations in 2D using the directionally unsplit CTU method of Colella (1990).

PURPOSE: Integrate MHD equations in 2D using the directionally unsplit CTU method of Colella (1990). The variables updated are:

REFERENCES:

CONTAINS PUBLIC FUNCTIONS:

Definition in file integrate_2d_ctu.c.


Function Documentation

void integrate_2d_ctu ( DomainS pD  ) 

CTU integrator in 2D.

The numbering of steps follows the numbering in the 3D version. NOT ALL STEPS ARE NEEDED IN 2D.

Definition at line 97 of file integrate_2d_ctu.c.

References B1_x1Face, ConsS::B1c, GridS::B1i, B2_x2Face, ConsS::B2c, GridS::B2i, ConsS::B3c, GridS::B3i, Bxc, Bxi, Prim1DS::By, Cons1DS::By, Prim1DS::Bz, Bz(), Cons1DS::Bz, cc_pos(), cfast(), GridS::CGrid, Cons1D_to_Prim1D(), CoolingFunc, GridS::Coup, d(), Prim1DS::d, ConsS::d, Cons1DS::d, d1, dby, dhalf, dim, GridS::dt, GridS::dx1, GridS::dx2, E, ConsS::E, Cons1DS::E, GPCouple::Eloss, emf3, emf3_cc, eta1, eta2, etah, exchange_feedback(), GPCouple::fb1, GPCouple::fb2, GPCouple::fb3, feedback_predictor(), fluxes(), four_pi_G, Gamma, Gamma_1, geom_src, grav_mean_rho, DomainS::Grid, GPCouple::grid_cs, GPCouple::grid_d, GPCouple::grid_v1, GPCouple::grid_v2, GPCouple::grid_v3, GridS::ie, GridOvrlpS::ijke, GridOvrlpS::ijks, il, integrate_emf3_corner(), Integrate_Particles(), GridS::is, Iso_csound2, iu, GridS::je, jl, GridS::js, ju, GridS::ks, lr_states(), ConsS::M1, ConsS::M2, ConsS::M3, Cons1DS::Mx, Cons1DS::My, GridOvrlpS::myEMF3, GridOvrlpS::myFlx, Cons1DS::Mz, n, GridS::NCGrid, GridS::NPGrid, Omega_0, Prim1DS::P, Cons1DS::Pflux, GridS::PGrid, phalf, GridS::Phi, Prim1D_to_Cons1D(), qshear, GridS::r, r, GridS::ri, ri, Cons1DS::s, ConsS::s, s, ShBoxCoord, ShearingBoxPot, StaticGravPot, GridS::U, Ur_x1Face, Ur_x2Face, Prim1DS::Vx, Prim1DS::Vy, Prim1DS::Vz, Wl, Wr, GridS::x1MassFlux, x1vc(), x2Flux, and GridS::x2MassFlux.

Here is the call graph for this function:

void integrate_destruct_2d ( void   ) 

Free temporary integration arrays.

Definition at line 1981 of file integrate_2d_ctu.c.

Referenced by integrate_destruct().

Here is the caller graph for this function:

static void integrate_emf3_corner ( GridS pG  )  [static]

Corner EMF terms in the upwind CT method.

Definition at line 2028 of file integrate_2d_ctu.c.

References Cons1DS::By, Bz(), Cons1DS::Bz, d(), emf3, emf3_cc, GridS::ie, GridS::is, GridS::je, GridS::js, GridS::r, GridS::ri, and x2Flux.

Referenced by integrate_2d_ctu().

Here is the call graph for this function:

Here is the caller graph for this function:

void integrate_init_2d ( MeshS pM  ) 

Allocate temporary integration arrays.

Definition at line 1885 of file integrate_2d_ctu.c.

Referenced by integrate_init().

Here is the caller graph for this function:


Variable Documentation

Real** B1_x1Face = NULL [static]

Definition at line 56 of file integrate_2d_ctu.c.

Referenced by integrate_2d_ctu(), integrate_destruct_2d(), and integrate_init_2d().

Real ** B2_x2Face = NULL [static]

Definition at line 56 of file integrate_2d_ctu.c.

Referenced by integrate_2d_ctu(), integrate_destruct_2d(), and integrate_init_2d().

Real* Bxc = NULL [static]

Definition at line 61 of file integrate_2d_ctu.c.

Referenced by integrate_2d_ctu(), integrate_destruct_2d(), and integrate_init_2d().

Real * Bxi = NULL [static]

Definition at line 61 of file integrate_2d_ctu.c.

Referenced by integrate_2d_ctu(), integrate_destruct_2d(), and integrate_init_2d().

Real** dhalf = NULL [static]

Definition at line 66 of file integrate_2d_ctu.c.

Referenced by integrate_2d_ctu(), integrate_destruct_2d(), and integrate_init_2d().

Real** emf3 = NULL [static]
Real ** emf3_cc = NULL [static]
Real** eta1 = NULL [static]

Definition at line 71 of file integrate_2d_ctu.c.

Referenced by integrate_2d_ctu(), integrate_destruct_2d(), and integrate_init_2d().

Real ** eta2 = NULL [static]

Definition at line 71 of file integrate_2d_ctu.c.

Referenced by integrate_2d_ctu(), integrate_destruct_2d(), and integrate_init_2d().

Definition at line 33 of file roe.c.

Referenced by fluxes(), integrate_2d_ctu(), integrate_2d_vl(), integrate_3d_ctu(), and integrate_3d_vl().

Real** geom_src = NULL [static]

Definition at line 76 of file integrate_2d_ctu.c.

Referenced by integrate_2d_ctu(), integrate_destruct_2d(), and integrate_init_2d().

Real ** phalf = NULL [static]

Definition at line 66 of file integrate_2d_ctu.c.

Referenced by integrate_2d_ctu(), integrate_destruct_2d(), and integrate_init_2d().

Cons1DS* U1d = NULL [static]

Definition at line 63 of file integrate_2d_ctu.c.

Cons1DS * Ul = NULL [static]

Definition at line 63 of file integrate_2d_ctu.c.

Referenced by integrate_destruct_2d(), and integrate_init_2d().

Cons1DS** Ul_x1Face = NULL [static]

Definition at line 50 of file integrate_2d_ctu.c.

Cons1DS** Ul_x2Face = NULL [static]

Definition at line 51 of file integrate_2d_ctu.c.

Referenced by integrate_2d_vl(), and integrate_3d_vl().

Cons1DS * Ur = NULL [static]

Definition at line 63 of file integrate_2d_ctu.c.

Referenced by integrate_destruct_2d(), and integrate_init_2d().

Cons1DS ** Ur_x1Face = NULL [static]

Definition at line 50 of file integrate_2d_ctu.c.

Referenced by integrate_2d_ctu(), integrate_destruct_2d(), and integrate_init_2d().

Cons1DS ** Ur_x2Face = NULL [static]
Prim1DS* W = NULL [static]

Definition at line 62 of file integrate_2d_ctu.c.

Prim1DS * Wl = NULL [static]

Definition at line 62 of file integrate_2d_ctu.c.

Referenced by integrate_2d_ctu(), integrate_destruct_2d(), and integrate_init_2d().

Prim1DS * Wr = NULL [static]

Definition at line 62 of file integrate_2d_ctu.c.

Referenced by integrate_2d_ctu(), integrate_destruct_2d(), and integrate_init_2d().

Cons1DS** x1Flux = NULL [static]

Definition at line 52 of file integrate_2d_ctu.c.

Cons1DS ** x2Flux = NULL [static]