searchablePlateFeatures.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) 2013-2015 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::searchablePlateFeatures
28 
29 Description
30 
31 SourceFiles
32  searchablePlateFeatures.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef searchablePlateFeatures_H
37 #define searchablePlateFeatures_H
38 
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 /*---------------------------------------------------------------------------*\
47  Class searchablePlateFeatures Declaration
48 \*---------------------------------------------------------------------------*/
49 
51 :
53 {
54 private:
55 
56  //- To initialise edges.
57  static edgeList calcEdges(const label[4][2]);
58 
59 
60  // Private Member Data
61 
62  //- Which side of the plate to mesh
64 
65 
66  // Private Member Functions
67 
68  //- No copy construct
70 
71  //- No copy assignment
72  void operator=(const searchablePlateFeatures&) = delete;
73 
74 
75 public:
76 
77  //- Runtime type information
78  TypeName("searchablePlateFeatures");
79 
80 
81  // Static data members
82 
83  //- Edge to point addressing
84  static const edgeList edges;
85 
86 
87  // Constructors
88 
89  //- Construct from searchable surface and dictionary
91  (
93  const dictionary& dict
94  );
95 
96 
97  //- Destructor
98  virtual ~searchablePlateFeatures();
99 
100 
101  // Member Functions
102 
103  //- Return true for a searchable plate having features
104  virtual bool hasFeatures() const
105  {
106  return true;
107  }
108 
109  //- Return an extendedFeatureEdgeMesh containing the features
111 };
112 
113 
114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115 
116 } // End namespace Foam
117 
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 
120 #endif
121 
122 // ************************************************************************* //
searchableSurfaceFeatures.H
Foam::searchablePlateFeatures
Definition: searchablePlateFeatures.H:49
Foam::searchablePlateFeatures::hasFeatures
virtual bool hasFeatures() const
Return true for a searchable plate having features.
Definition: searchablePlateFeatures.H:103
Foam::searchablePlateFeatures::TypeName
TypeName("searchablePlateFeatures")
Runtime type information.
Foam::searchablePlateFeatures::~searchablePlateFeatures
virtual ~searchablePlateFeatures()
Destructor.
Definition: searchablePlateFeatures.C:105
Foam::extendedEdgeMesh::sideVolumeType
sideVolumeType
Normals point to the outside.
Definition: extendedEdgeMesh.H:117
Foam::searchableSurface
Base class of (analytical or triangulated) surface. Encapsulates all the search routines....
Definition: searchableSurface.H:69
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam::searchableSurfaceFeatures::dict
const dictionary & dict() const
Return a reference to the dictionary.
Definition: searchableSurfaceFeatures.H:132
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::searchablePlateFeatures::edges
static const edgeList edges
Edge to point addressing.
Definition: searchablePlateFeatures.H:83
Foam::searchablePlateFeatures::features
virtual autoPtr< extendedFeatureEdgeMesh > features() const
Return an extendedFeatureEdgeMesh containing the features.
Definition: searchablePlateFeatures.C:112
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
Foam::searchableSurfaceFeatures::surface
const searchableSurface & surface() const
Return a reference to the searchable surface.
Definition: searchableSurfaceFeatures.H:126
Foam::List< edge >
Foam::searchableSurfaceFeatures
Decorator that returns the features of a searchable surface.
Definition: searchableSurfaceFeatures.H:53