Go to the documentation of this file.
47 #ifndef meshDualiser_H
48 #define meshDualiser_H
118 const label masterPointI,
119 const label masterEdgeI,
120 const label masterFaceI,
122 const bool edgeOrder,
123 const label dualCell0,
124 const label dualCell1,
132 const label masterPointI,
133 const label masterEdgeI,
134 const label masterFaceI,
136 const label dualCellI,
145 const bool splitFace,
148 const label startFaceI,
165 const label patchPointI,
166 const label startFaceI,
244 const bool splitFace,
247 const labelList& singleCellFeaturePoints,
const labelList & faceToDualPoint() const
From face to dual point (at face centre; or -1 if not.
static void dumpPolyTopoChange(const polyTopoChange &, const fileName &)
A class for handling file names.
List< label > labelList
A List of labels.
void operator=(const meshDualiser &)
Disallow default bitwise assignment.
void createFacesAroundEdge(const bool splitFace, const PackedBoolList &, const label edgeI, const label startFaceI, polyTopoChange &, boolList &doneEFaces) const
Create internal faces walking around edge.
label addBoundaryFace(const label masterPointI, const label masterEdgeI, const label masterFaceI, const label dualCellI, const label patchI, const DynamicList< label > &verts, polyTopoChange &meshMod) const
Add boundary face.
void createFaceFromInternalFace(const label faceI, label &fp, polyTopoChange &) const
Create single internal face from internal face.
Direct mesh changes based on v1.3 polyTopoChange syntax.
label addInternalFace(const label masterPointI, const label masterEdgeI, const label masterFaceI, const bool edgeOrder, const label dualCell0, const label dualCell1, const DynamicList< label > &verts, polyTopoChange &meshMod) const
Add internal face.
label findDualCell(const label cellI, const label pointI) const
Find dual cell given point and cell.
Mesh consisting of general polyhedral cells.
const labelList & edgeToDualPoint() const
From edge to dual point (at edge mid; or -1 if not feature.
meshDualiser(const meshDualiser &)
Disallow default bitwise copy construct.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
labelList pointToDualPoint_
From point to dual point (or -1 if not feature point).
labelList cellToDualPoint_
From cell to dual point. All cells become point.
void setRefinement(const bool splitFace, const labelList &featureFaces, const labelList &featureEdges, const labelList &singleCellFeaturePoints, const labelList &multiCellFeaturePoints, polyTopoChange &meshMod)
Insert all changes into meshMod to convert the polyMesh into.
static void checkPolyTopoChange(const polyTopoChange &)
labelList edgeToDualPoint_
From edge to dual point (or -1 if not feature edge)
void generateDualBoundaryEdges(const PackedBoolList &, const label pointI, polyTopoChange &)
Helper function to generate dualpoints on all boundary edges.
void createFacesAroundBoundaryPoint(const label patchI, const label patchPointI, const label startFaceI, polyTopoChange &, boolList &donePFaces) const
Creates boundary faces walking around point on patchI.
const labelListList & pointToDualCells() const
From point on cell to dual cell. Either single entry or.
labelList faceToDualPoint_
From face to dual point (or -1 if not feature face)
ClassName("meshDualiser")
Runtime type information.
bool sameDualCell(const label faceI, const label pointI) const
Check that owner and neighbour of face have same dual cell.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
labelListList pointToDualCells_
From point on cell to dual cell. Either single entry or.
const labelList & pointToDualPoint() const
From point to dual point (or -1 if not feature point).
Creates dual of polyMesh. Every point becomes a cell (or multiple cells for feature points),...
const labelList & cellToDualPoint() const
From cell to dual point (at cell centre). All cells become.