autoPatch.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 | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2014 OpenFOAM Foundation
9  Copyright (C) 2016 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 Class
28  Foam::searchableSurfaceModifier::autoPatch
29 
30 Description
31  Patchify triangles based on a feature angle. Replacement of surfaceAutoPatch
32 
33 SourceFiles
34  autoPatch.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef autoPatch_H
39 #define autoPatch_H
40 
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 
48 namespace searchableSurfaceModifiers
49 {
50 
51 /*---------------------------------------------------------------------------*\
52  Class autoPatch Declaration
53 \*---------------------------------------------------------------------------*/
54 
55 class autoPatch
56 :
58 {
59  // Private data
60 
61  //- Feature angle
62  const scalar featureAngle_;
63 
64 
65 public:
66 
67  //- Runtime type information
68  TypeName("autoPatch");
69 
70 
71  // Constructors
72 
73  //- Construct from dictionary
74  autoPatch(const searchableSurfaces& geometry, const dictionary& dict);
75 
76  //- Clone
78  {
80  return nullptr;
81  }
82 
83 
84  //- Destructor
85  virtual ~autoPatch() = default;
86 
87 
88  // Member Functions
89 
90  //- Apply this selector
91  virtual bool modify(const labelList& regions, searchableSurface&) const;
92 
93 };
94 
95 
96 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
97 
98 } // End namespace searchableSurfaceModifiers
99 } // End namespace Foam
100 
101 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
102 
103 #endif
104 
105 // ************************************************************************* //
Foam::searchableSurfaceModifiers::autoPatch::TypeName
TypeName("autoPatch")
Runtime type information.
Foam::searchableSurfaceModifier
Changing a surface.
Definition: searchableSurfaceModifier.H:60
Foam::searchableSurfaceModifiers::autoPatch::autoPatch
autoPatch(const searchableSurfaces &geometry, const dictionary &dict)
Construct from dictionary.
searchableSurfaceModifier.H
NotImplemented
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Definition: error.H:517
Foam::searchableSurface
Base class of (analytical or triangulated) surface. Encapsulates all the search routines....
Definition: searchableSurface.H:69
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::searchableSurfaceModifiers::autoPatch::~autoPatch
virtual ~autoPatch()=default
Destructor.
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
Foam::searchableSurfaceModifiers::autoPatch::modify
virtual bool modify(const labelList &regions, searchableSurface &) const
Apply this selector.
Foam::searchableSurfaceModifiers::autoPatch
Definition: autoPatch.H:54
Foam::List< label >
Foam::searchableSurfaces
Container for searchableSurfaces. The collection is specified as a dictionary. For example,...
Definition: searchableSurfaces.H:92
Foam::searchableSurfaceModifiers::autoPatch::clone
autoPtr< searchableSurfaceModifier > clone() const
Clone.
Definition: autoPatch.H:76