Wrapper class for holding multifluid EBLevelGrids.
More...
#include <CD_MFLevelGrid.H>
|
|
| MFLevelGrid () |
| | Weak constructor, must subsequently call define.
|
| |
| | MFLevelGrid (const DisjointBoxLayout &a_dbl, const ProblemDomain &a_domain, const int a_ebghost, const RefCountedPtr< MultiFluidIndexSpace > &a_multiFluidIndexSpace) |
| | Full constructor.
|
| |
| | MFLevelGrid (const RefCountedPtr< MultiFluidIndexSpace > &a_multiFluidIndexSpace, const Vector< EBLevelGrid > &a_eblgs) |
| | Alternative full constructor - RefCounted storage so no allocation here.
|
| |
|
virtual | ~MFLevelGrid () |
| | Destructor.
|
| |
| virtual int | numPhases () const |
| | Get number of phases.
|
| |
| virtual void | define (const RefCountedPtr< MultiFluidIndexSpace > &a_multiFluidIndexSpace, const Vector< EBLevelGrid > &a_eblgs) |
| | Define function.
|
| |
| virtual void | setMaxRefinementRatio (const int a_refRat) |
| | Set max refinement ratio.
|
| |
| virtual const RefCountedPtr< MultiFluidIndexSpace > & | getMfIndexSpace () const |
| | Get the index space.
|
| |
| virtual ProblemDomain | getDomain () const |
| | Get the problem domain.
|
| |
| virtual DisjointBoxLayout | getGrids () const |
| | Get the grids.
|
| |
| virtual EBLevelGrid & | getEBLevelGrid (int a_phase) |
| | Get grids on specified phase.
|
| |
| virtual const EBLevelGrid & | getEBLevelGrid (int a_phase) const |
| | Get grids on specified phase.
|
| |
| virtual IntVectSet | interfaceRegion (const Box &a_box, const DataIndex &a_dit, const int a_phase1=0, const int a_phase2=1) const |
| | Get interface region between two phases.
|
| |
Wrapper class for holding multifluid EBLevelGrids.
◆ MFLevelGrid() [1/2]
| MFLevelGrid::MFLevelGrid |
( |
const DisjointBoxLayout & |
a_dbl, |
|
|
const ProblemDomain & |
a_domain, |
|
|
const int |
a_ebghost, |
|
|
const RefCountedPtr< MultiFluidIndexSpace > & |
a_multiFluidIndexSpace |
|
) |
| |
Full constructor.
- Parameters
-
| [in] | a_dbl | Grids |
| [in] | a_domain | Domains |
| [in] | a_ebghost | Number of eb ghosts to fill |
| [in] | a_multiFluidIndexSpace | Multifluid index space |
◆ MFLevelGrid() [2/2]
| MFLevelGrid::MFLevelGrid |
( |
const RefCountedPtr< MultiFluidIndexSpace > & |
a_multiFluidIndexSpace, |
|
|
const Vector< EBLevelGrid > & |
a_eblgs |
|
) |
| |
Alternative full constructor - RefCounted storage so no allocation here.
- Parameters
-
| [in] | a_multiFluidIndexSpace | Multifluid index space |
| [in] | a_eblgs | Levelgrids on each phase. |
◆ define()
| void MFLevelGrid::define |
( |
const RefCountedPtr< MultiFluidIndexSpace > & |
a_multiFluidIndexSpace, |
|
|
const Vector< EBLevelGrid > & |
a_eblgs |
|
) |
| |
|
virtual |
Define function.
- Parameters
-
| [in] | a_multiFluidIndexSpace | Multifluid index space |
| [in] | a_eblgs | Levelgrids on each phase. |
◆ getDomain()
| ProblemDomain MFLevelGrid::getDomain |
( |
| ) |
const |
|
virtual |
Get the problem domain.
- Returns
- Problem domain.
◆ getEBLevelGrid() [1/2]
| EBLevelGrid & MFLevelGrid::getEBLevelGrid |
( |
int |
a_phase | ) |
|
|
virtual |
Get grids on specified phase.
- Parameters
-
- Returns
- Reference to the EBLevelGrid for the given phase.
◆ getEBLevelGrid() [2/2]
| const EBLevelGrid & MFLevelGrid::getEBLevelGrid |
( |
int |
a_phase | ) |
const |
|
virtual |
Get grids on specified phase.
- Parameters
-
- Returns
- Const reference to the EBLevelGrid for the given phase.
◆ getGrids()
| DisjointBoxLayout MFLevelGrid::getGrids |
( |
| ) |
const |
|
virtual |
Get the grids.
- Returns
- Disjoint box layout.
◆ getMfIndexSpace()
Get the index space.
- Returns
- Const reference to the multifluid index space.
◆ interfaceRegion()
| IntVectSet MFLevelGrid::interfaceRegion |
( |
const Box & |
a_box, |
|
|
const DataIndex & |
a_dit, |
|
|
const int |
a_phase1 = 0, |
|
|
const int |
a_phase2 = 1 |
|
) |
| const |
|
virtual |
Get interface region between two phases.
- Parameters
-
| [in] | a_box | Input box |
| [in] | a_dit | Grid index |
| [in] | a_phase1 | First phase |
| [in] | a_phase2 | Second phase |
- Returns
- Returns the cells that are irregular on both phases.
◆ numPhases()
| int MFLevelGrid::numPhases |
( |
| ) |
const |
|
virtual |
Get number of phases.
- Returns
- Number of phases.
◆ setMaxRefinementRatio()
| void MFLevelGrid::setMaxRefinementRatio |
( |
const int |
a_refRat | ) |
|
|
virtual |
Set max refinement ratio.
- Parameters
-
| [in] | a_refRat | Max refinement ratio. |
The documentation for this class was generated from the following files: