fvMeshFunctionObject.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-------------------------------------------------------------------------------
10License
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
26Class
27 Foam::functionObjects::fvMeshFunctionObject
28
29Description
30 Specialization of Foam::functionObject for an Foam::fvMesh, providing a
31 reference to the Foam::fvMesh.
32
33 If the selected region is not an Foam::fvMesh a Foam::FatalError will be
34 generated.
35
36See also
37 Foam::regionFunctionObject
38 Foam::functionObject
39
40SourceFiles
41 fvMeshFunctionObject.C
42
43\*---------------------------------------------------------------------------*/
44
45#ifndef functionObjects_fvMeshFunctionObject_H
46#define functionObjects_fvMeshFunctionObject_H
47
49
50// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51
52namespace Foam
53{
54
55// Forward declaration of classes
56class fvMesh;
57
58namespace functionObjects
59{
60
61/*---------------------------------------------------------------------------*\
62 Class fvMeshFunctionObject Declaration
63\*---------------------------------------------------------------------------*/
66:
68{
69protected:
70
71 // Protected Member Data
72
73 //- Reference to the fvMesh
74 const fvMesh& mesh_;
75
76
77 // Protected Member Functions
78
79 //- No copy construct
81
82 //- No copy assignment
83 void operator=(const fvMeshFunctionObject&) = delete;
84
85
86public:
87
88 //- Runtime type information
89 TypeName("fvMeshFunctionObject");
90
91
92 // Constructors
93
94 //- Construct from Time and dictionary
96 (
97 const word& name,
98 const Time& runTime,
99 const dictionary& dict
100 );
101
102 //- Construct from the region objectRegistry and dictionary
104 (
105 const word& name,
106 const objectRegistry& obr,
107 const dictionary& dict
108 );
109
110
111 //- Destructor
112 virtual ~fvMeshFunctionObject() = default;
113
114};
115
116
117// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118
119} // End namespace functionObjects
120} // End namespace Foam
121
122// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123
124#endif
125
126// ************************************************************************* //
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Definition: Time.H:80
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
const word & name() const noexcept
Return the name of this functionObject.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
const fvMesh & mesh_
Reference to the fvMesh.
void operator=(const fvMeshFunctionObject &)=delete
No copy assignment.
virtual ~fvMeshFunctionObject()=default
Destructor.
fvMeshFunctionObject(const fvMeshFunctionObject &)=delete
No copy construct.
TypeName("fvMeshFunctionObject")
Runtime type information.
Specialization of Foam::functionObject for a region and providing a reference to the region Foam::obj...
virtual const objectRegistry & obr() const
The region or sub-region registry being used.
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:91
Registry of regIOobjects.
A class for handling words, derived from Foam::string.
Definition: word.H:68
engineTime & runTime
Namespace for OpenFOAM.
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73