Class for holding fluxes on domain boundaries.
More...
#include <CD_DomainFluxIFFAB.H>
|
|
| DomainFluxIFFAB () |
| | Default constructor. Must subsequently call define.
|
| |
| | DomainFluxIFFAB (const ProblemDomain &a_domain, const EBISBox &a_ebisbox, const Box &a_box, const int a_nComp) |
| | Full constructor. Calls the define function.
|
| |
|
| ~DomainFluxIFFAB () |
| | Destructor (does nothing)
|
| |
| const Box & | box () const |
| | Get the defining box.
|
| |
| int | nComp () const |
| | Get number of components.
|
| |
| const ProblemDomain & | getDomain () const |
| | Get the defining problem domain.
|
| |
| const EBISBox & | getEBISBox () const |
| | Get the defining ebis box.
|
| |
| void | define (const DomainFluxIFFAB &a_copy) |
| | Make a clone of an input data holder.
|
| |
| void | define (const ProblemDomain &a_domain, const EBISBox &a_ebisbox, const Box &a_box, const int a_nComp) |
| | Full define function.
|
| |
| BaseIFFAB< Real > & | operator() (const int a_dir, const Side::LoHiSide a_side) |
| | Get the BaseIFFAB on a particular domain side.
|
| |
| const BaseIFFAB< Real > & | operator() (const int a_dir, const Side::LoHiSide a_side) const |
| | Get the BaseIFFAB on a particular domain side.
|
| |
| int | size (const Box &R, const Interval &comps) const |
| | Linearization function.
|
| |
| void | linearOut (void *buf, const Box &R, const Interval &comps) const |
| | Linearization function.
|
| |
| void | linearIn (void *buf, const Box &R, const Interval &comps) |
| | Linearization function.
|
| |
| void | copy (const Box &Rfrom, const Interval &Cdest, const Box &Rto, const DomainFluxIFFAB &src, const Interval &Csrc) |
| | Copy functiopn.
|
| |
|
|
void | setDefaultValues () |
| | Set default values.
|
| |
|
void | clear () |
| | Clear object.
|
| |
|
|
ProblemDomain | m_domain |
| | Defining domain.
|
| |
|
Box | m_box |
| | Defining box.
|
| |
|
EBISBox | m_ebisbox |
| | EBISBox.
|
| |
|
int | m_nComp |
| | Number of components.
|
| |
|
bool | m_isDefined |
| | Is defined or not.
|
| |
|
Tuple< BaseIFFAB< Real > *, CH_SPACEDIM > | m_fluxLo |
| | BaseIFFABs on Side::Lo sides.
|
| |
|
Tuple< BaseIFFAB< Real > *, CH_SPACEDIM > | m_fluxHi |
| | BaseIFFABs on Side::Hi sides.
|
| |
Class for holding fluxes on domain boundaries.
The internal functionality of this class is to use two SpaceDim-sized tuples that hold the fluxes in each direction. Object in this class can be linearized and thus put in LevelData as LevelData<DomainFluxIFFAB>.
- Note
- The BaseIFFABs are defined over the strip of cells abutting a domain boundary – it it will also contain a layer of interior cells.
◆ DomainFluxIFFAB()
| DomainFluxIFFAB::DomainFluxIFFAB |
( |
const ProblemDomain & |
a_domain, |
|
|
const EBISBox & |
a_ebisbox, |
|
|
const Box & |
a_box, |
|
|
const int |
a_nComp |
|
) |
| |
Full constructor. Calls the define function.
- Parameters
-
| [in] | a_domain | Problem domain |
| [in] | a_ebisbox | EBISBox |
| [in] | a_box | Cell-centered box in which we define the BaseIFFABs |
| [in] | a_nComp | Number of components |
◆ box()
| const Box & DomainFluxIFFAB::box |
( |
| ) |
const |
Get the defining box.
- Returns
- Return value
◆ copy()
| void DomainFluxIFFAB::copy |
( |
const Box & |
Rfrom, |
|
|
const Interval & |
Cdest, |
|
|
const Box & |
Rto, |
|
|
const DomainFluxIFFAB & |
src, |
|
|
const Interval & |
Csrc |
|
) |
| |
Copy functiopn.
Copies from a subsection of one box into another.
- Parameters
-
| [in,out] | Rfrom | Description |
| [in,out] | Cdest | Description |
| [in,out] | Rto | Description |
| [in,out] | src | Description |
| [in,out] | Csrc | Description Assumes the boxes are both in the same index space, and that box R is completely contained in both the src and destination boxes. This function required by BoxLayoutData |
◆ define() [1/2]
Make a clone of an input data holder.
- Parameters
-
| [in] | a_copy | Other domain flux |
◆ define() [2/2]
| void DomainFluxIFFAB::define |
( |
const ProblemDomain & |
a_domain, |
|
|
const EBISBox & |
a_ebisbox, |
|
|
const Box & |
a_box, |
|
|
const int |
a_nComp |
|
) |
| |
Full define function.
- Parameters
-
| [in] | a_domain | Problem domain |
| [in] | a_ebisbox | EBISBox |
| [in] | a_box | Cell-centered box in which we define the BaseIFFABs |
| [in] | a_nComp | Number of components |
◆ getDomain()
| const ProblemDomain & DomainFluxIFFAB::getDomain |
( |
| ) |
const |
Get the defining problem domain.
- Returns
- Domain
◆ getEBISBox()
| const EBISBox & DomainFluxIFFAB::getEBISBox |
( |
| ) |
const |
Get the defining ebis box.
- Returns
- E b i s box
◆ linearIn()
| void DomainFluxIFFAB::linearIn |
( |
void * |
buf, |
|
|
const Box & |
R, |
|
|
const Interval & |
comps |
|
) |
| |
Linearization function.
This reuses BaseIFFAB linearization function
- Parameters
-
| [in] | buf | Description |
| [in,out] | R | Description |
| [in,out] | comps | Description |
◆ linearOut()
| void DomainFluxIFFAB::linearOut |
( |
void * |
buf, |
|
|
const Box & |
R, |
|
|
const Interval & |
comps |
|
) |
| const |
Linearization function.
This reuses BaseIFFAB linearization function
- Parameters
-
| [in] | buf | Description |
| [in,out] | R | Description |
| [in,out] | comps | Description |
◆ nComp()
| int DomainFluxIFFAB::nComp |
( |
| ) |
const |
Get number of components.
- Returns
- Return value
◆ operator()() [1/2]
| BaseIFFAB< Real > & DomainFluxIFFAB::operator() |
( |
const int |
a_dir, |
|
|
const Side::LoHiSide |
a_side |
|
) |
| |
Get the BaseIFFAB on a particular domain side.
- Parameters
-
| [in] | a_dir | Coordinate direction |
| [in] | a_side | Side (lo/hi) |
- Returns
- Return value
◆ operator()() [2/2]
| const BaseIFFAB< Real > & DomainFluxIFFAB::operator() |
( |
const int |
a_dir, |
|
|
const Side::LoHiSide |
a_side |
|
) |
| const |
Get the BaseIFFAB on a particular domain side.
- Parameters
-
| [in] | a_dir | Coordinate direction |
| [in] | a_side | Side (lo/hi) |
- Returns
- Return value
◆ preAllocatable()
| static int DomainFluxIFFAB::preAllocatable |
( |
| ) |
|
|
inlinestatic |
Pre allocatable.
- Returns
- Always 1 (symmetric messaging).
◆ size()
| int DomainFluxIFFAB::size |
( |
const Box & |
R, |
|
|
const Interval & |
comps |
|
) |
| const |
Linearization function.
- Returns
- Returns the sum of the BaseIFFAB sizes
- Parameters
-
| [in,out] | R | Description |
| [in,out] | comps | Description |
The documentation for this class was generated from the following files: