meshSurfaceEdgeExtractor.H
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 Class
25  meshSurfaceEdgeExtractor
26 
27 Description
28  Extracts edges and corners to cornform the mesh to the geometry
29 
30 SourceFiles
31  meshSurfaceEdgeExtractor.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef meshSurfaceEdgeExtractor_H
36 #define meshSurfaceEdgeExtractor_H
37 
38 #include "polyMeshGenModifier.H"
39 #include "boolList.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 // Forward declarations
47 class meshOctree;
48 class meshSurfaceEngine;
49 
50 /*---------------------------------------------------------------------------*\
51  Class meshSurfaceEdgeExtractor Declaration
52 \*---------------------------------------------------------------------------*/
53 
55 {
56  // Private data
57  //- mesh
59 
61 
63 
65 
66  //- reference to the octree
67  const meshOctree& meshOctree_;
68 
69  //- regions for boundary vertices
71 
72  // Private member functions
73  //- remove old boundary faces
75 
76  //- create vertices on surface edges
77  void createEdgeVertices();
78 
79  //- create new boundary faces
80  void createBoundaryFaces();
81 
82  //- Disallow default bitwise copy construct
84 
85  //- Disallow default bitwise assignment
87 
88 public:
89 
90  // Constructors
91 
92  //- Construct from mesh data
94  (
96  const meshOctree& octree,
97  const labelList& pointRegion
98  );
99 
100  // Destructor
101 
103 
104  // Member Functions
105 };
106 
107 
108 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
109 
110 } // End namespace Foam
111 
112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 
114 #endif
115 
116 // ************************************************************************* //
Foam::meshSurfaceEdgeExtractor::meshSurfaceEdgeExtractor
meshSurfaceEdgeExtractor(const meshSurfaceEdgeExtractor &)
Disallow default bitwise copy construct.
boolList.H
meshSurfaceEngine
Calculates surface of the mesh.
Foam::meshSurfaceEdgeExtractor::createEdgeVertices
void createEdgeVertices()
create vertices on surface edges
Definition: meshSurfaceEdgeCreateEdgeVertices.C:43
Foam::meshSurfaceEdgeExtractor
Definition: meshSurfaceEdgeExtractor.H:53
polyMeshGenModifier.H
Foam::polyMeshGen
Definition: polyMeshGen.H:46
Foam::meshSurfaceEdgeExtractor::meshOctree_
const meshOctree & meshOctree_
reference to the octree
Definition: meshSurfaceEdgeExtractor.H:66
Foam::meshSurfaceEdgeExtractor::operator=
void operator=(const meshSurfaceEdgeExtractor &)
Disallow default bitwise assignment.
Foam::meshSurfaceEdgeExtractor::mesh_
polyMeshGen & mesh_
mesh
Definition: meshSurfaceEdgeExtractor.H:57
Foam::meshSurfaceEdgeExtractor::nPoints_
label nPoints_
Definition: meshSurfaceEdgeExtractor.H:59
Foam::meshSurfaceEdgeExtractor::nFacesInCell_
List< direction > nFacesInCell_
Definition: meshSurfaceEdgeExtractor.H:63
Foam::label
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:18
Foam::meshSurfaceEdgeExtractor::~meshSurfaceEdgeExtractor
~meshSurfaceEdgeExtractor()
Definition: meshSurfaceEdgeExtractor.C:68
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::meshSurfaceEdgeExtractor::pointRegions_
VRWGraph pointRegions_
regions for boundary vertices
Definition: meshSurfaceEdgeExtractor.H:69
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::meshOctree
Definition: meshOctree.H:55
Foam::meshSurfaceEdgeExtractor::boundaryCell_
boolList boundaryCell_
Definition: meshSurfaceEdgeExtractor.H:61
meshOctree
Octree for mesh generation.
Foam::meshSurfaceEdgeExtractor::removeOldBoundaryFaces
void removeOldBoundaryFaces()
remove old boundary faces
Definition: meshSurfaceEdgeExtractor.C:74
Foam::VRWGraph
Definition: VRWGraph.H:101
Foam::meshSurfaceEdgeExtractor::createBoundaryFaces
void createBoundaryFaces()
create new boundary faces
Definition: meshSurfaceEdgeCreateBoundaryFaces.C:43