polyMeshGen2DEngineI.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  polyMeshGen2DEngine
26 
27 Description
28  A simple engine which provides topological information of a 2D mesh
29  and allows for maintaining consistency
30 
31 SourceFiles
32  polyMeshGen2DEngine.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
37 
38 #include "polyMeshGen2DEngine.H"
39 #include "boolList.H"
40 #include "labelList.H"
41 #include "boundBox.H"
42 #include "demandDrivenData.H"
43 
44 namespace Foam
45 {
46 
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 
49 inline const boolList& polyMeshGen2DEngine::activeFace() const
50 {
51  if( !activeFacePtr_ )
53 
54  return *activeFacePtr_;
55 }
56 
58 {
61 
62  return *activeFaceLabelsPtr_;
63 }
64 
65 inline const boolList& polyMeshGen2DEngine::zMinPoints() const
66 {
67  if( !zMinPointPtr_ )
69 
70  return *zMinPointPtr_;
71 }
72 
74 {
75  if( !zMinPointLabelsPtr_ )
77 
78  return *zMinPointLabelsPtr_;
79 }
80 
81 inline const labelList& polyMeshGen2DEngine::zMinToZMax() const
82 {
83  if( !zMinToZMaxPtr_ )
85 
86  return *zMinToZMaxPtr_;
87 }
88 
89 inline const boolList& polyMeshGen2DEngine::zMaxPoints() const
90 {
91  if( !zMaxPointPtr_ )
93 
94  return *zMaxPointPtr_;
95 }
96 
98 {
99  if( !zMaxPointLabelsPtr_ )
101 
102  return *zMaxPointLabelsPtr_;
103 }
104 
105 inline const labelList& polyMeshGen2DEngine::zMaxToZMin() const
106 {
107  if( !zMaxToZMinPtr_ )
109 
110  return *zMaxToZMinPtr_;
111 }
112 
113 
114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115 
116 } // End namespace Foam
117 
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::polyMeshGen2DEngine::findZMaxPoints
void findZMaxPoints() const
find points at maximum z
Definition: polyMeshGen2DEngine.C:179
Foam::polyMeshGen2DEngine::activeFacePtr_
boolList * activeFacePtr_
which faces are not in the x-y plane
Definition: polyMeshGen2DEngine.H:61
boolList.H
Foam::polyMeshGen2DEngine::activeFace
const boolList & activeFace() const
const access to active faces
Definition: polyMeshGen2DEngineI.H:48
Foam::polyMeshGen2DEngine::activeFaceLabelsPtr_
labelList * activeFaceLabelsPtr_
labels of active faces
Definition: polyMeshGen2DEngine.H:64
demandDrivenData.H
Template functions to aid in the implementation of demand driven data.
Foam::polyMeshGen2DEngine::zMaxPointPtr_
boolList * zMaxPointPtr_
which points are in the x-y plane and at largest z
Definition: polyMeshGen2DEngine.H:76
Foam::polyMeshGen2DEngine::findActiveFaces
void findActiveFaces() const
find active faces
Definition: polyMeshGen2DEngine.C:43
Foam::polyMeshGen2DEngine::zMinToZMax
const labelList & zMinToZMax() const
offset points of points at minimum z
Definition: polyMeshGen2DEngineI.H:80
Foam::polyMeshGen2DEngine::findZMinOffsetPoints
void findZMinOffsetPoints() const
find offset point to each zMin point
Definition: polyMeshGen2DEngine.C:140
Foam::polyMeshGen2DEngine::zMinPoints
const boolList & zMinPoints() const
Definition: polyMeshGen2DEngineI.H:64
Foam::polyMeshGen2DEngine::zMinPointLabelsPtr_
labelList * zMinPointLabelsPtr_
labels of points at minimum z
Definition: polyMeshGen2DEngine.H:70
labelList.H
Foam::polyMeshGen2DEngine::zMaxToZMinPtr_
labelList * zMaxToZMinPtr_
labels of zMin points of zMax points
Definition: polyMeshGen2DEngine.H:82
Foam::polyMeshGen2DEngine::zMaxPoints
const boolList & zMaxPoints() const
Definition: polyMeshGen2DEngineI.H:88
polyMeshGen2DEngine.H
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::polyMeshGen2DEngine::zMaxPointLabelsPtr_
labelList * zMaxPointLabelsPtr_
labels of points at maximum z
Definition: polyMeshGen2DEngine.H:79
Foam::polyMeshGen2DEngine::zMinToZMaxPtr_
labelList * zMinToZMaxPtr_
labels of offset points of zMin points
Definition: polyMeshGen2DEngine.H:73
Foam::polyMeshGen2DEngine::zMinPointLabels
const labelList & zMinPointLabels() const
labels of points in the x-y with the smallest z coordinate
Definition: polyMeshGen2DEngineI.H:72
Foam::polyMeshGen2DEngine::zMaxToZMin
const labelList & zMaxToZMin() const
offset points of points at maximum z
Definition: polyMeshGen2DEngineI.H:104
boundBox.H
Foam::polyMeshGen2DEngine::findActiveFaceLabels
void findActiveFaceLabels() const
find active face labels
Definition: polyMeshGen2DEngine.C: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::polyMeshGen2DEngine::findZMinPointLabels
void findZMinPointLabels() const
find labels of points at minimum z
Definition: polyMeshGen2DEngine.C:111
Foam::polyMeshGen2DEngine::findZMaxOffsetPoints
void findZMaxOffsetPoints() const
find offset point to each zMin point
Definition: polyMeshGen2DEngine.C:232
Foam::polyMeshGen2DEngine::findZMinPoints
void findZMinPoints() const
find points at minimum z
Definition: polyMeshGen2DEngine.C:87
Foam::polyMeshGen2DEngine::activeFaceLabels
const labelList & activeFaceLabels() const
labels of active faces
Definition: polyMeshGen2DEngineI.H:56
Foam::polyMeshGen2DEngine::findZMaxPointLabels
void findZMaxPointLabels() const
find labels of points at minimum z
Definition: polyMeshGen2DEngine.C:203
Foam::polyMeshGen2DEngine::zMaxPointLabels
const labelList & zMaxPointLabels() const
labels of points in the x-y with the largest z coordinate
Definition: polyMeshGen2DEngineI.H:96
Foam::polyMeshGen2DEngine::zMinPointPtr_
boolList * zMinPointPtr_
which points are in the x-y plane and at smallest z
Definition: polyMeshGen2DEngine.H:67