Loading...
Searching...
No Matches
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-------------------------------------------------------------------------------
11License
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
27Class
28 Foam::blockVertices::namedVertex
29
30Description
31 Gives name to a vertex.
32
33SourceFiles
34 namedVertex.C
35
36\*---------------------------------------------------------------------------*/
37
38#ifndef blockVertices_namedVertex_H
39#define blockVertices_namedVertex_H
40
41#include "blockVertex.H"
42
43// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44
45namespace Foam
46{
47namespace blockVertices
48{
50/*---------------------------------------------------------------------------*\
51 Class namedVertex Declaration
52\*---------------------------------------------------------------------------*/
53
54class namedVertex
55:
56 public blockVertex
57{
58protected:
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
69public:
70
71 //- Runtime type information
72 TypeName("name");
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// ************************************************************************* //
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Definition Istream.H:60
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition autoPtr.H:65
blockVertex() noexcept=default
Default construct.
word name_
The dictionary variable name for the vertex number.
Definition namedVertex.H:60
namedVertex(const dictionary &dict, const label index, const searchableSurfaces &geometry, Istream &is)
Construct from Istream setting pointsList.
Definition namedVertex.C:39
autoPtr< blockVertex > vertexPtr_
The vertex location.
Definition namedVertex.H:65
TypeName("name")
Runtime type information.
virtual ~namedVertex()=default
Destructor.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
Container for searchableSurfaces. The collection is specified as a dictionary. For example,...
A class for handling words, derived from Foam::string.
Definition word.H:66
Namespace for OpenFOAM.
vector point
Point is a vector.
Definition point.H:37
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition typeInfo.H:68