Home
Downloads
Documentation
Installation
User Guide
man-pages
API Documentation
README
Release Notes
Changes
License
Support
SourceForge Project
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
applications
utilities
postProcessing
dataConversion
foamToFieldview9
fieldviewTopology.H
Go to the documentation of this file.
1
/*---------------------------------------------------------------------------*\
2
========= |
3
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4
\\ / O peration |
5
\\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
6
\\/ M anipulation |
7
-------------------------------------------------------------------------------
8
License
9
This file is part of OpenFOAM.
10
11
OpenFOAM is free software: you can redistribute it and/or modify it
12
under the terms of the GNU General Public License as published by
13
the Free Software Foundation, either version 3 of the License, or
14
(at your option) any later version.
15
16
OpenFOAM 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 OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23
24
Class
25
Foam::fieldviewTopology
26
27
Description
28
29
SourceFiles
30
fieldviewTopology.C
31
32
\*---------------------------------------------------------------------------*/
33
34
#ifndef fieldviewTopology_H
35
#define fieldviewTopology_H
36
37
#include <
OpenFOAM/labelList.H
>
38
#include <
OpenFOAM/faceList.H
>
39
40
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41
42
namespace
Foam
43
{
44
45
// Forward declaration of classes
46
class
polyMesh;
47
class
cellShape;
48
49
/*---------------------------------------------------------------------------*\
50
Class fieldviewTopology Declaration
51
\*---------------------------------------------------------------------------*/
52
53
class
fieldviewTopology
54
{
55
// Private data
56
57
//- Hexes in fieldview format
58
labelList
hexLabels_;
59
60
labelList
prismLabels_;
61
62
labelList
pyrLabels_;
63
64
labelList
tetLabels_;
65
66
//- Number of non-hex/prism/pyr/tet labels
67
label nPoly_;
68
69
70
//
71
// Patches
72
//
73
74
//- Quad and tri patch faces in fv format
75
labelListList
quadFaceLabels_;
76
77
//- Number of polyhedral faces per patch
78
labelList
nPolyFaces_;
79
80
81
// Private Member Functions
82
83
static
labelList
calcFaceAddressing
84
(
85
const
faceList
& allFaces,
// faces given faceLabels
86
const
cellShape
& shape,
87
const
labelList
& faces,
// faceLabels for given cell
88
const
label cellI
89
);
90
91
92
//- Disallow default bitwise copy construct
93
fieldviewTopology
(
const
fieldviewTopology
&);
94
95
//- Disallow default bitwise assignment
96
void
operator=(
const
fieldviewTopology
&);
97
98
99
public
:
100
101
// Constructors
102
103
//- Construct from components
104
fieldviewTopology
(
const
polyMesh
&
mesh
,
const
bool
setWallInfo);
105
106
107
// Member Functions
108
109
// Access
110
111
const
labelList
&
hexLabels
()
const
112
{
113
return
hexLabels_;
114
}
115
116
const
labelList
&
prismLabels
()
const
117
{
118
return
prismLabels_;
119
}
120
121
const
labelList
&
pyrLabels
()
const
122
{
123
return
pyrLabels_;
124
}
125
126
const
labelList
&
tetLabels
()
const
127
{
128
return
tetLabels_;
129
}
130
131
label
nHex
()
const
132
{
133
return
hexLabels
().
size
()/9;
134
}
135
136
label
nPrism
()
const
137
{
138
return
prismLabels
().
size
()/7;
139
}
140
141
label
nPyr
()
const
142
{
143
return
pyrLabels
().
size
()/6;
144
}
145
146
label
nTet
()
const
147
{
148
return
tetLabels
().
size
()/5;
149
}
150
151
label
nPoly
()
const
152
{
153
return
nPoly_;
154
}
155
156
const
labelListList
&
quadFaceLabels
()
const
157
{
158
return
quadFaceLabels_;
159
}
160
161
const
labelList
&
nPolyFaces
()
const
162
{
163
return
nPolyFaces_;
164
}
165
};
166
167
168
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
169
170
}
// End namespace Foam
171
172
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
173
174
#endif
175
176
// ************************ vim: set sw=4 sts=4 et: ************************ //