triangulateNonPlanarBaseFaces.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  triangulateNonPlanarBaseFaces
26 
27 Description
28  Splits selected boundary layer cells into triangular prisms
29 
30 SourceFiles
31  triangulateNonPlanarBaseFaces.C
32  triangulateNonPlanarBaseFacesFunctions.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef triangulateNonPlanarBaseFaces_H
37 #define triangulateNonPlanarBaseFaces_H
38 
39 #include "polyMeshGenModifier.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 // Forward declarations
47 class dictionary;
48 
49 /*---------------------------------------------------------------------------*\
50  Class triangulateNonPlanarBaseFaces Declaration
51 \*---------------------------------------------------------------------------*/
52 
54 {
55  // Private data
56  //- Reference to the mesh
58 
59  //- boolean list containing information about inverted cells
61 
62  //- classification of faces in the mesh
64 
65  //- relative deviation compared to the layer thickness
66  scalar tol_;
67 
68  // Private member functions
69  //- find faces with non-planarity greater than the required
70  //- layer thickness
72 
73  //- decompose existing faces
75 
76  //- decompose adjacent cells into pyramids
78 
79  //- Disallow bitwise copy construct
81  (
83  );
84 
85  //- Disallow bitwise assignment
87 
88 public:
89 
90  // Constructors
91 
92  //- Construct from mesh
94 
95  // Destructor
97 
98  // Public member functions
99  //- set the relative tolerance between the requested boundary
100  //- layer thickness and the deviation from planarity
101  //- the default is 1.0
102  void setRelativeTolerance(const scalar tol);
103 
104  //- splits inverted boundary layer prisms into triangular prisms
105  void triangulateLayers();
106 
107  // Static member functions
108  static void readSettings
109  (
110  const dictionary&,
112  );
113 };
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 } // End namespace Foam
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 #endif
122 
123 // ************************************************************************* //
Foam::triangulateNonPlanarBaseFaces::mesh_
polyMeshGen & mesh_
Reference to the mesh.
Definition: triangulateNonPlanarBaseFaces.H:56
Foam::triangulateNonPlanarBaseFaces::invertedCell_
boolList invertedCell_
boolean list containing information about inverted cells
Definition: triangulateNonPlanarBaseFaces.H:59
Foam::triangulateNonPlanarBaseFaces
Definition: triangulateNonPlanarBaseFaces.H:52
Foam::triangulateNonPlanarBaseFaces::~triangulateNonPlanarBaseFaces
~triangulateNonPlanarBaseFaces()
Definition: triangulateNonPlanarBaseFaces.C:52
polyMeshGenModifier.H
Foam::polyMeshGen
Definition: polyMeshGen.H:46
Foam::triangulateNonPlanarBaseFaces::triangulateNonPlanarBaseFaces
triangulateNonPlanarBaseFaces(const triangulateNonPlanarBaseFaces &)
Disallow bitwise copy construct.
Foam::triangulateNonPlanarBaseFaces::readSettings
static void readSettings(const dictionary &, triangulateNonPlanarBaseFaces &)
Definition: triangulateNonPlanarBaseFaces.C:79
Foam::triangulateNonPlanarBaseFaces::setRelativeTolerance
void setRelativeTolerance(const scalar tol)
Definition: triangulateNonPlanarBaseFaces.C:57
Foam::triangulateNonPlanarBaseFaces::tol_
scalar tol_
relative deviation compared to the layer thickness
Definition: triangulateNonPlanarBaseFaces.H:65
Foam::triangulateNonPlanarBaseFaces::decomposeFace_
boolList decomposeFace_
classification of faces in the mesh
Definition: triangulateNonPlanarBaseFaces.H:62
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:18
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::triangulateNonPlanarBaseFaces::decomposeCellsIntoPyramids
void decomposeCellsIntoPyramids()
decompose adjacent cells into pyramids
Definition: triangulateNonPlanarBaseFacesFunctions.C:123
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::triangulateNonPlanarBaseFaces::findNonPlanarBoundaryFaces
bool findNonPlanarBoundaryFaces()
Definition: triangulateNonPlanarBaseFacesFunctions.C:48
Foam::triangulateNonPlanarBaseFaces::decomposeBoundaryFaces
void decomposeBoundaryFaces()
decompose existing faces
Definition: triangulateNonPlanarBaseFacesFunctions.C:112
Foam::triangulateNonPlanarBaseFaces::triangulateLayers
void triangulateLayers()
splits inverted boundary layer prisms into triangular prisms
Definition: triangulateNonPlanarBaseFaces.C:62
Foam::triangulateNonPlanarBaseFaces::operator=
void operator=(const triangulateNonPlanarBaseFaces &)
Disallow bitwise assignment.