12 #ifndef CD_MFLevelGrid_H
13 #define CD_MFLevelGrid_H
19 #include <EBLevelGrid.H>
23 #include <CD_NamespaceHeader.H>
44 const ProblemDomain& a_domain,
46 const RefCountedPtr<MultiFluidIndexSpace>& a_mfis);
53 MFLevelGrid(
const RefCountedPtr<MultiFluidIndexSpace>& a_multiFluidIndexSpace,
const Vector<EBLevelGrid>& a_eblgs);
72 define(
const RefCountedPtr<MultiFluidIndexSpace>& a_multiFluidIndexSpace,
const Vector<EBLevelGrid>& a_eblgs);
84 virtual const RefCountedPtr<MultiFluidIndexSpace>&
96 virtual DisjointBoxLayout
110 virtual const EBLevelGrid&
122 interfaceRegion(
const Box& a_box,
const DataIndex& a_dit,
const int a_phase1 = 0,
const int a_phase2 = 1)
const;
128 virtual bool interfacePair(IntVect& a_iv,
129 const IntVect& a_iv_in,
131 const DataIndex& a_dit,
132 const int a_phase1 = 0,
133 const int a_phase2 = 1)
const;
140 RefCountedPtr<MultiFluidIndexSpace> m_multifluidIndexSpace;
145 Vector<EBLevelGrid> m_eblg;
148 #include <CD_NamespaceFooter.H>
Wrapper class for holding multifluid EBLevelGrids.
Definition: CD_MFLevelGrid.H:29
virtual ProblemDomain getDomain() const
Get the problem domain.
Definition: CD_MFLevelGrid.cpp:72
virtual int numPhases() const
Get number of phases.
Definition: CD_MFLevelGrid.cpp:52
virtual void setMaxRefinementRatio(const int a_refRat)
Set max refinement ratio.
Definition: CD_MFLevelGrid.cpp:21
virtual DisjointBoxLayout getGrids() const
Get the grids.
Definition: CD_MFLevelGrid.cpp:78
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.
Definition: CD_MFLevelGrid.cpp:98
MFLevelGrid()
Weak constructor, must subsequently call define.
Definition: CD_MFLevelGrid.cpp:17
virtual ~MFLevelGrid()
Destructor.
Definition: CD_MFLevelGrid.cpp:48
virtual const RefCountedPtr< MultiFluidIndexSpace > & getMfIndexSpace() const
Get the index space.
Definition: CD_MFLevelGrid.cpp:66
virtual void define(const RefCountedPtr< MultiFluidIndexSpace > &a_multiFluidIndexSpace, const Vector< EBLevelGrid > &a_eblgs)
Define function.
Definition: CD_MFLevelGrid.cpp:58
virtual EBLevelGrid & getEBLevelGrid(int a_phase)
Get grids on specified phase.
Definition: CD_MFLevelGrid.cpp:84