From 3feae1f3f6955ae8cb9228c325e4db00de99acda Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 8 Oct 2008 11:41:38 +0100 Subject: [PATCH] extraneous copy --- .../manipulation/checkMesh.save/Make/files | 6 - .../manipulation/checkMesh.save/Make/options | 5 - .../checkMesh.save/checkGeometry.C | 220 ---------------- .../checkMesh.save/checkGeometry.H | 13 - .../manipulation/checkMesh.save/checkMesh.C | 152 ----------- .../checkMesh.save/checkTopology.C | 236 ------------------ .../checkMesh.save/checkTopology.H | 8 - .../checkMesh.save/printMeshStats.C | 95 ------- .../checkMesh.save/printMeshStats.H | 6 - 9 files changed, 741 deletions(-) delete mode 100644 applications/utilities/mesh/manipulation/checkMesh.save/Make/files delete mode 100644 applications/utilities/mesh/manipulation/checkMesh.save/Make/options delete mode 100644 applications/utilities/mesh/manipulation/checkMesh.save/checkGeometry.C delete mode 100644 applications/utilities/mesh/manipulation/checkMesh.save/checkGeometry.H delete mode 100644 applications/utilities/mesh/manipulation/checkMesh.save/checkMesh.C delete mode 100644 applications/utilities/mesh/manipulation/checkMesh.save/checkTopology.C delete mode 100644 applications/utilities/mesh/manipulation/checkMesh.save/checkTopology.H delete mode 100644 applications/utilities/mesh/manipulation/checkMesh.save/printMeshStats.C delete mode 100644 applications/utilities/mesh/manipulation/checkMesh.save/printMeshStats.H diff --git a/applications/utilities/mesh/manipulation/checkMesh.save/Make/files b/applications/utilities/mesh/manipulation/checkMesh.save/Make/files deleted file mode 100644 index f0b7c16694..0000000000 --- a/applications/utilities/mesh/manipulation/checkMesh.save/Make/files +++ /dev/null @@ -1,6 +0,0 @@ -printMeshStats.C -checkTopology.C -checkGeometry.C -checkMesh.C - -EXE = $(FOAM_APPBIN)/checkMesh diff --git a/applications/utilities/mesh/manipulation/checkMesh.save/Make/options b/applications/utilities/mesh/manipulation/checkMesh.save/Make/options deleted file mode 100644 index 54c035b8f5..0000000000 --- a/applications/utilities/mesh/manipulation/checkMesh.save/Make/options +++ /dev/null @@ -1,5 +0,0 @@ -EXE_INC = \ - -I$(LIB_SRC)/meshTools/lnInclude - -EXE_LIBS = \ - -lmeshTools diff --git a/applications/utilities/mesh/manipulation/checkMesh.save/checkGeometry.C b/applications/utilities/mesh/manipulation/checkMesh.save/checkGeometry.C deleted file mode 100644 index 9eb4ef63ad..0000000000 --- a/applications/utilities/mesh/manipulation/checkMesh.save/checkGeometry.C +++ /dev/null @@ -1,220 +0,0 @@ -#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<< " <()); - - if (noFailedChecks == 0) - { - Info<< "\nMesh OK." - << nl << endl; - } - else - { - Info<< "\nFailed " << noFailedChecks << " mesh checks." - << nl << endl; - } - } - else if (state == polyMesh::POINTS_MOVED) - { - label noFailedChecks = checkGeometry - ( - mesh, - args.options().found("pointNearness"), - args.options().found("cellDeterminant") - ); - - reduce(noFailedChecks, sumOp