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
src
conversion
ensight
part
ensightPartFaces.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::ensightPartFaces
26
27
Description
28
An implementation of ensightPart to hold volume mesh faces.
29
30
SourceFiles
31
ensightPartFaces.C
32
33
\*---------------------------------------------------------------------------*/
34
35
#ifndef ensightPartFaces_H
36
#define ensightPartFaces_H
37
38
#include <
conversion/ensightPart.H
>
39
40
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41
42
namespace
Foam
43
{
44
45
/*---------------------------------------------------------------------------*\
46
Class ensightPartFaces Declaration
47
\*---------------------------------------------------------------------------*/
48
49
class
ensightPartFaces
50
:
51
public
ensightPart
52
{
53
// Private Member Functions
54
55
//- Disallow default bitwise assignment
56
void
operator=(
const
ensightPartFaces
&);
57
58
//- track points used
59
virtual
localPoints
calcLocalPoints()
const
;
60
61
//- element connectivity
62
virtual
void
writeConnectivity
63
(
64
ensightGeoFile
& os,
65
const
string
& key,
66
const
labelList
& idList,
67
const
labelList
& pointMap
68
)
const
;
69
70
71
protected
:
72
73
//- addressable ensight element types
74
enum
elemType
75
{
76
tria3Elements
,
77
quad4Elements
,
78
nsidedElements
79
};
80
81
// Static data members
82
static
List<word>
elemTypes_
;
83
84
85
public
:
86
87
//- Runtime type information
88
TypeName
(
"ensightFaces"
);
89
90
// Constructors
91
92
//- Construct empty part with number and description
93
ensightPartFaces
(label partNumber,
const
string
& partDescription);
94
95
//- Construct from polyMesh and polyPatch
96
ensightPartFaces
97
(
98
label partNumber,
99
const
polyMesh
&,
100
const
polyPatch
&
101
);
102
103
//- Construct as copy
104
ensightPartFaces
(
const
ensightPartFaces
&);
105
106
//- Construct from Istream
107
ensightPartFaces
(
Istream
&);
108
109
//- Construct on freestore from Istream
110
static
autoPtr<ensightPartFaces>
New
(
Istream
& is)
111
{
112
return
autoPtr<ensightPartFaces>
(
new
ensightPartFaces
(is));
113
}
114
115
116
//- Destructor
117
virtual
~ensightPartFaces
();
118
119
120
// Member Functions
121
122
//- static listing of the element types
123
virtual
List<word>
const
&
elementTypes
()
const
124
{
125
return
elemTypes_
;
126
}
127
};
128
129
130
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131
132
}
// End namespace Foam
133
134
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135
136
#endif
137
138
// ************************ vim: set sw=4 sts=4 et: ************************ //