From 81bd77b8ade58be84486319bd4612df1c00fdfae Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 5 Nov 2008 15:38:27 +0000 Subject: [PATCH] remove meshCutSurface --- src/finiteVolume/Make/files | 11 - .../edgeCuts/cellDecompCuts.H | 161 --- .../edgeCuts/cellDecompIsoSurfaceCuts.C | 267 ----- .../edgeCuts/cellDecompIsoSurfaceCuts.H | 101 -- .../edgeCuts/faceDecompCuts.H | 200 --- .../edgeCuts/faceDecompIsoSurfaceCuts.C | 342 ------ .../edgeCuts/faceDecompIsoSurfaceCuts.H | 102 -- .../fvMeshCutSurface/edgeCuts/meshEdgeCuts.C | 109 -- .../fvMeshCutSurface/edgeCuts/meshEdgeCuts.H | 161 --- .../fvMeshCutSurface/meshCut/cellAddressing.C | 132 -- .../fvMeshCutSurface/meshCut/cellAddressing.H | 145 --- .../fvMeshCutSurface/meshCut/meshCutSurface.C | 1068 ----------------- .../fvMeshCutSurface/meshCut/meshCutSurface.H | 209 ---- .../meshCut/meshCutSurfaceInterpolate.C | 174 --- .../fvMeshCutSurface/tetEdges/centreEdge.H | 187 --- .../fvMeshCutSurface/tetEdges/diagonalEdge.H | 199 --- .../fvMeshCutSurface/tetEdges/faceEdge.H | 186 --- .../fvMeshCutSurface/tetEdges/pyramidEdge.H | 185 --- 18 files changed, 3939 deletions(-) delete mode 100644 src/finiteVolume/fvMesh/fvMeshCutSurface/edgeCuts/cellDecompCuts.H delete mode 100644 src/finiteVolume/fvMesh/fvMeshCutSurface/edgeCuts/cellDecompIsoSurfaceCuts.C delete mode 100644 src/finiteVolume/fvMesh/fvMeshCutSurface/edgeCuts/cellDecompIsoSurfaceCuts.H delete mode 100644 src/finiteVolume/fvMesh/fvMeshCutSurface/edgeCuts/faceDecompCuts.H delete mode 100644 src/finiteVolume/fvMesh/fvMeshCutSurface/edgeCuts/faceDecompIsoSurfaceCuts.C delete mode 100644 src/finiteVolume/fvMesh/fvMeshCutSurface/edgeCuts/faceDecompIsoSurfaceCuts.H delete mode 100644 src/finiteVolume/fvMesh/fvMeshCutSurface/edgeCuts/meshEdgeCuts.C delete mode 100644 src/finiteVolume/fvMesh/fvMeshCutSurface/edgeCuts/meshEdgeCuts.H delete mode 100644 src/finiteVolume/fvMesh/fvMeshCutSurface/meshCut/cellAddressing.C delete mode 100644 src/finiteVolume/fvMesh/fvMeshCutSurface/meshCut/cellAddressing.H delete mode 100644 src/finiteVolume/fvMesh/fvMeshCutSurface/meshCut/meshCutSurface.C delete mode 100644 src/finiteVolume/fvMesh/fvMeshCutSurface/meshCut/meshCutSurface.H delete mode 100644 src/finiteVolume/fvMesh/fvMeshCutSurface/meshCut/meshCutSurfaceInterpolate.C delete mode 100644 src/finiteVolume/fvMesh/fvMeshCutSurface/tetEdges/centreEdge.H delete mode 100644 src/finiteVolume/fvMesh/fvMeshCutSurface/tetEdges/diagonalEdge.H delete mode 100644 src/finiteVolume/fvMesh/fvMeshCutSurface/tetEdges/faceEdge.H delete mode 100644 src/finiteVolume/fvMesh/fvMeshCutSurface/tetEdges/pyramidEdge.H diff --git a/src/finiteVolume/Make/files b/src/finiteVolume/Make/files index 2f301c0406..199daec554 100644 --- a/src/finiteVolume/Make/files +++ b/src/finiteVolume/Make/files @@ -297,15 +297,4 @@ cfdTools/general/SRF/SRFModel/SRFModel/newSRFModel.C cfdTools/general/SRF/SRFModel/rpm/rpm.C cfdTools/general/SRF/derivedFvPatchFields/SRFVelocityFvPatchVectorField/SRFVelocityFvPatchVectorField.C -fvMeshCutSurface = fvMesh/fvMeshCutSurface - -meshCut = $(fvMeshCutSurface)/meshCut -$(meshCut)/meshCutSurface.C -$(meshCut)/cellAddressing.C - -edgeCuts = $(fvMeshCutSurface)/edgeCuts -$(edgeCuts)/meshEdgeCuts.C -$(edgeCuts)/faceDecompIsoSurfaceCuts.C -$(edgeCuts)/cellDecompIsoSurfaceCuts.C - LIB = $(FOAM_LIBBIN)/libfiniteVolume diff --git a/src/finiteVolume/fvMesh/fvMeshCutSurface/edgeCuts/cellDecompCuts.H b/src/finiteVolume/fvMesh/fvMeshCutSurface/edgeCuts/cellDecompCuts.H deleted file mode 100644 index a1cc320e8f..0000000000 --- a/src/finiteVolume/fvMesh/fvMeshCutSurface/edgeCuts/cellDecompCuts.H +++ /dev/null @@ -1,161 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2008 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM 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 2 of the License, or (at your - option) any later version. - - OpenFOAM 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 OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Class - Foam::cellDecompCuts - -Description - Container for cuts of edges of (implicit) tet decomposition. - Used to collect data for meshCut. - - As much as possible, cuts are defined using mesh information: - - cut (exactly) through mesh vertex - - cut (exactly) through cell centre - - - cut through mesh edge. Both edge label and position on edge given. - - - cut through tet pyramidEdge (edge between vertex and cell centre). - Edge and position on edge given. - - - cut through diagonalEdge (edge between vertices of a face) - Edge and position on edge given. - -SourceFiles - -\*---------------------------------------------------------------------------*/ - -#ifndef cellDecompCuts_H -#define cellDecompCuts_H - -#include "meshEdgeCuts.H" -#include "pyramidEdge.H" -#include "diagonalEdge.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - -// Forward declaration of classes - -/*---------------------------------------------------------------------------*\ - Class cellDecompCuts Declaration -\*---------------------------------------------------------------------------*/ - -class cellDecompCuts -: - public meshEdgeCuts -{ - -protected: - - labelList meshCellCentres_; - - List pyrEdges_; - scalarField pyrEdgeWeights_; - - List diagEdges_; - scalarField diagEdgeWeights_; - - // Private Member Functions - - -public: - - // Constructors - - //- Construct from components - cellDecompCuts - ( - const primitiveMesh& mesh, - const labelList& cells, - - const labelList& meshVerts, - const labelList& meshCellCentres, - - const labelList& meshEdges, - const scalarField& meshEdgeWeights, - - const List& pyrEdges, - const scalarField& pyrEdgeWeights, - - const List& diagEdges, - const scalarField& diagEdgeWeights - ) - : - meshEdgeCuts(mesh, cells, meshVerts, meshEdges, meshEdgeWeights), - meshCellCentres_(meshCellCentres), - pyrEdges_(pyrEdges), - pyrEdgeWeights_(pyrEdgeWeights), - diagEdges_(diagEdges), - diagEdgeWeights_(diagEdgeWeights) - {} - - - // Member Functions - - const labelList& meshCellCentres() const - { - return meshCellCentres_; - } - - const List& pyrEdges() const - { - return pyrEdges_; - } - - const scalarField& pyrEdgeWeights() const - { - return pyrEdgeWeights_; - } - - const List& diagEdges() const - { - return diagEdges_; - } - - const scalarField& diagEdgeWeights() const - { - return diagEdgeWeights_; - } - - label size() const - { - return - meshEdgeCuts::size() + meshCellCentres_.size() - + pyrEdges_.size() + diagEdges_.size(); - } - -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/src/finiteVolume/fvMesh/fvMeshCutSurface/edgeCuts/cellDecompIsoSurfaceCuts.C b/src/finiteVolume/fvMesh/fvMeshCutSurface/edgeCuts/cellDecompIsoSurfaceCuts.C deleted file mode 100644 index 1f8f7d6d1f..0000000000 --- a/src/finiteVolume/fvMesh/fvMeshCutSurface/edgeCuts/cellDecompIsoSurfaceCuts.C +++ /dev/null @@ -1,267 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2008 OpenCFD Ltd. - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM 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 2 of the License, or (at your - option) any later version. - - OpenFOAM 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 OpenFOAM; if not, write to the Free Software Foundation, - Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -Description - -\*---------------------------------------------------------------------------*/ - -#include "cellDecompIsoSurfaceCuts.H" -#include "volPointInterpolation.H" - -// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // - -void Foam::cellDecompIsoSurfaceCuts::constructEdgeCuts -( - const volScalarField& volField, - const pointScalarField& ptField, - const scalar isoVal, - const scalar tol -) -{ - const primitiveMesh& mesh = volField.mesh(); - - // Intermediate storage for labels of cut edges and cut points - label nBFaces = mesh.nFaces() - mesh.nInternalFaces(); - - labelHashSet cutCells(nBFaces); - labelHashSet cutVerts(nBFaces); - labelHashSet cutCellCentres(nBFaces); - - DynamicList