triSurfacePatchManipulator.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  triSurfacePatchManipulator
26 
27 Description
28  Generates patches in the surface mesh based
29  on the user-selected feature edges
30 
31 SourceFiles
32  triSurfacePatchManipulator.C
33  triSurfacePatchManipulatorFunctions.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef triSurfacePatchManipulator_H
38 #define triSurfacePatchManipulator_H
39 
40 #include "IOdictionary.H"
41 #include "triSurf.H"
42 #include "VRWGraph.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class triSurfacePatchManipulator Declaration
51 \*---------------------------------------------------------------------------*/
52 
54 {
55  // Private data
56  //- const reference to triSurf
57  const triSurf& surf_;
58 
59  //- detected feature edges
61 
62  //- surface patches
64 
65  //- number of patches
67 
68  //- patch names
70 
71  //- patch types
73 
74  // Private member functions
75  //- allocate and fill the feature edges list
76  void allocateFeatureEdges();
77 
78  //- create patches bounded by a set of feature edges
79  void createPatches();
80 
81  //- Disallow default bitwise copy construct
83 
84  //- Disallow default bitwise assignment
86 
87 public:
88 
89  // Constructors
90 
91  //- Construct from triSurface
93 
94  // Destructor
95 
97 
98 
99  // Member Functions
100 
101  void detectedSurfaceRegions(VRWGraph&) const;
102 
103  //- store regions into subsets with a given prefix
105  (
106  IOdictionary* meshDictPtr = NULL,
107  const word prefix = "patch_",
108  const bool forceOverwrite = false
109  ) const;
110 };
111 
112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 
114 } // End namespace Foam
115 
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 
118 #endif
119 
120 // ************************************************************************* //
Foam::IOdictionary
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Definition: IOdictionary.H:53
Foam::triSurfacePatchManipulator::detectedSurfaceRegions
void detectedSurfaceRegions(VRWGraph &) const
Definition: triSurfacePatchManipulator.C:62
Foam::triSurfacePatchManipulator::~triSurfacePatchManipulator
~triSurfacePatchManipulator()
Definition: triSurfacePatchManipulator.C:56
triSurf.H
Foam::triSurfacePatchManipulator::nPatches_
label nPatches_
number of patches
Definition: triSurfacePatchManipulator.H:65
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::triSurfacePatchManipulator::triSurfacePatchManipulator
triSurfacePatchManipulator(const triSurfacePatchManipulator &)
Disallow default bitwise copy construct.
VRWGraph.H
Foam::triSurfacePatchManipulator::newPatchNames_
wordList newPatchNames_
patch names
Definition: triSurfacePatchManipulator.H:68
Foam::triSurfacePatchManipulator::newPatchTypes_
wordList newPatchTypes_
patch types
Definition: triSurfacePatchManipulator.H:71
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::triSurfacePatchManipulator::surfaceWithPatches
const triSurf * surfaceWithPatches(IOdictionary *meshDictPtr=NULL, const word prefix="patch_", const bool forceOverwrite=false) const
store regions into subsets with a given prefix
Definition: triSurfacePatchManipulator.C:86
Foam::triSurfacePatchManipulator::featureEdges_
List< direction > featureEdges_
detected feature edges
Definition: triSurfacePatchManipulator.H:59
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::triSurfacePatchManipulator::allocateFeatureEdges
void allocateFeatureEdges()
allocate and fill the feature edges list
Definition: triSurfacePatchManipulatorFunctions.C:43
Foam::triSurfacePatchManipulator::facetInPatch_
labelList facetInPatch_
surface patches
Definition: triSurfacePatchManipulator.H:62
IOdictionary.H
Foam::triSurfacePatchManipulator::operator=
void operator=(const triSurfacePatchManipulator &)
Disallow default bitwise assignment.
Foam::triSurfacePatchManipulator
Definition: triSurfacePatchManipulator.H:52
Foam::List< direction >
Foam::surface
Definition: surface.H:55
Foam::triSurfacePatchManipulator::createPatches
void createPatches()
create patches bounded by a set of feature edges
Definition: triSurfacePatchManipulatorFunctions.C:68
Foam::VRWGraph
Definition: VRWGraph.H:101
Foam::triSurfacePatchManipulator::surf_
const triSurf & surf_
const reference to triSurf
Definition: triSurfacePatchManipulator.H:56
Foam::triSurf
Definition: triSurf.H:59