13#ifndef CD_MFLEVELGRID_H
14#define CD_MFLEVELGRID_H
20#include <EBLevelGrid.H>
24#include <CD_NamespaceHeader.H>
45 const ProblemDomain& a_domain,
47 const RefCountedPtr<MultiFluidIndexSpace>& a_multiFluidIndexSpace);
54 MFLevelGrid(
const RefCountedPtr<MultiFluidIndexSpace>& a_multiFluidIndexSpace,
const Vector<EBLevelGrid>& a_eblgs);
74 define(
const RefCountedPtr<MultiFluidIndexSpace>& a_multiFluidIndexSpace,
const Vector<EBLevelGrid>& a_eblgs);
87 virtual const RefCountedPtr<MultiFluidIndexSpace>&
101 virtual DisjointBoxLayout
117 virtual const EBLevelGrid&
129 interfaceRegion(
const Box& a_box,
const DataIndex& a_dit,
const int a_phase1 = 0,
const int a_phase2 = 1)
const;
135 virtual bool interfacePair(IntVect& a_iv,
136 const IntVect& a_iv_in,
138 const DataIndex& a_dit,
139 const int a_phase1 = 0,
140 const int a_phase2 = 1)
const;
147 RefCountedPtr<MultiFluidIndexSpace> m_multifluidIndexSpace;
152 Vector<EBLevelGrid> m_eblg;
155#include <CD_NamespaceFooter.H>
Wrapper class for holding multifluid EBLevelGrids.
Definition CD_MFLevelGrid.H:30
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:102
MFLevelGrid()
Weak constructor, must subsequently call define.
virtual ~MFLevelGrid()
Destructor.
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