From a9fefbe25b05067e9acd4c99385fa64e13117b87 Mon Sep 17 00:00:00 2001 From: Dominik Christ Date: Fri, 15 May 2015 11:28:36 +0100 Subject: [PATCH] FEATURE: cfMesh library structure cleanup. Author: Dominik Christ. Merge: Dominik Christ. --- .../symmetryPlaneOptimisation.C | 251 ------------------ .../symmetryPlaneOptimisation.H | 99 ------- .../triSurface2DCheck/triSurface2DCheck.C | 171 ------------ .../triSurface2DCheck/triSurface2DCheck.H | 98 ------- .../triSurfaceCleanupDuplicateTriangles.C | 56 ---- .../triSurfaceCleanupDuplicateTriangles.H | 98 ------- ...urfaceCleanupDuplicateTrianglesFunctions.C | 100 ------- .../triSurfaceImportSurfaceAsSubset.C | 240 ----------------- .../triSurfaceImportSurfaceAsSubset.H | 103 ------- 9 files changed, 1216 deletions(-) delete mode 100644 src/mesh/cfMesh/meshLibrary/utilities/smoothers/geometry/meshOptimizer/symmetryPlaneOptimisation/symmetryPlaneOptimisation.C delete mode 100644 src/mesh/cfMesh/meshLibrary/utilities/smoothers/geometry/meshOptimizer/symmetryPlaneOptimisation/symmetryPlaneOptimisation.H delete mode 100644 src/mesh/cfMesh/meshLibrary/utilities/triSurfaceTools/triSurface2DCheck/triSurface2DCheck.C delete mode 100644 src/mesh/cfMesh/meshLibrary/utilities/triSurfaceTools/triSurface2DCheck/triSurface2DCheck.H delete mode 100644 src/mesh/cfMesh/meshLibrary/utilities/triSurfaceTools/triSurfaceCleanupDuplicateTriangles/triSurfaceCleanupDuplicateTriangles.C delete mode 100644 src/mesh/cfMesh/meshLibrary/utilities/triSurfaceTools/triSurfaceCleanupDuplicateTriangles/triSurfaceCleanupDuplicateTriangles.H delete mode 100644 src/mesh/cfMesh/meshLibrary/utilities/triSurfaceTools/triSurfaceCleanupDuplicateTriangles/triSurfaceCleanupDuplicateTrianglesFunctions.C delete mode 100644 src/mesh/cfMesh/meshLibrary/utilities/triSurfaceTools/triSurfaceImportSurfaceAsSubset/triSurfaceImportSurfaceAsSubset.C delete mode 100644 src/mesh/cfMesh/meshLibrary/utilities/triSurfaceTools/triSurfaceImportSurfaceAsSubset/triSurfaceImportSurfaceAsSubset.H diff --git a/src/mesh/cfMesh/meshLibrary/utilities/smoothers/geometry/meshOptimizer/symmetryPlaneOptimisation/symmetryPlaneOptimisation.C b/src/mesh/cfMesh/meshLibrary/utilities/smoothers/geometry/meshOptimizer/symmetryPlaneOptimisation/symmetryPlaneOptimisation.C deleted file mode 100644 index 8a8fb8f67..000000000 --- a/src/mesh/cfMesh/meshLibrary/utilities/smoothers/geometry/meshOptimizer/symmetryPlaneOptimisation/symmetryPlaneOptimisation.C +++ /dev/null @@ -1,251 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | cfMesh: A library for mesh generation - \\ / O peration | - \\ / A nd | Author: Franjo Juretic (franjo.juretic@c-fields.com) - \\/ M anipulation | Copyright (C) Creative Fields, Ltd. -------------------------------------------------------------------------------- -License - This file is part of cfMesh. - - cfMesh is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 3 of the License, or (at your - option) any later version. - - cfMesh is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with cfMesh. If not, see . - -Description - -\*---------------------------------------------------------------------------*/ - -#include "demandDrivenData.H" -#include "symmetryPlaneOptimisation.H" -#include "polyMeshGenAddressing.H" -#include "helperFunctions.H" -#include "polyMeshGenChecks.H" -#include "meshOptimizer.H" - -// #define DEBUGSearch - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void symmetryPlaneOptimisation::detectSymmetryPlanes() -{ - const PtrList& boundaries = mesh_.boundaries(); - const pointFieldPMG& points = mesh_.points(); - const faceListPMG& faces = mesh_.faces(); - - symmetryPlanes_.clear(); - - typedef std::map > mapType; - mapType centreSum, normalSum; - - forAll(boundaries, patchI) - { - if( boundaries[patchI].patchType() == "symmetryPlane" ) - { - std::pair& cs = centreSum[patchI]; - cs = std::pair(vector::zero, 0); - - std::pair& ns = normalSum[patchI]; - ns = std::pair(vector::zero, 0); - - const label start = boundaries[patchI].patchStart(); - const label end = start + boundaries[patchI].patchSize(); - for(label faceI=start;faceI& cs = pIter->second; - reduce(cs.second, sumOp