#include <LevelFluxRegister.H>
Collaboration diagram for LevelFluxRegister:
Public Methods | |
LevelFluxRegister () | |
LevelFluxRegister (const DisjointBoxLayout &a_dbl, const DisjointBoxLayout &a_dblCoarse, const Box &a_dProblem, int a_nRefine, int a_nComp) | |
LevelFluxRegister (const DisjointBoxLayout &a_dbl, const DisjointBoxLayout &a_dblCoarse, const ProblemDomain &a_dProblem, int a_nRefine, int a_nComp) | |
~LevelFluxRegister () | |
void | define (const DisjointBoxLayout &a_dbl, const DisjointBoxLayout &a_dblCoarse, const Box &a_dProblem, int a_nRefine, int a_nComp) |
void | define (const DisjointBoxLayout &a_dbl, const DisjointBoxLayout &a_dblCoarse, const ProblemDomain &a_dProblem, int a_nRefine, int a_nComp) |
void | undefine () |
void | setToZero () |
void | incrementCoarse (FArrayBox &a_coarseFlux, Real a_scale, const DataIndex &a_coarseDataIndex, const Interval &a_srcInterval, const Interval &a_dstInterval, int a_dir) |
void | incrementFine (FArrayBox &a_fineFlux, Real a_scale, const DataIndex &a_fineDataIndex, const Interval &a_srcInterval, const Interval &a_dstInterval, int a_dir, Side::LoHiSide a_sd) |
void | reflux (LevelData< FArrayBox > &a_uCoarse, Real a_scale) |
void | reflux (LevelData< FArrayBox > &a_uCoarse, const Interval &a_coarse_interval, const Interval &a_flux_interval, Real a_scale) |
bool | isDefined () const |
void | dump () |
void | dumpLoCoar (int idir) |
void | dumpHiCoar (int idir) |
void | dumpLoFine (int idir) |
void | dumpHiFine (int idir) |
Protected Methods | |
void | setDefaultValues () |
Static Protected Methods | |
int | index (int dir, Side::LoHiSide side) |
Protected Attributes | |
LevelData< FArrayBox > | fabCoarse [SpaceDim *2] |
LevelData< FArrayBox > | fabFine [SpaceDim *2] |
Vector< Copier > | crseCopiers |
LayoutData< Vector< IntVectSet > > | refluxLocations [SpaceDim *2] |
LayoutData< Vector< DataIndex > > | coarToCoarMap [SpaceDim *2] |
bool | m_isDefined |
int | m_nComp |
number of components in register | |
int | m_nRefine |
refinement ratio between levels | |
ProblemDomain | m_domainCoarse |
domain at the coarse grid resolution | |
DisjointBoxLayout | m_gridsFine |
DisjointBoxLayout | m_gridsCoar |
A LevelFluxRegister handles all the data choreography necessary to create a levels worth of flux registers. You send a pointer to a valid LevelCFStencil to its constructor or define function and it parsels out all the necessary information to the grid flux registers which hands it to the flux registers. The actual functions to manipulate data in the flux registers live in the class FluxRegister.
|
Default constructor. Creates an uninitialized levelfluxregister. |
|
Full constructor. Calls the define function which creates a levels worth of flux registers. a_dProblem is fine-level domain |
|
Full constructor. Calls the define function which creates a levels worth of flux registers. a_dProblem is fine-level domain |
|
|
|
Full define function. Creates a levels worth of flux registers. The values in the flux registers are still undefined, however. To zero the fluxregisters, you must call setToZero(). |
|
Full define function. Creates a levels worth of flux registers. The values in the flux registers are still undefined, however. To zero the fluxregisters, you must call setToZero(). |
|
|
|
|
|
|
|
|
|
|
|
increments the register with data from coarseFlux, multiplied by scale. coarseFlux must contain the coarse fluxes in the dir direction for the grid m_coarseLayout[coarseDataIndex]. By convention, only the low side flux is used to avoid double-counting at coarse-fine interfaces. This operation is local. |
|
increments the register with data from fineFlux, multiplied by scale. fineFlux must contain the coarse fluxes in the dir direction for the grid m_fineLayout[fineDataIndex]. This operation is local. |
|
|
|
has full define function been called? return true if so. |
|
increments uCoarse with the reflux divergence of the contents of the flux register. This operation is global and blocking. |
|
increments uCoarse with the reflux divergence of the contents of the flux register. Note that there is no srccomp etc crap here. this is done for all components so uCoarse has to have the same number of components as input nComp. This operation is global and blocking. |
|
|
|
Initialize values of registers to zero. |
|
Modifies this LevelFluxRegister so that it is returned to the uninitialized state. User must now call the full define() before using it. |
|
|
|
|
|
|
|
|
|
domain at the coarse grid resolution
|
|
|
|
|
|
|
|
number of components in register
|
|
refinement ratio between levels
|
|
|