extendedFeatureEdgeMesh.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) 2011-2013 OpenFOAM Foundation
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::extendedFeatureEdgeMesh
26 
27 Description
28 
29  extendedEdgeMesh + IO.
30 
31 SourceFiles
32  extendedFeatureEdgeMesh.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef extendedFeatureEdgeMesh_H
37 #define extendedFeatureEdgeMesh_H
38 
39 #include "extendedEdgeMesh.H"
40 #include "regIOobject.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 class objectRegistry;
48 
49 /*---------------------------------------------------------------------------*\
50  Class extendedFeatureEdgeMesh Declaration
51 \*---------------------------------------------------------------------------*/
52 
54 :
55  public regIOobject,
56  public extendedEdgeMesh
57 {
58 
59 public:
60 
61  //- Runtime type information
62  TypeName("extendedFeatureEdgeMesh");
63 
64 
65  // Constructors
66 
67  //- Construct (read) given an IOobject
69 
70  //- Construct as copy
72  (
73  const IOobject&,
74  const extendedEdgeMesh&
75  );
76 
77  //- Construct given a surface with selected edges,point
78  // (surfaceFeatures), an objectRegistry and a
79  // fileName to write to.
80  // Extracts, classifies and reorders the data from surfaceFeatures.
82  (
83  const surfaceFeatures& sFeat,
84  const objectRegistry& obr,
85  const fileName& sFeatFileName,
86  const boolList& surfBaffleRegions
87  );
88 
89  //- Construct from PrimitivePatch
91  (
92  const IOobject&,
94  const labelList& featureEdges,
95  const labelList& regionFeatureEdges,
96  const labelList& featurePoints
97  );
98 
99  //- Construct from all components
101  (
102  const IOobject& io,
103  const pointField& pts,
104  const edgeList& eds,
112  const vectorField& normals,
116  const labelListList& edgeNormals,
119  const labelList& regionEdges
120  );
121 
122 
123  //- Destructor
124  virtual ~extendedFeatureEdgeMesh();
125 
126 
127  // IO
128 
129  //- Give precedence to the regIOobject write
130  using regIOobject::write;
131 
132  //- ReadData function required for regIOobject read operation
133  virtual bool readData(Istream&);
134 
135  //- WriteData function required for regIOobject write operation
136  virtual bool writeData(Ostream&) const;
137 
138 };
139 
140 
141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
142 
143 } // End namespace Foam
144 
145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
146 
147 #endif
148 
149 // ************************************************************************* //
regIOobject.H
Foam::extendedEdgeMesh::normalDirections
const labelListList & normalDirections() const
Definition: extendedEdgeMeshI.H:109
Foam::IOobject
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Definition: IOobject.H:91
Foam::extendedFeatureEdgeMesh::writeData
virtual bool writeData(Ostream &) const
WriteData function required for regIOobject write operation.
Definition: extendedFeatureEdgeMesh.C:203
Foam::extendedEdgeMesh::featurePointNormals
const labelListList & featurePointNormals() const
Return the indices of the normals that are adjacent to the.
Definition: extendedEdgeMeshI.H:175
Foam::fileName
A class for handling file names.
Definition: fileName.H:69
Foam::extendedEdgeMesh::regionEdges
const labelList & regionEdges() const
Return the feature edges which are on the boundary between.
Definition: extendedEdgeMeshI.H:216
Foam::extendedEdgeMesh::normals
const vectorField & normals() const
Return the normals of the surfaces adjacent to the feature edges.
Definition: extendedEdgeMeshI.H:88
Foam::extendedEdgeMesh::featurePointEdges
const labelListList & featurePointEdges() const
Return the edge labels for a given feature point. Edges are.
Definition: extendedEdgeMeshI.H:210
Foam::regIOobject::write
virtual bool write() const
Write using setting from DB.
Definition: regIOobjectWrite.C:126
Foam::extendedEdgeMesh::multipleStart
label multipleStart() const
Return the index of the start of the multiply-connected feature.
Definition: extendedEdgeMeshI.H:76
Foam::extendedEdgeMesh::normalVolumeTypes
const List< sideVolumeType > & normalVolumeTypes() const
Return.
Definition: extendedEdgeMeshI.H:95
Foam::extendedEdgeMesh::edgeDirections
const vectorField & edgeDirections() const
Return the edgeDirection vectors.
Definition: extendedEdgeMeshI.H:101
Foam::objectRegistry
Registry of regIOobjects.
Definition: objectRegistry.H:50
Foam::extendedFeatureEdgeMesh::TypeName
TypeName("extendedFeatureEdgeMesh")
Runtime type information.
Foam::extendedEdgeMesh::nonFeatureStart
label nonFeatureStart() const
Return the index of the start of the non-feature points.
Definition: extendedEdgeMeshI.H:46
Foam::extendedEdgeMesh::concaveStart
label concaveStart() const
Return the index of the start of the concave feature points.
Definition: extendedEdgeMeshI.H:34
Foam::label
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
Foam::Field
Pre-declare SubField and related Field type.
Definition: Field.H:57
Foam::Istream
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Definition: Istream.H:57
Foam::surfaceFeatures
Holds feature edges/points of surface.
Definition: surfaceFeatures.H:68
extendedEdgeMesh.H
Foam::extendedEdgeMesh::internalStart
label internalStart() const
Return the index of the start of the internal feature edges.
Definition: extendedEdgeMeshI.H:58
Foam::extendedEdgeMesh::edgeNormals
const labelListList & edgeNormals() const
Return the indices of the normals that are adjacent to the.
Definition: extendedEdgeMeshI.H:144
Foam::extendedFeatureEdgeMesh::extendedFeatureEdgeMesh
extendedFeatureEdgeMesh(const IOobject &)
Construct (read) given an IOobject.
Definition: extendedFeatureEdgeMesh.C:38
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::extendedEdgeMesh::mixedStart
label mixedStart() const
Return the index of the start of the mixed type feature points.
Definition: extendedEdgeMeshI.H:40
Foam::extendedEdgeMesh::openStart
label openStart() const
Return the index of the start of the open feature edges.
Definition: extendedEdgeMeshI.H:70
Foam::extendedEdgeMesh
Description of feature edges and points.
Definition: extendedEdgeMesh.H:81
Foam::regIOobject
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
Definition: regIOobject.H:60
Foam::extendedFeatureEdgeMesh::~extendedFeatureEdgeMesh
virtual ~extendedFeatureEdgeMesh()
Destructor.
Definition: extendedFeatureEdgeMesh.C:187
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::extendedFeatureEdgeMesh::readData
virtual bool readData(Istream &)
ReadData function required for regIOobject read operation.
Definition: extendedFeatureEdgeMesh.C:196
Foam::extendedFeatureEdgeMesh
extendedEdgeMesh + IO.
Definition: extendedFeatureEdgeMesh.H:52
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:53
Foam::extendedEdgeMesh::flatStart
label flatStart() const
Return the index of the start of the flat feature edges.
Definition: extendedEdgeMeshI.H:64
Foam::PrimitivePatch
A list of faces which address into the list of points.
Definition: PrimitivePatchTemplate.H:88