Chombo + EB + MF
3.2
|
Class to hold data on a mapped multiblock domain block boundary. More...
#include <BlockRegister.H>
Constructor, destructor, and defines. | |
int | m_verbosity |
bool | m_isOpen |
BlockBaseRegister< FArrayBox > | m_fluxRegister |
BlockBaseRegister< FArrayBox > | m_auxRegister |
BlockRegister () | |
Empty constructor. More... | |
BlockRegister (const MultiBlockCoordSys *a_mblock, const DisjointBoxLayout &a_grids, const int &a_ghost=0) | |
Constructor. More... | |
virtual | ~BlockRegister () |
virtual destructor More... | |
void | define (const MultiBlockCoordSys *a_mblock, const DisjointBoxLayout &a_grids, const int &a_ghost=0) |
Define function that matches constructor. More... | |
virtual void | setVerbose (int a_verbose) |
Set verbosity. More... | |
void | storeFlux (const FArrayBox &a_flux, const DataIndex &a_dataIndex, int a_dir, Side::LoHiSide a_side) |
Store fluxes on block-boundary faces. More... | |
void | incrementFlux (const FArrayBox &a_flux, const DataIndex &a_dataIndex, int a_dir, Side::LoHiSide a_side) |
increment fluxes on block-boundary faces. More... | |
void | storeAux (const FArrayBox &a_data, const DataIndex &a_dataIndex, int a_dir, Side::LoHiSide a_side) |
Store auxiliary data on block-boundary faces including layers of ghost faces. More... | |
void | incrementAux (const FArrayBox &a_data, const DataIndex &a_dataIndex, int a_dir, Side::LoHiSide a_side) |
Store auxiliary data on block-boundary faces including layers of ghost faces. More... | |
void | close () |
void | setToZero (const int a_n_comp=-1) |
bool | hasInterface (const DataIndex &a_dataIndex, int a_dir, Side::LoHiSide a_side) const |
Returns whether or not a box has a block-boundary interface on one of its faces. More... | |
void | getFlux (FArrayBox &a_flux, const DataIndex &a_dataIndex, int a_dir, Side::LoHiSide a_side, Side::LoHiSide a_sideData) const |
Return fluxes on a block-boundary interface of a box, if hasInterface(a_dataIndex, a_dir, a_side) is true. More... | |
void | getAux (FArrayBox &a_data, const DataIndex &a_dataIndex, int a_dir, Side::LoHiSide a_side, Side::LoHiSide a_sideData) const |
Return auxiliary data on a block-boundary interface of a box, if hasInterface(a_dataIndex, a_dir, a_side) is true. More... | |
bool | isNotClosed () const |
Returns true if register is open, false otherwise. More... | |
bool | isClosed () const |
Returns false if register is open, true otherwise. More... | |
Class to hold data on a mapped multiblock domain block boundary.
|
inline |
Empty constructor.
References close(), define(), getAux(), getFlux(), hasInterface(), incrementAux(), incrementFlux(), setToZero(), setVerbose(), storeAux(), storeFlux(), and ~BlockRegister().
BlockRegister::BlockRegister | ( | const MultiBlockCoordSys * | a_mblock, |
const DisjointBoxLayout & | a_grids, | ||
const int & | a_ghost = 0 |
||
) |
Constructor.
– a_mblock: Pointer to multiblock coordinate system. – a_grids: DisjointBoxLayout over which multiblock grid is defined. – a_ghost: Extension of register domain for auxiliary data.
a_grids | CELL-centered grids |
a_ghost | ghost width for auxiliary data |
|
virtual |
virtual destructor
Referenced by BlockRegister().
void BlockRegister::define | ( | const MultiBlockCoordSys * | a_mblock, |
const DisjointBoxLayout & | a_grids, | ||
const int & | a_ghost = 0 |
||
) |
Define function that matches constructor.
– a_mblock: Pointer to multiblock coordinate system. – a_grids: DisjointBoxLayout over which multiblock grid is defined. – a_ghost: Extension of register domain for auxiliary data.
a_grids | CELL-centered grids |
a_ghost | ghost width for auxiliary data |
Referenced by BlockRegister().
|
virtual |
Set verbosity.
Default is 0. Positive values output increasing amounts of information.
Referenced by BlockRegister().
void BlockRegister::storeFlux | ( | const FArrayBox & | a_flux, |
const DataIndex & | a_dataIndex, | ||
int | a_dir, | ||
Side::LoHiSide | a_side | ||
) |
Store fluxes on block-boundary faces.
– a_flux: Face-centered flux to be stored. – a_dataIndex: Index of box where flux has been computed. – a_dir: Direction of the face. – a_side: Low or high side of the box where the block-boundary face lies.
Referenced by BlockRegister().
void BlockRegister::incrementFlux | ( | const FArrayBox & | a_flux, |
const DataIndex & | a_dataIndex, | ||
int | a_dir, | ||
Side::LoHiSide | a_side | ||
) |
increment fluxes on block-boundary faces.
– a_flux: Face-centered flux to be stored. – a_dataIndex: Index of box where flux has been computed. – a_dir: Direction of the face. – a_side: Low or high side of the box where the block-boundary face lies.
Referenced by BlockRegister().
void BlockRegister::storeAux | ( | const FArrayBox & | a_data, |
const DataIndex & | a_dataIndex, | ||
int | a_dir, | ||
Side::LoHiSide | a_side | ||
) |
Store auxiliary data on block-boundary faces including layers of ghost faces.
– a_data: Face-centered data to be stored. – a_dataIndex: Index of box containing data to be stored. – a_dir: Direction of the face. – a_side: Low or high side of the box where the block-boundary face lies.
Referenced by BlockRegister().
void BlockRegister::incrementAux | ( | const FArrayBox & | a_data, |
const DataIndex & | a_dataIndex, | ||
int | a_dir, | ||
Side::LoHiSide | a_side | ||
) |
Store auxiliary data on block-boundary faces including layers of ghost faces.
– a_data: Face-centered data to be stored. – a_dataIndex: Index of box containing data to be stored. – a_dir: Direction of the face. – a_side: Low or high side of the box where the block-boundary face lies.
Referenced by BlockRegister().
void BlockRegister::close | ( | ) |
Perform data manipulation of flux and auxiliary data, after it has been stored, so that accessor functions have access to it.
Referenced by BlockRegister().
void BlockRegister::setToZero | ( | const int | a_n_comp = -1 | ) |
Sets the contents of the register to zero, and sets the register to be open. If data is not already defined, argument a_n_comp must be defined to be greater than zero. – a_n_comp: Number of components in register.
Referenced by BlockRegister().
bool BlockRegister::hasInterface | ( | const DataIndex & | a_dataIndex, |
int | a_dir, | ||
Side::LoHiSide | a_side | ||
) | const |
Returns whether or not a box has a block-boundary interface on one of its faces.
– a_dataIndex: Index of box. – a_dir: Direction of the face of the box. – a_side: Low or high side of the box.
Referenced by BlockRegister().
void BlockRegister::getFlux | ( | FArrayBox & | a_flux, |
const DataIndex & | a_dataIndex, | ||
int | a_dir, | ||
Side::LoHiSide | a_side, | ||
Side::LoHiSide | a_sideData | ||
) | const |
Return fluxes on a block-boundary interface of a box, if hasInterface(a_dataIndex, a_dir, a_side) is true.
– a_flux: Face-centered flux returned. – a_dataIndex: Index of box. – a_dir: Direction of the face. – a_side: Low or high side of the box. – a_sideData: Low or high side of the block-boundary interface, from which flux will be taken.
Referenced by BlockRegister().
void BlockRegister::getAux | ( | FArrayBox & | a_data, |
const DataIndex & | a_dataIndex, | ||
int | a_dir, | ||
Side::LoHiSide | a_side, | ||
Side::LoHiSide | a_sideData | ||
) | const |
Return auxiliary data on a block-boundary interface of a box, if hasInterface(a_dataIndex, a_dir, a_side) is true.
– a_flux: Face-centered data returned. – a_dataIndex: Index of box. – a_dir: Direction of the face. – a_side: Low or high side of the box. – a_sideData: Low or high side of the block-boundary interface, from which data will be taken.
Referenced by BlockRegister().
|
inlineprotected |
Returns true if register is open, false otherwise.
References m_isOpen.
|
inlineprotected |
Returns false if register is open, true otherwise.
References m_isOpen.
|
protected |
|
protected |
Referenced by isClosed(), and isNotClosed().
|
protected |
|
protected |