LocalUniformDimensionedField.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2026 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::LocalUniformDimensionedField
26 
27 Description
28  Local variant of UniformDimensionedField. Identical to
29  UniformDimensionedField, apart from the fact that IO is processor local.
30 
31 SourceFiles
32  LocalUniformDimensionedField.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef LocalUniformDimensionedField_H
37 #define LocalUniformDimensionedField_H
38 
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 /*---------------------------------------------------------------------------*\
47  Class UniformDimensionedField Declaration
48 \*---------------------------------------------------------------------------*/
49 
50 template<class Type>
52 :
53  public UniformDimensionedField<Type>
54 {
55 public:
56 
57  //- Runtime type information
58  TypeName("LocalUniformDimensionedField");
59 
60 
61  // Constructors
62 
63  //- Construct from IOobject
65 
66  //- Construct from IOobject and default value
67  // reading from the IOobject file according to read option
69 
70  //- Inherit other constructors
72 
73 
74  //- Destructor
76 
77 
78  // Member Functions
79 
80  //- Is object global
81  virtual bool global() const
82  {
83  return false;
84  }
85 };
86 
87 
88 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
89 
90 } // End namespace Foam
91 
92 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
93 
94 #ifdef NoRepository
96 #endif
97 
98 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
99 
100 #endif
101 
102 // ************************************************************************* //
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Definition: IOobject.H:99
Local variant of UniformDimensionedField. Identical to UniformDimensionedField, apart from the fact t...
virtual bool global() const
Is object global.
LocalUniformDimensionedField(const IOobject &, const dimensionSet &dims)
Construct from IOobject.
TypeName("LocalUniformDimensionedField")
Runtime type information.
Dimensioned<Type> registered with the database as a registered IOobject which has the functionality o...
Dimension set for the base types.
Definition: dimensionSet.H:125
Generic dimensioned Type class.
Namespace for OpenFOAM.