|
chombo-discharge
|
Class for holding fluxes on domain boundaries. More...
#include <CD_DomainFluxIFFAB.H>
Public Member Functions | |
| 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. | |
Static Public Member Functions | |
| static int | preAllocatable () |
Protected Member Functions | |
| void | setDefaultValues () |
| Set default values. | |
| void | clear () |
| Clear object. | |
Protected Attributes | |
| 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>.
| DomainFluxIFFAB::DomainFluxIFFAB | ( | const ProblemDomain & | a_domain, |
| const EBISBox & | a_ebisbox, | ||
| const Box & | a_box, | ||
| const int | a_nComp | ||
| ) |
Full constructor. Calls the define function.
| [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 |
| 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. 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 equired by BoxLayoutData
| void DomainFluxIFFAB::define | ( | const DomainFluxIFFAB & | a_copy | ) |
Make a clone of an input data holder.
| [in] | a_copy | Other domain flux |
| void DomainFluxIFFAB::define | ( | const ProblemDomain & | a_domain, |
| const EBISBox & | a_ebisbox, | ||
| const Box & | a_box, | ||
| const int | a_nComp | ||
| ) |
Full define function.
| [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 |
Linearization function.
This reuses BaseIFFAB linearization function
Linearization function.
This reuses BaseIFFAB linearization function
Get the BaseIFFAB on a particular domain side.
| [in] | a_dir | Coordinate direction |
| [in] | a_side | Side (lo/hi) |
| const BaseIFFAB< Real > & DomainFluxIFFAB::operator() | ( | const int | a_dir, |
| const Side::LoHiSide | a_side | ||
| ) | const |
Get the BaseIFFAB on a particular domain side.
| [in] | a_dir | Coordinate direction |
| [in] | a_side | Side (lo/hi) |
Linearization function.