Go to the documentation of this file.
39 #ifndef edgeCollapser_H
40 #define edgeCollapser_H
90 const scalar guardFraction_;
93 const scalar maxCollapseFaceToPointSideLengthCoeff_;
97 const bool allowEarlyCollapseToPoint_;
101 const scalar allowEarlyCollapseCoeff_;
121 const vector& collapseAxis,
147 void faceCollapseAxisAndAspectRatio
165 const scalar targetFaceSize,
173 label edgeMaster(
const labelList& pointPriority,
const edge&
e)
const;
176 void checkBoundaryPointMergeEdges
179 const label otherPointi,
187 label breakStringsAtEdges
189 const bitSet& markedEdges,
197 void determineDuplicatePointsOnFace
208 label countEdgesOnFace
294 const bool allowCellCollapse =
false
Calculates points shared by more than two processor patches or cyclic patches.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
Direct mesh changes based on v1.3 polyTopoChange syntax.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
labelPair markFaceZoneEdges(const faceZone &fZone, const scalarField &faceFilterFactor, const labelList &pointPriority, bitSet &collapseEdge, Map< point > &collapsePointToLocation) const
A HashTable to objects of type <T> with a label key.
A HashTable with keys but without contents that is similar to std::unordered_set.
Mesh consisting of general polyhedral cells.
Does polyTopoChanges to remove edges. Can remove faces due to edge collapse but can not remove cells ...
static labelHashSet checkBadFaces(const polyMesh &mesh, const dictionary &meshQualityDict)
Generic templated field type.
A subset of mesh faces organised as a primitive patch.
label markSmallEdges(const scalarField &minEdgeLen, const labelList &pointPriority, bitSet &collapseEdge, Map< point > &collapsePointToLocation) const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool setRefinement(const List< pointEdgeCollapse > &allPointInfo, polyTopoChange &meshMod) const
Calculates a unique integer (label so might not have enough room - 2G max) for processor + local inde...
void consistentCollapse(const globalIndex &globalPoints, const labelList &pointPriority, const Map< point > &collapsePointToLocation, bitSet &collapseEdge, List< pointEdgeCollapse > &allPointInfo, const bool allowCellCollapse=false) const
An ordered pair of two objects of type <T> with first() and second() elements.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const dimensionedScalar e
static label checkMeshQuality(const polyMesh &mesh, const dictionary &meshQualityDict, bitSet &isErrorPoint)
A face is a list of labels corresponding to mesh vertices.
label collapseEdge(triSurface &surf, const scalar minLen)
labelPair markSmallSliverFaces(const scalarField &faceFilterFactor, const labelList &pointPriority, bitSet &collapseEdge, Map< point > &collapsePointToLocation) const
label markMergeEdges(const scalar maxCos, const labelList &pointPriority, bitSet &collapseEdge, Map< point > &collapsePointToLocation) const
labelList pointLabels(nPoints, -1)
ClassName("edgeCollapser")