triSurfaceRemoveFacets.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  triSurfaceRemoveFacets
26 
27 Description
28  Divides the surface mesh into regions bounded by feature edges
29 
30 SourceFiles
31  triSurfaceRemoveFacets.C
32  triSurfaceRemoveFacetsFunctions.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef triSurfaceRemoveFacets_H
37 #define triSurfaceRemoveFacets_H
38 
39 #include "triSurf.H"
40 #include "boolList.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class triSurfaceRemoveFacets Declaration
49 \*---------------------------------------------------------------------------*/
50 
52 {
53  // Private data
54  //- reference to triSurf
55  triSurf& surf_;
56 
57  //- patches/subsets for removal
59 
60  // Private member functions
61  //- remove facets in selected patches/subsets
62  void markFacetsForRemoval(boolList&) const;
63 
64  //- Disallow default bitwise copy construct
66 
67  //- Disallow default bitwise assignment
68  void operator=(const triSurfaceRemoveFacets&);
69 
70 public:
71 
72  // Constructors
73 
74  //- Construct from octree
76 
77  // Destructor
78 
80 
81 
82  // Member Functions
83 
84  //- add patch for removal
85  void selectFacetsInPatch(const word&);
86 
87  //- add subsets for removal
88  void selectFacetsInSubset(const word&);
89 
90  //- perform removal of selected facets
91  void removeFacets();
92 };
93 
94 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
95 
96 } // End namespace Foam
97 
98 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
99 
100 #endif
101 
102 // ************************************************************************* //
Foam::triSurfaceRemoveFacets::~triSurfaceRemoveFacets
~triSurfaceRemoveFacets()
Definition: triSurfaceRemoveFacets.C:43
triSurf.H
boolList.H
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::triSurfaceRemoveFacets::markFacetsForRemoval
void markFacetsForRemoval(boolList &) const
remove facets in selected patches/subsets
Definition: triSurfaceRemoveFacetsFunctions.C:38
Foam::triSurfaceRemoveFacets
Definition: triSurfaceRemoveFacets.H:50
Foam::triSurfaceRemoveFacets::selectFacetsInPatch
void selectFacetsInPatch(const word &)
add patch for removal
Definition: triSurfaceRemoveFacets.C:48
Foam::triSurfaceRemoveFacets::removeFacets
void removeFacets()
perform removal of selected facets
Definition: triSurfaceRemoveFacetsFunctions.C:80
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::DynList
Definition: DynList.H:53
Foam::triSurfaceRemoveFacets::selectFacetsInSubset
void selectFacetsInSubset(const word &)
add subsets for removal
Definition: triSurfaceRemoveFacets.C:54
Foam::triSurfaceRemoveFacets::triSurfaceRemoveFacets
triSurfaceRemoveFacets(const triSurfaceRemoveFacets &)
Disallow default bitwise copy construct.
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::surface
Definition: surface.H:55
Foam::triSurfaceRemoveFacets::operator=
void operator=(const triSurfaceRemoveFacets &)
Disallow default bitwise assignment.
Foam::triSurf
Definition: triSurf.H:59
Foam::triSurfaceRemoveFacets::selectedEntities_
DynList< word > selectedEntities_
patches/subsets for removal
Definition: triSurfaceRemoveFacets.H:57
Foam::triSurfaceRemoveFacets::surf_
triSurf & surf_
reference to triSurf
Definition: triSurfaceRemoveFacets.H:54