13#ifndef CD_MULTIFLUIDINDEXSPACE_H
14#define CD_MULTIFLUIDINDEXSPACE_H
17#include <GeometryService.H>
18#include <EBIndexSpace.H>
20#include <MFIndexSpace.H>
23#include <CD_NamespaceHeader.H>
72 define(
const Vector<ProblemDomain>& a_domains,
73 const RealVect& a_origin,
74 const Real a_finestDx,
75 const Vector<EBISLayout::Filler>& a_fillers);
89 define(
const Box& a_domain,
90 const RealVect& a_origin,
92 const Vector<GeometryService*>& a_geoservers,
93 const bool a_distributedData,
96 bool a_fixOnlyFirstPhaseRegNextToMultiValued =
false);
103 const RefCountedPtr<EBIndexSpace>&
111 const RefCountedPtr<EBIndexSpace>&
119 RefCountedPtr<EBIndexSpace>&
127 RefCountedPtr<EBIndexSpace>&
139 interfaceRegion(
const IntVectSet& a_gasCutCells,
const IntVectSet& a_solidCutCells)
const;
152 Vector<RefCountedPtr<EBIndexSpace>>
m_ebis;
160#include <CD_NamespaceFooter.H>
MultiFluidIndexSpace()
Weak constructor. Must call define later.
Definition CD_MultiFluidIndexSpace.cpp:21
virtual ~MultiFluidIndexSpace()
Destructor.
void define(const Vector< ProblemDomain > &a_domains, const RealVect &a_origin, const Real a_finestDx, const Vector< EBISLayout::Filler > &a_fillers)
Define the index spaces in filler mode: each phase's EBIndexSpace fills every layout through its fill...
Definition CD_MultiFluidIndexSpace.cpp:65
Vector< RefCountedPtr< EBIndexSpace > > m_ebis
EBIndexSpaces.
Definition CD_MultiFluidIndexSpace.H:152
const RefCountedPtr< EBIndexSpace > & getEBIndexSpace(const phase::which_phase a_phase) const
Get a particular EBIndexSpace.
Definition CD_MultiFluidIndexSpace.cpp:91
RefCountedPtr< MFIndexSpace > m_multifluidIndexSpace
MFIndexSpace.
Definition CD_MultiFluidIndexSpace.H:157
int numPhases() const
Get number of phases.
Definition CD_MultiFluidIndexSpace.cpp:115
IntVectSet interfaceRegion(const IntVectSet &a_gasCutCells, const IntVectSet &a_solidCutCells) const
Get the interface region: the cells cut in both phases.
Definition CD_MultiFluidIndexSpace.cpp:128
Phase names namespace.
Definition CD_MultiFluidIndexSpace.H:28
which_phase
Enumeration of supported phases.
Definition CD_MultiFluidIndexSpace.H:38
@ solid
Solid (dielectric) phase.
Definition CD_MultiFluidIndexSpace.H:40
@ gas
Gas phase.
Definition CD_MultiFluidIndexSpace.H:39
const int numPhases
Number of supported phases.
Definition CD_MultiFluidIndexSpace.H:32