41 #ifndef processorLODs_box 42 #define processorLODs_box 52 namespace processorLODs
76 static const label
FIXED;
121 const label refineIter,
122 const label nTgtObjects,
132 const label refineIter,
133 const label nSrcElem,
155 const label refineIter,
156 const label nSrcFaces,
163 const label nSrcElems,
164 const label nTgtElems
178 const label maxObjectsPerLeaf,
179 const label nObjectsOfType,
180 const label nRefineIterMax = 100
184 virtual ~box() =
default;
void writeBoxes(const List< DynamicList< treeBoundBox >> &fixedBoxes, const label iter) const
Helper function to write the boxes in OBJ format.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
label nRefineIterMax_
Maximum number of refinement iterations.
TypeName("box")
Runtime type information.
List< labelList > newToOld_
Addressing per proc of new to old bound boxes.
List< List< treeBoundBox > > boxes_
Per processor, the list of src bound boxes.
A bounding box defined in terms of min/max extrema points.
static const label REFINE
Refine.
virtual ~box()=default
Destructor.
Base class to generate a parallel distribution map for sending sufficient target objects to cover a d...
bool doRefineBoxes(const label refineIter, const label nSrcFaces, const List< labelList > &refineFlags, List< DynamicList< treeBoundBox >> &fixedBoxes)
Apply the box refinements.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
static const label nStartUpIter
Number of iterations before element indices are cached.
box(const UList< point > &srcPoints, const UList< point > &tgtPoints, const label maxObjectsPerLeaf, const label nObjectsOfType, const label nRefineIterMax=100)
Construct from list of points.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Creates the parallel distribution map by describing the source and target objects using box shapes...
virtual boundBox calcTgtBox(const label tgtObji) const =0
virtual boundBox calcSrcBox(const label srcObji) const =0
void refineBox(const label boxi, const label refineIter, const label nSrcElem, const treeBoundBox &origBox, DynamicList< treeBoundBox > &procBoxes, DynamicList< labelList > &procBoxElems, DynamicList< label > &procNewToOld) const
List< List< labelList > > boxSrcElems_
Indices of elements in the src boxes.
const UList< point > & srcPoints_
Reference to the source points.
void setRefineFlags(const label refineIter, const label nTgtObjects, List< labelHashSet > &fixedSendElems, List< List< labelList >> &localTgtElems, List< labelList > &refineFlags, labelList &nElems) const
Set the box refinement flags.
Standard boundBox with extra functionality for use in octree.
static const label FIXED
Fixed - do not touch.
static const label DROP
Drop/discard.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
const UList< point > & tgtPoints_
Reference to the target points.
autoPtr< mapDistribute > createMap(const label nSrcElems, const label nTgtElems)