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 -------------------------------------------------------------------------------
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::functionObjects::fvMeshFunctionObject
28 
29 Description
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 
36 See also
37  Foam::regionFunctionObject
38  Foam::functionObject
39 
40 SourceFiles
41  fvMeshFunctionObject.C
42 
43 \*---------------------------------------------------------------------------*/
44 
45 #ifndef functionObjects_fvMeshFunctionObject_H
46 #define functionObjects_fvMeshFunctionObject_H
47 
48 #include "regionFunctionObject.H"
49 
50 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51 
52 namespace Foam
53 {
54 
55 // Forward declaration of classes
56 class fvMesh;
57 
58 namespace functionObjects
59 {
60 
61 /*---------------------------------------------------------------------------*\
62  Class fvMeshFunctionObject Declaration
63 \*---------------------------------------------------------------------------*/
64 
66 :
68 {
69 protected:
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 
86 public:
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 // ************************************************************************* //
runTime
engineTime & runTime
Definition: createEngineTime.H:13
Foam::Time
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Definition: Time.H:73
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::functionObjects::fvMeshFunctionObject
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
Definition: fvMeshFunctionObject.H:64
Foam::objectRegistry
Registry of regIOobjects.
Definition: objectRegistry.H:60
regionFunctionObject.H
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:85
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::functionObject::name
const word & name() const noexcept
Return the name of this functionObject.
Definition: functionObject.C:143
Foam::functionObjects::regionFunctionObject::obr
virtual const objectRegistry & obr() const
The region or sub-region registry being used.
Definition: regionFunctionObject.C:47
Foam::functionObjects::fvMeshFunctionObject::mesh_
const fvMesh & mesh_
Reference to the fvMesh.
Definition: fvMeshFunctionObject.H:73
Foam::functionObjects::regionFunctionObject
Specialization of Foam::functionObject for a region and providing a reference to the region Foam::obj...
Definition: regionFunctionObject.H:90
Foam::functionObjects::fvMeshFunctionObject::fvMeshFunctionObject
fvMeshFunctionObject(const fvMeshFunctionObject &)=delete
No copy construct.
Foam::functionObjects::fvMeshFunctionObject::operator=
void operator=(const fvMeshFunctionObject &)=delete
No copy assignment.
Foam::functionObjects::fvMeshFunctionObject::TypeName
TypeName("fvMeshFunctionObject")
Runtime type information.
Foam::functionObjects::fvMeshFunctionObject::~fvMeshFunctionObject
virtual ~fvMeshFunctionObject()=default
Destructor.