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
64  LocalUniformDimensionedField(const IOobject&, const bool read = true);
65 
66  //- Construct from IOobject. Either reads or uses supplied value.
68  (
69  const IOobject&,
70  const dimensioned<Type>&,
71  const bool read = true
72  );
73 
74  //- Inherit other constructors
76 
77 
78  //- Destructor
80 
81 
82  // Member Functions
83 
84  //- Is object global
85  virtual bool global() const
86  {
87  return false;
88  }
89 };
90 
91 
92 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
93 
94 } // End namespace Foam
95 
96 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
97 
98 #ifdef NoRepository
100 #endif
101 
102 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
103 
104 #endif
105 
106 // ************************************************************************* //
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.
TypeName("LocalUniformDimensionedField")
Runtime type information.
LocalUniformDimensionedField(const IOobject &, const bool read=true)
Construct from IOobject.
Dimensioned<Type> registered with the database as a registered IOobject which has the functionality o...
virtual bool read()
Prevent warning due to read method.
Generic dimensioned Type class.
Namespace for OpenFOAM.