ENH: Not checking faces with area < SMALL.

This commit is contained in:
graham
2010-10-13 18:27:16 +01:00
parent 76c5f4d93d
commit 92a978bf68

View File

@ -1445,11 +1445,32 @@ Foam::label Foam::conformalVoronoiMesh::checkPolyMeshQuality
Info << endl; Info << endl;
DynamicList<label> checkFaces(pMesh.nFaces());
const vectorField& fAreas = pMesh.faceAreas();
scalar faceAreaLimit = SMALL;
forAll(fAreas, fI)
{
if (mag(fAreas[fI]) > faceAreaLimit)
{
checkFaces.append(fI);
}
}
if (checkFaces.size() < fAreas.size())
{
Info<< "Excluding " << fAreas.size() - checkFaces.size()
<< " faces from check, < " << faceAreaLimit << " area" << endl;
}
motionSmoother::checkMesh motionSmoother::checkMesh
( (
false, false,
pMesh, pMesh,
cvMeshControls().cvMeshDict().subDict("meshQualityControls"), cvMeshControls().cvMeshDict().subDict("meshQualityControls"),
checkFaces,
wrongFaces wrongFaces
); );