diff --git a/applications/utilities/mesh/advanced/combinePatchFaces/combinePatchFaces.C b/applications/utilities/mesh/advanced/combinePatchFaces/combinePatchFaces.C index b9f4dd25b6..6cc4d6f32b 100644 --- a/applications/utilities/mesh/advanced/combinePatchFaces/combinePatchFaces.C +++ b/applications/utilities/mesh/advanced/combinePatchFaces/combinePatchFaces.C @@ -53,7 +53,7 @@ Description #include "polyAddFace.H" #include "combineFaces.H" #include "removePoints.H" -#include "polyMesh.H" +#include "polyMeshCheck.H" #include "polyTopoChangeMap.H" #include "unitConversion.H" #include "motionSmoother.H" @@ -135,7 +135,7 @@ label mergePatchFaces } else { - mesh.checkFacePyramids(false, -small, &errorFaces); + meshCheck::checkFacePyramids(mesh, false, -small, &errorFaces); } // Sets where the master is in error diff --git a/applications/utilities/mesh/manipulation/checkMesh/checkGeometry.C b/applications/utilities/mesh/manipulation/checkMesh/checkGeometry.C index 0ed8058f3f..c7e55c2181 100644 --- a/applications/utilities/mesh/manipulation/checkMesh/checkGeometry.C +++ b/applications/utilities/mesh/manipulation/checkMesh/checkGeometry.C @@ -25,7 +25,6 @@ License #include "PatchTools.H" #include "checkGeometry.H" -#include "polyMesh.H" #include "polyMeshCheck.H" #include "cellSet.H" #include "faceSet.H" @@ -582,15 +581,16 @@ Foam::label Foam::checkGeometry } } - if (mesh.checkClosedBoundary(true)) noFailedChecks++; + if (meshCheck::checkClosedBoundary(mesh, true)) noFailedChecks++; { cellSet cells(mesh, "nonClosedCells", mesh.nCells()/100+1); cellSet aspectCells(mesh, "highAspectRatioCells", mesh.nCells()/100+1); if ( - mesh.checkClosedCells + meshCheck::checkClosedCells ( + mesh, true, &cells, &aspectCells, @@ -633,7 +633,7 @@ Foam::label Foam::checkGeometry { faceSet faces(mesh, "zeroAreaFaces", mesh.nFaces()/100+1); - if (mesh.checkFaceAreas(true, &faces)) + if (meshCheck::checkFaceAreas(mesh, true, &faces)) { noFailedChecks++; @@ -655,7 +655,7 @@ Foam::label Foam::checkGeometry { cellSet cells(mesh, "zeroVolumeCells", mesh.nCells()/100+1); - if (mesh.checkCellVolumes(true, &cells)) + if (meshCheck::checkCellVolumes(mesh, true, &cells)) { noFailedChecks++; @@ -699,7 +699,7 @@ Foam::label Foam::checkGeometry { faceSet faces(mesh, "wrongOrientedFaces", mesh.nFaces()/100 + 1); - if (mesh.checkFacePyramids(true, -small, &faces)) + if (meshCheck::checkFacePyramids(mesh, true, -small, &faces)) { noFailedChecks++; @@ -803,7 +803,7 @@ Foam::label Foam::checkGeometry { // Note use of nPoints since don't want edge construction. pointSet points(mesh, "shortEdges", mesh.nPoints()/1000 + 1); - if (mesh.checkEdgeLength(true, minDistSqr, &points)) + if (meshCheck::checkEdgeLength(mesh, true, minDistSqr, &points)) { // noFailedChecks++; @@ -825,7 +825,7 @@ Foam::label Foam::checkGeometry label nEdgeClose = returnReduce(points.size(), sumOp