From 883dbc2e2dd8eda98da439cedfb0077c85506e6c Mon Sep 17 00:00:00 2001 From: mattijs Date: Tue, 30 Mar 2010 21:48:57 +0100 Subject: [PATCH] ENH: Add concave cell checking --- .../manipulation/checkMesh/checkGeometry.C | 16 +++ .../meshes/primitiveMesh/primitiveMesh.H | 21 ++- .../primitiveMeshCheck/primitiveMeshCheck.C | 135 +++++++++++++++++- 3 files changed, 160 insertions(+), 12 deletions(-) diff --git a/applications/utilities/mesh/manipulation/checkMesh/checkGeometry.C b/applications/utilities/mesh/manipulation/checkMesh/checkGeometry.C index e16d90bbbd..50ff6918b0 100644 --- a/applications/utilities/mesh/manipulation/checkMesh/checkGeometry.C +++ b/applications/utilities/mesh/manipulation/checkMesh/checkGeometry.C @@ -291,6 +291,22 @@ Foam::label Foam::checkGeometry(const polyMesh& mesh, const bool allGeometry) } } + if (allGeometry) + { + cellSet cells(mesh, "concaveCells", mesh.nCells()/100); + if (mesh.checkConcaveCells(true, &cells)) + { + noFailedChecks++; + + label nCells = returnReduce(cells.size(), sumOp