decomposeFaces.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  decomposeFaces
26 
27 Description
28  Decompose selected mesh faces into triangles using midnode subdivision
29 
30 SourceFiles
31  decomposeFaces.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef decomposeFaces_H
36 #define decomposeFaces_H
37 
38 #include "polyMeshGenModifier.H"
39 #include "DynList.H"
40 
41 namespace Foam
42 {
43 
44 /*---------------------------------------------------------------------------*\
45  Class decomposeFaces Declaration
46 \*---------------------------------------------------------------------------*/
47 
48 class decomposeFaces
49 {
50  // private data
51  //- reference to the mesh
53 
54  //- number of points
56 
57  //- is decomposition performed
58  bool done_;
59 
60  //- disallows bitwise construct
61  void operator=(const decomposeFaces&);
62 
63  //- copy constructor
65 
66 public:
67 
68  // Constructors
69 
70  //- construct components
72 
73  //- Destructor
75 
76  // Member functions
77  //- decompose selected faces into triangles using midnode subdivision
78  void decomposeMeshFaces(const boolList& decomposeFace);
79 
80  //- decompose internal faces containing concave nodes
81  void decomposeConcaveInternalFaces(const boolList& concaveVertex);
82 
83  //- reference to a graph containg label of new faces generated
84  //- from each face
85  const VRWGraph& newFacesForFace() const;
86 };
87 
88 
89 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
90 
91 } // End namespace Foam
92 
93 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
94 
95 #endif
96 
97 // ************************************************************************* //
Foam::decomposeFaces::~decomposeFaces
~decomposeFaces()
Destructor.
Definition: decomposeFaces.C:57
Foam::decomposeFaces
Definition: decomposeFaces.H:47
Foam::decomposeFaces::newFacesForFace
const VRWGraph & newFacesForFace() const
Definition: decomposeFaces.C:521
polyMeshGenModifier.H
Foam::polyMeshGen
Definition: polyMeshGen.H:46
Foam::decomposeFaces::decomposeConcaveInternalFaces
void decomposeConcaveInternalFaces(const boolList &concaveVertex)
decompose internal faces containing concave nodes
Definition: decomposeFaces.C:333
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:18
Foam::decomposeFaces::done_
bool done_
is decomposition performed
Definition: decomposeFaces.H:57
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::decomposeFaces::decomposeMeshFaces
void decomposeMeshFaces(const boolList &decomposeFace)
decompose selected faces into triangles using midnode subdivision
Definition: decomposeFaces.C:62
Foam::decomposeFaces::mesh_
polyMeshGen & mesh_
reference to the mesh
Definition: decomposeFaces.H:51
Foam::decomposeFaces::operator=
void operator=(const decomposeFaces &)
disallows bitwise construct
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::decomposeFaces::newFacesForFace_
VRWGraph newFacesForFace_
number of points
Definition: decomposeFaces.H:54
Foam::VRWGraph
Definition: VRWGraph.H:101
DynList.H
Foam::decomposeFaces::decomposeFaces
decomposeFaces(const decomposeFaces &)
copy constructor