meshSurfacePartitioner.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | cfMesh: A library for mesh generation
4  \\ / O peration |
5  \\ / A nd | Author: Franjo Juretic (franjo.juretic@c-fields.com)
6  \\/ M anipulation | Copyright (C) Creative Fields, Ltd.
7 -------------------------------------------------------------------------------
8 License
9  This file is part of cfMesh.
10 
11  cfMesh is free software; you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by the
13  Free Software Foundation; either version 3 of the License, or (at your
14  option) any later version.
15 
16  cfMesh is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with cfMesh. If not, see <http://www.gnu.org/licenses/>.
23 
24 Description
25 
26 \*---------------------------------------------------------------------------*/
27 
28 #include "meshSurfacePartitioner.H"
29 
30 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
31 
32 namespace Foam
33 {
34 
35 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
36 
38 (
39  const meshSurfaceEngine& meshSurface
40 )
41 :
42  meshSurface_(meshSurface),
43  facePatch_(meshSurface.boundaryFacePatches()),
44  pointPatches_(),
45  corners_(),
46  edgePoints_(),
47  patchPatches_(),
48  nEdgesAtPoint_(),
49  featureEdges_()
50 {
51  calculateCornersEdgesAndAddressing();
52 }
53 
55 (
56  const meshSurfaceEngine& meshSurface,
57  const labelList& facePatch
58 )
59 :
60  meshSurface_(meshSurface),
61  facePatch_(facePatch),
62  pointPatches_(),
63  corners_(),
64  edgePoints_(),
65  patchPatches_(),
66  nEdgesAtPoint_(),
67  featureEdges_()
68 {
69  calculateCornersEdgesAndAddressing();
70 }
71 
72 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
73 
75 {}
76 
77 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
78 
79 
80 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
81 
82 } // End namespace Foam
83 
84 // ************************************************************************* //
Foam::meshSurfaceEngine::boundaryFacePatches
const labelList & boundaryFacePatches() const
patch label for each boundary face
Definition: meshSurfaceEngineI.H:123
Foam::meshSurfacePartitioner::~meshSurfacePartitioner
~meshSurfacePartitioner()
Definition: meshSurfacePartitioner.C:74
Foam::meshSurfacePartitioner::meshSurfacePartitioner
meshSurfacePartitioner(const meshSurfacePartitioner &)
Disallow default bitwise copy construct.
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::List
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: HashTable.H:59
Foam::meshSurfaceEngine
Definition: meshSurfaceEngine.H:54
meshSurfacePartitioner.H