chombo-discharge
Public Member Functions | List of all members
MFLevelGrid Class Reference

Wrapper class for holding multifluid EBLevelGrids. More...

#include <CD_MFLevelGrid.H>

Public Member Functions

 MFLevelGrid ()
 Weak constructor, must subsequently call define.
 
 MFLevelGrid (const DisjointBoxLayout &a_dbl, const ProblemDomain &a_domain, const int a_ebghost, const RefCountedPtr< MultiFluidIndexSpace > &a_mfis)
 Full constructor. More...
 
 MFLevelGrid (const RefCountedPtr< MultiFluidIndexSpace > &a_multiFluidIndexSpace, const Vector< EBLevelGrid > &a_eblgs)
 Alternative full constructor - RefCounted storage so no allocation here. More...
 
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. More...
 
virtual void setMaxRefinementRatio (const int a_refRat)
 Set max refinement ratio. More...
 
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. More...
 
virtual const EBLevelGrid & getEBLevelGrid (int a_phase) const
 Get grids on specified phase. More...
 
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. More...
 

Detailed Description

Wrapper class for holding multifluid EBLevelGrids.

Constructor & Destructor Documentation

◆ MFLevelGrid() [1/2]

MFLevelGrid::MFLevelGrid ( const DisjointBoxLayout &  a_dbl,
const ProblemDomain &  a_domain,
const int  a_ebghost,
const RefCountedPtr< MultiFluidIndexSpace > &  a_mfis 
)

Full constructor.

Parameters
[in]a_dblGrids
[in]a_domainDomains
[in]a_ebghostNumber of eb ghosts to fill
[in]a_mfisMultifluid 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_mfisMultifluid index space
[in]a_eblgsLevelgrids on each phase.

Member Function Documentation

◆ define()

void MFLevelGrid::define ( const RefCountedPtr< MultiFluidIndexSpace > &  a_multiFluidIndexSpace,
const Vector< EBLevelGrid > &  a_eblgs 
)
virtual

Define function.

Parameters
[in]a_mfisMultifluid index space
[in]a_eblgsLevelgrids on each phase.

◆ getEBLevelGrid() [1/2]

EBLevelGrid & MFLevelGrid::getEBLevelGrid ( int  a_phase)
virtual

Get grids on specified phase.

Parameters
[in]a_phasePhase

◆ getEBLevelGrid() [2/2]

const EBLevelGrid & MFLevelGrid::getEBLevelGrid ( int  a_phase) const
virtual

Get grids on specified phase.

Parameters
[in]a_phasePhase

◆ 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_boxInput box
[in]a_ditGrid index
[in]a_phase1First phase
[in]a_phase2Second phase
Returns
Returns the cells that are irregular on both phases.

◆ setMaxRefinementRatio()

void MFLevelGrid::setMaxRefinementRatio ( const int  a_refRat)
virtual

Set max refinement ratio.

Parameters
[in]a_refRatMax refinement ratio.

The documentation for this class was generated from the following files: