130 label addInternalFace
133 const label meshFacei,
134 const label meshPointi,
151 scalar getLevel0EdgeLength()
const;
165 void getFaceNeighbours
182 label countAnchors(
const labelList&,
const label)
const;
184 void dumpCell(
const label celli)
const;
191 const bool searchForward,
192 const label wantedLevel
199 static void checkInternalOrientation
210 static void checkBoundaryOrientation
216 const point& boundaryPt,
231 label storeMidPointInfo
239 const bool faceOrder,
240 const label midPointi,
241 const label anchorPointi,
242 const label faceMidPointi,
250 void createInternalFromSplitFace
267 void createInternalFaces
302 label faceConsistentRefinement
310 void checkWantedRefinementLevels
320 void collectLevelPoints
328 void collectLevelPoints
347 hexRef8(
const hexRef8&) =
delete;
350 void operator=(
const hexRef8&) =
delete;
364 explicit hexRef8(
const polyMesh&
mesh,
const bool readHistory=
true);
374 const scalar level0Edge = -GREAT
384 const scalar level0Edge = -GREAT
415 return level0Edge_.value();
421 label
faceLevel(
const label facei)
const;
465 const label maxFaceDiff,
468 const label maxPointDiff,
477 const label maxFaceDiff,
550 const label maxPointDiff,
591 bool write(
const bool writeOnProc =
true)
const;
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
A HashTable to objects of type <T> with a label key.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
A face is a list of labels corresponding to mesh vertices.
A class for handling file names.
void checkRefinementLevels(const label maxPointDiff, const labelList &pointsToCheck) const
Debug: Check 2:1 consistency across faces.
labelList consistentSlowRefinement(const label maxFaceDiff, const labelList &cellsToRefine, const labelList &facesToCheck, const label maxPointDiff, const labelList &pointsToCheck) const
Like consistentRefinement but slower:
static void removeFiles(const polyMesh &)
Helper: remove all relevant files from mesh instance.
const labelIOList & cellLevel() const
const polyMesh & mesh() const
void checkMesh() const
Debug: Check coupled mesh for correctness.
scalar level0EdgeLength() const
Typical edge length between unrefined points.
labelListList setRefinement(const labelList &cells, polyTopoChange &)
Insert refinement. All selected cells will be split into 8.
labelList consistentRefinement(const labelUList &cellLevel, const labelList &cellsToRefine, const bool maxSet) const
Given valid mesh and current cell level and proposed.
void distribute(const mapDistributePolyMesh &)
Update local numbering for mesh redistribution.
const cellShapeList & cellShapes() const
Utility: get hexes as cell shapes.
labelList consistentRefinement(const labelList &cellsToRefine, const bool maxSet) const
Given valid mesh and current cell level and proposed.
void setUnrefinement(const labelList &splitPointLabels, polyTopoChange &)
Remove some refinement. Needs to be supplied output of.
labelList consistentUnrefinement(const labelList &pointsToUnrefine, const bool maxSet) const
Given proposed.
labelList getSplitPoints() const
Return the points at the centre of top-level split cells.
label faceLevel(const label facei) const
Gets level such that the face has four points <= level.
const labelIOList & pointLevel() const
void storeData(const labelList &pointsToStore, const labelList &facesToStore, const labelList &cellsToStore)
Signal points/face/cells for which to store data.
const refinementHistory & history() const
void updateMesh(const mapPolyMesh &)
Update local numbering for changed mesh.
ClassName("hexRef8")
Runtime type information.
labelList consistentSlowRefinement2(const label maxFaceDiff, const labelList &cellsToRefine, const labelList &facesToCheck) const
Like consistentSlowRefinement but uses different meshWave.
void subset(const labelList &pointMap, const labelList &faceMap, const labelList &cellMap)
Update local numbering for subsetted mesh.
void setInstance(const fileName &inst)
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Mesh consisting of general polyhedral cells.
A patch is a list of labels that address the faces in the global face list.
Direct mesh changes based on v1.3 polyTopoChange syntax.
Container with cells to refine. Refinement given as single direction.
All refinement history. Used in unrefinement.
Given list of faces to remove insert all the topology changes. Contains helper function to get consis...
#define ClassName(TypeNameString)
Add typeName information from argument TypeNameString to a class.
const volScalarField & p0
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
List< labelList > labelListList
List of labelList.
List< label > labelList
A List of labels.
IOList< label > labelIOList
IO for a List of label.
UniformDimensionedField< scalar > uniformDimensionedScalarField
vector point
Point is a vector.
UList< label > labelUList
A UList of labels.
List< cellShape > cellShapeList
List of cellShape.