Go to the documentation of this file.
35 #ifndef meshCutAndRemove_H
36 #define meshCutAndRemove_H
104 const label exposedPatchI,
124 const label masterPointI,
127 const label neighbour,
140 const label neighbour,
207 const label exposedPatchI,
label findCutCell(const cellCuts &, const labelList &) const
Returns -1 or the cell in cellLabels that is cut.
ClassName("meshCutAndRemove")
Runtime type information.
const Map< label > & addedFaces() const
Faces added. Per split cell label of added face.
Direct mesh changes based on v1.3 polyTopoChange syntax.
face addEdgeCutsToFace(const label faceI) const
Add cuts of edges to face.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
Combines edge or vertex in single label. Used to specify cuts across cell circumference.
like meshCutter but also removes non-anchor side of cell.
Mesh consisting of general polyhedral cells.
face loopToFace(const label cellI, const labelList &loop) const
Convert loop of cuts into face.
void faceCells(const cellCuts &cuts, const label exposedPatchI, const label faceI, label &own, label &nei, label &patchID) const
Get new owner and neighbour of face. Checks anchor points to see if.
HashTable< label, edge, Hash< edge > > addedPoints_
Points added in last setRefinement. Per split edge label of added.
static bool isIn(const edge &, const labelList &)
Do the elements of edge appear in consecutive order in the list.
Map< label > addedFaces_
Faces added in last setRefinement. Per split cell label of added.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void getZoneInfo(const label faceI, label &zoneID, bool &zoneFlip) const
Get zone information for face.
const HashTable< label, edge, Hash< edge > > & addedPoints() const
Points added. Per split edge label of added point.
void operator=(const meshCutAndRemove &)
Disallow default bitwise assignment.
meshCutAndRemove(const meshCutAndRemove &)
Disallow default bitwise copy construct.
void updateMesh(const mapPolyMesh &)
Force recalculation of locally stored data on topological change.
An STL-conforming hash table.
label findPatchFacePoint(const face &f, const label patchI) const
Find point on face that is part of original mesh and that is.
void setRefinement(const label exposedPatchI, const cellCuts &cuts, const labelList &cutPatch, polyTopoChange &meshMod)
Do actual cutting with cut description. Inserts mesh changes.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void addFace(polyTopoChange &meshMod, const label faceI, const label masterPointI, const face &newFace, const label owner, const label neighbour, const label patchID)
Adds a face from point. Flips face if owner>neighbour.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
A face is a list of labels corresponding to mesh vertices.
void splitFace(const face &f, const label v0, const label v1, face &f0, face &f1) const
Split face along cut into two faces. Faces are in same point.
void modFace(polyTopoChange &meshMod, const label faceI, const face &newFace, const label owner, const label neighbour, const label patchID)
Modifies existing faceI for either new owner/neighbour or.
labelList pointLabels(nPoints, -1)
label findInternalFacePoint(const labelList &pointLabels) const
Returns first pointI in pointLabels that uses an internal.
void copyFace(const face &f, const label startFp, const label endFp, face &newFace) const
static label firstCommon(const labelList &lst1, const labelList &lst2)
Description of cuts across cells.
const polyMesh & mesh() const