Go to the documentation of this file.
35 #ifndef polyMeshGenChecks_H
36 #define polyMeshGenChecks_H
62 const bool report =
false,
63 const scalar aspectWarn = 1000,
71 const bool report =
false,
79 const bool report =
false,
80 const scalar minFaceArea = VSMALL,
82 const boolList* changedFacePtr = NULL
91 const bool report =
false,
92 const scalar minPartTet = VSMALL,
94 const boolList* changedFacePtr = NULL
102 const boolList* changedFacePtr = NULL
108 const bool report =
false,
109 const scalar nonOrthWarn = 70.0,
111 const boolList* changedFacePtr = NULL
118 const bool report =
false,
119 const scalar minPyrVol = -SMALL,
121 const boolList* changedFacePtr = NULL
129 const boolList* changedFacePtr = NULL
135 const bool report =
false,
136 const scalar warnSkew = 4.0,
138 const boolList* changedFacePtr = NULL
146 const boolList* changedFacePtr = NULL
152 const bool report =
false,
153 const scalar warnUniform = 0.1,
155 const boolList* changedFacePtr = NULL
163 const boolList* changedFacePtr = NULL
169 const bool report =
false,
170 const scalar warnUniform = 0.1,
172 const boolList* changedFacePtr = NULL
179 const bool report =
false,
180 const scalar maxDeg = 10,
182 const boolList* changedFacePtr = NULL
192 const scalar warnFlatness,
194 const boolList* changedFacePtr = NULL
203 const bool report =
false,
211 const bool report =
false,
219 const bool report =
false,
227 const bool report =
false,
247 const bool report =
false,
248 const boolList* activeFacePtr = NULL
258 const bool report =
false,
259 const boolList* activeFacePtr = NULL
268 const bool report =
false,
269 const boolList* activeFacePtr = NULL
277 const bool report =
false,
278 const boolList* activeFacePtr = NULL,
279 const scalar relativeThreshold = 0.1
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
bool checkClosedBoundary(const polyMeshGen &, const bool report=false)
Check boundary closedness.
label findBadFaces(const polyMeshGen &, labelHashSet &badFaces, const bool report=false, const boolList *activeFacePtr=NULL)
bool checkGeometry(const polyMeshGen &mesh, const bool report)
Check mesh geometry (& implicitly topology) for correctness.
bool checkMesh(const polyMeshGen &mesh, const bool report)
Check mesh for correctness. Returns false for no error.
void checkFaceSkewness(const polyMeshGen &, scalarField &, const boolList *changedFacePtr=NULL)
Check face skewness.
A set of functions used for mesh checking mesh quality.
bool checkUpperTriangular(const polyMeshGen &, const bool report=false, labelHashSet *setPtr=NULL)
Check face ordering.
bool checkFaceAreas(const polyMeshGen &, const bool report=false, const scalar minFaceArea=VSMALL, labelHashSet *setPtr=NULL, const boolList *changedFacePtr=NULL)
Check for negative face areas.
bool checkFaceFlatness(const polyMeshGen &, const bool report, const scalar warnFlatness, labelHashSet *setPtr=NULL, const boolList *changedFacePtr=NULL)
Check face warpage: decompose face and check ratio between.
bool checkFaceVertices(const polyMeshGen &, const bool report=false, labelHashSet *setPtr=NULL)
Check uniqueness of face vertices.
bool checkFaceAngles(const polyMeshGen &, const bool report=false, const scalar maxDeg=10, labelHashSet *setPtr=NULL, const boolList *changedFacePtr=NULL)
Check face angles.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool checkCellsZipUp(const polyMeshGen &, const bool report=false, labelHashSet *setPtr=NULL)
Check cell zip-up.
void checkFaceDotProduct(const polyMeshGen &, scalarField &, const boolList *changedFacePtr=NULL)
Check for non-orthogonality.
label findBadFacesRelaxed(const polyMeshGen &, labelHashSet &badFaces, const bool report=false, const boolList *activeFacePtr=NULL)
void checkVolumeUniformity(const polyMeshGen &, scalarField &, const boolList *changedFacePtr=NULL)
check volume difference of neighbouring cells
bool checkPoints(const polyMeshGen &, const bool report=false, labelHashSet *setPtr=NULL)
Check for unused points.
label findLowQualityFaces(const polyMeshGen &mesh, labelHashSet &badFaces, const bool report=false, const boolList *activeFacePtr=NULL)
bool checkCellPartTetrahedra(const polyMeshGen &, const bool report=false, const scalar minPartTet=VSMALL, labelHashSet *setPtr=NULL, const boolList *changedFacePtr=NULL)
List< bool > boolList
Bool container classes.
bool checkTopology(const polyMeshGen &mesh, const bool report)
Check mesh topology for correctness. Returns false for no error.
bool checkFacePyramids(const polyMeshGen &, const bool report=false, const scalar minPyrVol=-SMALL, labelHashSet *setPtr=NULL, const boolList *changedFacePtr=NULL)
Check face pyramid volume.
void checkFaceUniformity(const polyMeshGen &, scalarField &, const boolList *changedFacePtr=NULL)
Check face uniformity.
bool checkCellVolumes(const polyMeshGen &, const bool report=false, labelHashSet *setPtr=NULL)
Check for negative cell volumes.
HashSet< label, Hash< label > > labelHashSet
A HashSet with label keys.
bool checkClosedCells(const polyMeshGen &, const bool report=false, const scalar aspectWarn=1000, labelHashSet *setPtr=NULL)
Check cells for closedness.
label findWorstQualityFaces(const polyMeshGen &mesh, labelHashSet &badFaces, const bool report=false, const boolList *activeFacePtr=NULL, const scalar relativeThreshold=0.1)
checks the mesh and selects the faces with worst quality