18 #include <IntVectSet.H>
20 #include <ProblemDomain.H>
23 #include <DenseIntVectSet.H>
27 #include <CD_NamespaceHeader.H>
74 static Vector<VolIndex>
76 const EBISBox& a_ebisbox,
79 const bool a_addStartVof);
90 static Vector<VolIndex>
92 const EBISBox& a_ebisbox,
94 const DenseIntVectSet& a_validCells,
96 const bool a_addStartVof);
108 static Vector<VolIndex>
110 const EBISBox& a_ebisbox,
111 const RealVect& a_normal,
114 const bool a_addStartVof);
130 static Vector<VolIndex>
132 const EBISBox& a_ebisbox,
133 const RealVect& a_normal,
135 const Real a_deltaThresh,
139 const bool a_addStartVof);
148 excludeCells(Vector<VolIndex>& a_vofs,
const Box& a_excludeBox);
157 excludeCells(Vector<VolIndex>& a_vofs,
const IntVectSet& a_excludeIVS);
166 includeCells(Vector<VolIndex>& a_vofs,
const Box& a_includeBox);
175 includeCells(Vector<VolIndex>& a_vofs,
const IntVectSet& a_includeIVS);
184 includeCells(Vector<VolIndex>& a_vofs,
const DenseIntVectSet& a_includeIVS);
208 static std::pair<int, Side::LoHiSide>
219 static Vector<VolIndex>
221 const EBISBox& a_ebisbox,
223 const bool a_addStartVof);
233 static Vector<VolIndex>
235 const EBISBox& a_ebisbox,
237 const bool a_addStartVof);
246 static Vector<VolIndex>
248 const EBISBox& a_ebisbox,
250 const bool a_addStartVof);
259 static Vector<VolIndex>
260 connectedVofsOnly(
const VolIndex& a_startVof,
const Vector<VolIndex>& a_allVofs,
const EBISBox& a_ebisbox);
271 getQuadrant(
const RealVect& a_normal,
const VolIndex& a_vof,
const EBISBox& a_ebisbox,
const Real a_radius);
282 const VolIndex& a_vof,
283 const EBISBox& a_ebisbox,
284 const Real a_radius);
297 const VolIndex& a_startVof,
298 const EBISBox& a_ebisbox,
300 const IntVect& a_timesMoved,
301 const IntVect& a_pathSign);
314 const VolIndex& a_startVof,
315 const EBISBox& a_ebisbox,
316 const Box& a_validBox,
318 const IntVect& a_timesMoved,
319 const IntVect& a_pathSign);
322 #include <CD_NamespaceFooter.H>
Declaration of cell positions.
Static class which contains some routines for fetching VoFs using various algorithms....
Definition: CD_VofUtils.H:33
Neighborhood
Neighborhood type.
Definition: CD_VofUtils.H:55
static void onlyUnique(Vector< VolIndex > &a_vofs)
Discard duplicates.
Definition: CD_VofUtils.cpp:292
static std::pair< int, Side::LoHiSide > getCardinalDirection(const RealVect a_normal)
Returns the coordinate direction.
Definition: CD_VofUtils.cpp:322
Connectivity
Class for specifying connectivity of Vofs.
Definition: CD_VofUtils.H:42
static Vector< VolIndex > getVofsInQuadrant(const VolIndex &a_startVof, const EBISBox &a_ebisbox, const RealVect &a_normal, const int a_radius, const Connectivity a_connectivity, const bool a_addStartVof)
Fetch vofs in a quadrant, using a specified radius and with a specified connectivitiy between them.
Definition: CD_VofUtils.cpp:46
static void includeCells(Vector< VolIndex > &a_vofs, const Box &a_includeBox)
Modifies a_vofs so it only includes cells in a box.
Definition: CD_VofUtils.cpp:249
static Vector< VolIndex > getConnectedVofsInRadius(const VolIndex &a_startVof, const EBISBox &a_ebisbox, const int a_radius, const bool a_addStartVof)
Get all connected Vofs in radius which can be reached without crossing a covered face or reaching int...
Definition: CD_VofUtils.cpp:170
static Vector< VolIndex > getVofsInMonotonePath(const VolIndex &a_startVof, const EBISBox &a_ebisbox, const int a_radius, const bool a_addStartVof)
Get all VoFs that can be found with a monotone path with specified radius.
Definition: CD_VofUtils.cpp:121
static Vector< VolIndex > getVofsInRadius(const VolIndex &a_startVof, const EBISBox &a_ebisbox, const int a_radius, const Connectivity a_connectivity, const bool a_addStartVof)
Fetch vofs in a specified radius and with a specified connectivitiy between them.
Definition: CD_VofUtils.cpp:17
static Box getQuadrant(const RealVect &a_normal, const VolIndex &a_vof, const EBISBox &a_ebisbox, const Real a_radius)
Get quadrant defined by direction in space.
Definition: CD_VofUtils.cpp:342
static Vector< VolIndex > connectedVofsOnly(const VolIndex &a_startVof, const Vector< VolIndex > &a_allVofs, const EBISBox &a_ebisbox)
Get all Vofs that are connected to a specific starting Vof. The connection does not have to be direct...
Definition: CD_VofUtils.cpp:391
static Vector< VolIndex > getVofsInSemiCircle(const VolIndex &a_startVof, const EBISBox &a_ebisbox, const RealVect &a_normal, const int a_radius, const Real a_deltaThresh, const Connectivity a_connectivity, const Location::Cell a_vofLocation, const Location::Cell a_cellLocation, const bool a_addStartVof)
Get all vofs lying in a semi-circle (sphere in 3D) from the indicated position in the starting vof.
Definition: CD_VofUtils.cpp:81
static bool isQuadrantWellDefined(const RealVect a_normal)
Check if a quadrant is well-defined for a direction in space.
Definition: CD_VofUtils.cpp:306
VofUtils()=delete
Disallowed.
static Box getSymmetricQuadrant(const std::pair< int, Side::LoHiSide > &a_cardinal, const VolIndex &a_vof, const EBISBox &a_ebisbox, const Real a_radius)
Get "symmetric" quadrant defined by direction in space.
Definition: CD_VofUtils.cpp:367
static Vector< VolIndex > getVofsInRadius(const VolIndex &a_startVof, const EBISBox &a_ebisbox, const int a_radius, const DenseIntVectSet &a_validCells, const Connectivity a_connectivity, const bool a_addStartVof)
Fetch vofs in a specified radius and with a specified connectivitiy between them.
static void excludeCells(Vector< VolIndex > &a_vofs, const Box &a_excludeBox)
Modifies a_vofs so it doesn't include cells in a_excludeIVS.
Definition: CD_VofUtils.cpp:219
static Vector< VolIndex > getAllVofsInRadius(const VolIndex &a_startVof, const EBISBox &a_ebisbox, const int a_radius, const bool a_addStartVof)
Get all Vofs in a radius from a starting Vof.
Definition: CD_VofUtils.cpp:188
Cell
Enum for distinguishing between cell locations.
Definition: CD_Location.H:30