#include "checkGeometry.H" #include "polyMesh.H" #include "globalMeshData.H" #include "cellSet.H" #include "faceSet.H" #include "pointSet.H" Foam::label Foam::checkGeometry ( const polyMesh& mesh, bool checkPointNearness, bool checkCellDeterminant ) { label noFailedChecks = 0; Info<< "\nChecking geometry..." << endl; boundBox bb(mesh.points()); Pout<< " Domain bounding box: " << bb.min() << " " << bb.max() << endl; // Get a small relative length from the bounding box const boundBox& globalBb = mesh.globalData().bb(); if (Pstream::parRun()) { Info<< " Overall domain bounding box: " << globalBb.min() << " " << globalBb.max() << endl; } // Min length scalar minDistSqr = magSqr(1e-6*(globalBb.max() - globalBb.min())); if (mesh.checkClosedBoundary(true)) noFailedChecks++; { cellSet cells(mesh, "nonClosedCells", mesh.nCells()/100+1); cellSet aspectCells(mesh, "highAspectRatioCells", mesh.nCells()/100+1); if (mesh.checkClosedCells(true, &cells, &aspectCells)) { noFailedChecks++; if (cells.size() > 0) { Pout<< " < 0) { Pout<< " < 0) { Pout<< " < 0) { Pout<< " < 0) { Pout<< " < 0) { Pout<< " < 0) { Pout<< " < 0) { Pout<< " < nEdgeClose) { pointSet nearPoints(mesh, "nearPoints", points); Pout<< " < 0) { Pout<< " < 0) { Pout<< " <