namedVertex.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) 2016 OpenFOAM Foundation
9  Copyright (C) 2019 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::blockVertices::namedVertex
29 
30 Description
31  Gives name to a vertex.
32 
33 SourceFiles
34  namedVertex.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef blockVertices_namedVertex_H
39 #define blockVertices_namedVertex_H
40 
41 #include "blockVertex.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 namespace blockVertices
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class namedVertex Declaration
52 \*---------------------------------------------------------------------------*/
53 
54 class namedVertex
55 :
56  public blockVertex
57 {
58 protected:
59 
60  // Protected Member Data
61 
62  //- The dictionary variable name for the vertex number
63  word name_;
64 
65  //- The vertex location
67 
68 
69 public:
70 
71  //- Runtime type information
72  TypeName("name");
73 
74 
75  // Constructors
76 
77  //- Construct from Istream setting pointsList
79  (
80  const dictionary& dict,
81  const label index,
82  const searchableSurfaces& geometry,
83  Istream& is
84  );
85 
86 
87  //- Destructor
88  virtual ~namedVertex() = default;
89 
90 
91  // Member Functions
92 
93  virtual operator point() const;
94 };
95 
96 
97 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
98 
99 } // End namespace blockVertices
100 } // End namespace Foam
101 
102 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
103 
104 #endif
105 
106 // ************************************************************************* //
Foam::blockVertices::namedVertex::TypeName
TypeName("name")
Runtime type information.
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::blockVertices::namedVertex
Gives name to a vertex.
Definition: namedVertex.H:53
Foam::Istream
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Definition: Istream.H:61
Foam::blockVertex
Define a block vertex.
Definition: blockVertex.H:51
dict
dictionary dict
Definition: searchingEngine.H:14
blockVertex.H
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam::blockVertices::namedVertex::namedVertex
namedVertex(const dictionary &dict, const label index, const searchableSurfaces &geometry, Istream &is)
Construct from Istream setting pointsList.
Definition: namedVertex.C:46
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::blockVertices::namedVertex::~namedVertex
virtual ~namedVertex()=default
Destructor.
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
Foam::blockVertices::namedVertex::vertexPtr_
autoPtr< blockVertex > vertexPtr_
The vertex location.
Definition: namedVertex.H:65
Foam::searchableSurfaces
Container for searchableSurfaces. The collection is specified as a dictionary. For example,...
Definition: searchableSurfaces.H:92
Foam::point
vector point
Point is a vector.
Definition: point.H:43
Foam::blockVertices::namedVertex::name_
word name_
The dictionary variable name for the vertex number.
Definition: namedVertex.H:62