meshSurfaceEdgeExtractorFUN.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  meshSurfaceEdgeExtractorFUN
26 
27 Description
28  Stores boundary faces into patches and captures edges and corners
29  by inserting fundamental mesh sheets
30 
31 SourceFiles
32  meshSurfaceEdgeExtractorFUN.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef meshSurfaceEdgeExtractorFUN_H
37 #define meshSurfaceEdgeExtractorFUN_H
38 
39 #include "polyMeshGenModifier.H"
40 #include "boolList.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 // Forward declarations
48 class meshOctree;
49 class meshSurfaceEngine;
50 
51 /*---------------------------------------------------------------------------*\
52  Class meshSurfaceEdgeExtractorFUN Declaration
53 \*---------------------------------------------------------------------------*/
54 
56 {
57  // Private data
58  //- mesh
60 
61  //- octree
62  const meshOctree& meshOctree_;
63 
64  //- mesh surface pointer
66 
67  //- shall the procedure generate an initial wrapper sheet
68  const bool createWrapperSheet_;
69 
70  // Private member functions
71 
72  //- return reference to surface engine
74 
75  //- clear mesh suirface engine
76  void clearOut();
77 
78  //- distribute boundary faces into patches
80 
81  //- check whether all corners in the surface mesh are present
82  //- in the volume mesh
83  void reviseCorners();
84 
85  //- check whether all edges in the surface mesh are present
86  //- in the volume mesh
87  void reviseEdges();
88 
89  //- find corner vertices and correct patches
91 
92  //- create fundamental sheets
94 
95  //- smooth the surface
96  void smoothMeshSurface();
97 
98  //- modify fundamental sheets
100 
101  //- re-map points after edges have been extracted
102  void remapBoundaryPoints();
103 
104  //- Disallow default construct
106 
107  //- Disallow default bitwise copy construct
109 
110  //- Disallow default bitwise assignment
112 
113 public:
114 
115  // Constructors
116 
117  //- Construct from mesh data
119  (
120  polyMeshGen& mesh,
121  const meshOctree& octree,
122  const bool createWrapperSheet = true
123  );
124 
125  // Destructor
126 
128 
129  // Member Functions
130 };
131 
132 
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 
135 } // End namespace Foam
136 
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 
139 #endif
140 
141 // ************************************************************************* //
Foam::meshSurfaceEdgeExtractorFUN::~meshSurfaceEdgeExtractorFUN
~meshSurfaceEdgeExtractorFUN()
Definition: meshSurfaceEdgeExtractorFUN.C:98
Foam::meshSurfaceEdgeExtractorFUN::reviseEdges
void reviseEdges()
Definition: meshSurfaceEdgeExtractorFUNDistributeFaces.C:125
boolList.H
Foam::meshSurfaceEdgeExtractorFUN::distributeBoundaryFaces
void distributeBoundaryFaces()
distribute boundary faces into patches
Definition: meshSurfaceEdgeExtractorFUNDistributeFaces.C:53
meshSurfaceEngine
Calculates surface of the mesh.
Foam::meshSurfaceEdgeExtractorFUN::surfaceEnginePtr_
meshSurfaceEngine * surfaceEnginePtr_
mesh surface pointer
Definition: meshSurfaceEdgeExtractorFUN.H:64
polyMeshGenModifier.H
Foam::polyMeshGen
Definition: polyMeshGen.H:46
Foam::meshSurfaceEdgeExtractorFUN::clearOut
void clearOut()
clear mesh suirface engine
Definition: meshSurfaceEdgeExtractorFUN.C:62
Foam::meshSurfaceEdgeExtractorFUN::mesh_
polyMeshGen & mesh_
mesh
Definition: meshSurfaceEdgeExtractorFUN.H:58
Foam::meshSurfaceEdgeExtractorFUN::improveQualityOfFundamentalSheets
void improveQualityOfFundamentalSheets()
modify fundamental sheets
Definition: meshSurfaceEdgeExtractorFUNDistributeFaces.C:153
Foam::meshSurfaceEdgeExtractorFUN::remapBoundaryPoints
void remapBoundaryPoints()
re-map points after edges have been extracted
Definition: meshSurfaceEdgeExtractorFUNDistributeFaces.C:130
Foam::meshSurfaceEdgeExtractorFUN::reviseCorners
void reviseCorners()
Definition: meshSurfaceEdgeExtractorFUNDistributeFaces.C:120
Foam::meshSurfaceEdgeExtractorFUN::surfaceEngine
meshSurfaceEngine & surfaceEngine()
return reference to surface engine
Definition: meshSurfaceEdgeExtractorFUN.C:45
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:18
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::meshSurfaceEdgeExtractorFUN::findCornersAndCorrectPatches
void findCornersAndCorrectPatches()
find corner vertices and correct patches
Foam::meshSurfaceEdgeExtractorFUN::createWrapperSheet_
const bool createWrapperSheet_
shall the procedure generate an initial wrapper sheet
Definition: meshSurfaceEdgeExtractorFUN.H:67
Foam::meshSurfaceEdgeExtractorFUN::operator=
void operator=(const meshSurfaceEdgeExtractorFUN &)
Disallow default bitwise assignment.
Foam::meshSurfaceEdgeExtractorFUN::createBasicFundamentalSheets
void createBasicFundamentalSheets()
create fundamental sheets
Definition: meshSurfaceEdgeExtractorFUNDistributeFaces.C:138
Foam::meshOctree
Definition: meshOctree.H:55
Foam::meshSurfaceEdgeExtractorFUN::meshSurfaceEdgeExtractorFUN
meshSurfaceEdgeExtractorFUN()
Disallow default construct.
meshOctree
Octree for mesh generation.
Foam::meshSurfaceEdgeExtractorFUN::meshOctree_
const meshOctree & meshOctree_
octree
Definition: meshSurfaceEdgeExtractorFUN.H:61
Foam::meshSurfaceEdgeExtractorFUN
Definition: meshSurfaceEdgeExtractorFUN.H:54
Foam::meshSurfaceEdgeExtractorFUN::smoothMeshSurface
void smoothMeshSurface()
smooth the surface
Definition: meshSurfaceEdgeExtractorFUNDistributeFaces.C:145
Foam::meshSurfaceEngine
Definition: meshSurfaceEngine.H:54