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