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 | Copyright (C) 2014 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::searchableSurfaceModifier::autoPatch
26 
27 Description
28  Patchify triangles based on a feature angle. Replacement of surfaceAutoPatch
29 
30 SourceFiles
31  autoPatch.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef autoPatch_H
36 #define autoPatch_H
37 
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 
45 namespace searchableSurfaceModifiers
46 {
47 
48 /*---------------------------------------------------------------------------*\
49  Class autoPatch Declaration
50 \*---------------------------------------------------------------------------*/
51 
52 class autoPatch
53 :
55 {
56  // Private data
57 
58  //- Feature angle
59  const scalar featureAngle_;
60 
61 
62  // Private Member Functions
63 
64 public:
65 
66  //- Runtime type information
67  TypeName("autoPatch");
68 
69 
70  // Constructors
71 
72  //- Construct from dictionary
73  autoPatch(const searchableSurfaces&, const dictionary&);
74 
75  //- Clone
77  {
80  }
81 
82 
83  //- Destructor
84  virtual ~autoPatch();
85 
86 
87  // Member Functions
88 
89  //- Apply this selector
90  virtual bool modify(const labelList& regions, searchableSurface&) const;
91 
92 };
93 
94 
95 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
96 
97 } // End namespace searchableSurfaceModifiers
98 } // End namespace Foam
99 
100 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
101 
102 #endif
103 
104 // ************************************************************************* //
Foam::searchableSurfaceModifiers::autoPatch::TypeName
TypeName("autoPatch")
Runtime type information.
Foam::searchableSurfaceModifier
Changing a surface.
Definition: searchableSurfaceModifier.H:57
searchableSurfaceModifier.H
Foam::searchableSurfaceModifiers::autoPatch::~autoPatch
virtual ~autoPatch()
Destructor.
Foam::searchableSurfaceModifiers::autoPatch::featureAngle_
const scalar featureAngle_
Feature angle.
Definition: autoPatch.H:58
NotImplemented
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Definition: error.H:365
Foam::searchableSurface
Base class of (analytical or triangulated) surface. Encapsulates all the search routines....
Definition: searchableSurface.H:66
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::autoPtr
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:117
Foam::searchableSurfaceModifiers::autoPatch::modify
virtual bool modify(const labelList &regions, searchableSurface &) const
Apply this selector.
Foam::searchableSurfaceModifiers::autoPatch
Definition: autoPatch.H:51
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::searchableSurfaces
Container for searchableSurfaces.
Definition: searchableSurfaces.H:53
Foam::searchableSurfaceModifiers::autoPatch::autoPatch
autoPatch(const searchableSurfaces &, const dictionary &)
Construct from dictionary.
Foam::searchableSurfaceModifiers::autoPatch::clone
autoPtr< searchableSurfaceModifier > clone() const
Clone.
Definition: autoPatch.H:75