triSurfFeatureEdges.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  triSurfFeatureEdges
26 
27 Description
28  User-selected list of feature edges used in the meshing process
29 
30 SourceFiles
31  triSurfFeatureEdges.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef triSurfFeatureEdges_H
36 #define triSurfFeatureEdges_H
37 
38 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
39 
40 #include "edgeLongList.H"
41 #include "meshSubset.H"
42 #include "Map.H"
43 
44 namespace Foam
45 {
46 
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 
50 {
51 protected:
52 
53  // Protected data
54  //- list of feature edges
56 
57  //- map of edge subsets
59 
60  // Disallow bitwise assignment
61  void operator=(const triSurfFeatureEdges&);
62 
64 
65 public:
66 
67  // Constructors
68  //- Null constructor
70 
71  //- Construct from feature edges
72  triSurfFeatureEdges(const edgeLongList& triangles);
73 
74  // Destructor
76 
77  // Member functions
78  //- return the number of feature edges
79  inline label nFeatureEdges() const;
80 
81  //- access to feature edges
82  inline const edgeLongList& featureEdges() const;
83 
84  //- append an edge to the end of the list
85  inline void appendFeatureEdge(const edge& e);
86 
87  //- point subsets
88  label addEdgeSubset(const word&);
89  void removeEdgeSubset(const label);
90  word edgeSubsetName(const label) const;
91  label edgeSubsetIndex(const word&) const;
92  inline void addEdgeToSubset(const label, const label);
93  inline void removeEdgeFromSubset(const label, const label);
94  inline void edgeInSubsets(const label, DynList<label>&) const;
95  inline void edgeSubsetIndices(DynList<label>&) const;
96  template<class ListType>
97  inline void edgesInSubset(const label, ListType&) const;
98  template<class ListType>
99  inline void updateEdgeSubsets(const ListType&);
100 
101  // Operators
102 };
103 
104 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
105 
106 } // End namespace Foam
107 
108 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
109 
110 #include "triSurfFeatureEdgesI.H"
111 
112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 
114 #endif
115 
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
meshSubset.H
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::triSurfFeatureEdges::addEdgeSubset
label addEdgeSubset(const word &)
point subsets
Definition: triSurfFeatureEdges.C:54
Foam::triSurfFeatureEdges
Definition: triSurfFeatureEdges.H:48
Foam::triSurfFeatureEdges::edgesInSubset
void edgesInSubset(const label, ListType &) const
Definition: triSurfFeatureEdgesI.H:118
Foam::triSurfFeatureEdges::operator=
void operator=(const triSurfFeatureEdges &)
Foam::edge
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
Definition: edge.H:58
Foam::Map
A HashTable to objects of type <T> with a label key.
Definition: PrimitivePatchTemplate.H:68
Foam::triSurfFeatureEdges::addEdgeToSubset
void addEdgeToSubset(const label, const label)
Definition: triSurfFeatureEdgesI.H:55
Foam::triSurfFeatureEdges::featureEdges
const edgeLongList & featureEdges() const
access to feature edges
Definition: triSurfFeatureEdgesI.H:44
triSurfFeatureEdgesI.H
Foam::triSurfFeatureEdges::removeEdgeFromSubset
void removeEdgeFromSubset(const label, const label)
Definition: triSurfFeatureEdgesI.H:68
Foam::LongList< edge >
Map.H
Foam::triSurfFeatureEdges::nFeatureEdges
label nFeatureEdges() const
return the number of feature edges
Definition: triSurfFeatureEdgesI.H:39
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
edgeLongList.H
Foam::triSurfFeatureEdges::appendFeatureEdge
void appendFeatureEdge(const edge &e)
append an edge to the end of the list
Definition: triSurfFeatureEdgesI.H:49
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::e
const double e
Elementary charge.
Definition: doubleFloat.H:94
Foam::DynList< label >
Foam::triSurfFeatureEdges::~triSurfFeatureEdges
~triSurfFeatureEdges()
Definition: triSurfFeatureEdges.C:49
Foam::triSurfFeatureEdges::featureEdgeSubsets_
Map< meshSubset > featureEdgeSubsets_
map of edge subsets
Definition: triSurfFeatureEdges.H:57
Foam::triSurfFeatureEdges::updateEdgeSubsets
void updateEdgeSubsets(const ListType &)
Definition: triSurfFeatureEdgesI.H:134
Foam::triSurfFeatureEdges::edgeSubsetIndices
void edgeSubsetIndices(DynList< label > &) const
Definition: triSurfFeatureEdgesI.H:101
Foam::triSurfFeatureEdges::edgeSubsetIndex
label edgeSubsetIndex(const word &) const
Definition: triSurfFeatureEdges.C:96
Foam::triSurfFeatureEdges::triSurfFeatureEdges
triSurfFeatureEdges()
Null constructor.
Definition: triSurfFeatureEdges.C:35
Foam::triSurfFeatureEdges::edgeInSubsets
void edgeInSubsets(const label, DynList< label > &) const
Definition: triSurfFeatureEdgesI.H:81
Foam::triSurfFeatureEdges::edgeSubsetName
word edgeSubsetName(const label) const
Definition: triSurfFeatureEdges.C:84
Foam::triSurfFeatureEdges::removeEdgeSubset
void removeEdgeSubset(const label)
Definition: triSurfFeatureEdges.C:76
Foam::triSurfFeatureEdges::featureEdges_
edgeLongList featureEdges_
list of feature edges
Definition: triSurfFeatureEdges.H:54