Commit 1886d252 authored by Alen Cukrov's avatar Alen Cukrov
Browse files

Implemented all the necessary quality control settings.

parent 16bd8ddf
...@@ -104,6 +104,44 @@ bool checkMinTwist ...@@ -104,6 +104,44 @@ bool checkMinTwist
const boolList* changedFacePtr = NULL const boolList* changedFacePtr = NULL
); );
//- Check the area of internal faces versus boundary faces
bool checkCellDeterminant
(
const polyMeshGen&,
const bool report = false,
const scalar warnDet = 1e-3,
labelHashSet* setPtr = NULL,
const boolList* changedFacePtr = NULL
);
//- Check volume ratio
void checkMinVolRatio
(
const polyMeshGen&,
scalarField&,
const boolList* changedFacePtr = NULL
);
bool checkMinVolRatio
(
const polyMeshGen&,
const bool report = false,
const scalar warnVolRatio = 0.01,
labelHashSet* setPtr = NULL,
const boolList* changedFacePtr = NULL
);
//- Check face triangle twist
bool checkTriangleTwist
(
const polyMeshGen&,
const bool report = false,
const scalar minTwist = VSMALL,
labelHashSet* setPtr = NULL,
const boolList* changedFacePtr = NULL
);
//- Check for negative part tetrahedra //- Check for negative part tetrahedra
//- Cells are decomposed into tetrahedra formed by //- Cells are decomposed into tetrahedra formed by
//- the cell centre, face centre and the edge vertices //- the cell centre, face centre and the edge vertices
...@@ -260,6 +298,15 @@ bool checkGeometry(const polyMeshGen&, const bool report = false); ...@@ -260,6 +298,15 @@ bool checkGeometry(const polyMeshGen&, const bool report = false);
//- Check mesh for correctness. Returns false for no error. //- Check mesh for correctness. Returns false for no error.
bool checkMesh(const polyMeshGen&, const bool report = false); bool checkMesh(const polyMeshGen&, const bool report = false);
//- Read the user defined mesh quality settings
label findBadFacesAdditionalChecks
(
const polyMeshGen& mesh,
const bool report,
labelHashSet& badFaces,
const boolList* activeFacePtr = NULL
);
//- checks for bad faces making the mesh unusable //- checks for bad faces making the mesh unusable
//- checks for negative pyramids and zero area faces //- checks for negative pyramids and zero area faces
label findBadFacesRelaxed label findBadFacesRelaxed
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment