Functions

reconstruction/lr_states_dc.c File Reference

First order (donor cell, piecewise constant) spatial reconstruction. More...

Go to the source code of this file.

Functions

void lr_states (const GridS *pG, const Prim1DS W[], const Real Bxc[], const Real dt, const Real dx, const int il, const int iu, Prim1DS Wl[], Prim1DS Wr[], const enum DIRECTION dir)
 Computes L/R states.
void lr_states_init (MeshS *pM)
 NoOp for first order, but included for compatibility with integrator (needed for 2nd and 3rd order).
void lr_states_destruct (void)
 NoOp for first order, but included for compatibility with integrator (needed for 2nd and 3rd order).

Detailed Description

First order (donor cell, piecewise constant) spatial reconstruction.

PURPOSE: First order (donor cell, piecewise constant) spatial reconstruction.

CONTAINS PUBLIC FUNCTIONS:

Definition in file lr_states_dc.c.


Function Documentation

void lr_states ( const GridS pG,
const Prim1DS  W[],
const Real  Bxc[],
const Real  dt,
const Real  dx,
const int  il,
const int  iu,
Prim1DS  Wl[],
Prim1DS  Wr[],
const enum DIRECTION  dir 
)

Computes L/R states.

Input Arguments:

  • W = PRIMITIVE variables at cell centers along 1-D slice
  • Bxc = B in direction of slice at cell centers
  • dtodx = dt/dx
  • il,iu = lower and upper indices of zone centers in slice W must be initialized over [il-1:iu+1]

Output Arguments:

  • Wl,Wr = L/R-states of PRIMITIVE variables at interfaces over [il:iu+1]

Definition at line 44 of file lr_states_dc.c.

Referenced by integrate_1d_ctu(), integrate_1d_vl(), integrate_2d_ctu(), integrate_2d_vl(), integrate_3d_ctu(), and integrate_3d_vl().

Here is the caller graph for this function:

void lr_states_destruct ( void   ) 

NoOp for first order, but included for compatibility with integrator (needed for 2nd and 3rd order).

Free memory used by work arrays.

Definition at line 73 of file lr_states_dc.c.

Referenced by lr_states_init(), and main().

Here is the caller graph for this function:

void lr_states_init ( MeshS pM  ) 

NoOp for first order, but included for compatibility with integrator (needed for 2nd and 3rd order).

Allocate enough memory for work arrays.

Definition at line 63 of file lr_states_dc.c.

Referenced by main().

Here is the caller graph for this function: