energyCalculatedTemperatureFvScalarFieldSource.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) 2023 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::energyCalculatedTemperatureFvScalarFieldSource
26 
27 Description
28  Base class for temperature source conditions in which the parameters of the
29  corresponding energy condition can be set directly.
30 
31 SourceFiles
32  energyCalculatedTemperatureFvScalarFieldSource.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef energyCalculatedTemperatureFvScalarFieldSource_H
37 #define energyCalculatedTemperatureFvScalarFieldSource_H
38 
39 #include "fvFieldSources.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 /*---------------------------------------------------------------------------*\
47  Class energyCalculatedTemperatureFvScalarFieldSource Declaration
48 \*---------------------------------------------------------------------------*/
49 
51 :
52  public fvScalarFieldSource
53 {
54 public:
55 
56  //- Runtime type information
57  TypeName("energyCalculatedTemperature");
58 
59 
60  // Constructors
61 
62  //- Construct from internal field and dictionary
64  (
66  const dictionary& dict
67  );
68 
69  //- Copy constructor setting internal field reference
71  (
74  );
75 
76 
77  //- Destructor
79 
80 
81  // Member Functions
82 
83  //- Return the source energy value
84  virtual tmp<scalarField> sourceHeValue(const fvSource&) const = 0;
85 
86  //- Return the source value. Not implemented.
87  virtual tmp<scalarField> sourceValue(const fvSource&) const;
88 };
89 
90 
91 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
92 
93 } // End namespace Foam
94 
95 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
96 
97 #endif
98 
99 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:162
Base class for temperature source conditions in which the parameters of the corresponding energy cond...
virtual tmp< scalarField > sourceHeValue(const fvSource &) const =0
Return the source energy value.
virtual tmp< scalarField > sourceValue(const fvSource &) const
Return the source value. Not implemented.
energyCalculatedTemperatureFvScalarFieldSource(const DimensionedField< scalar, volMesh > &, const dictionary &dict)
Construct from internal field and dictionary.
TypeName("energyCalculatedTemperature")
Runtime type information.
Base class for finite volume sources.
Definition: fvSource.H:52
A class for managing temporary objects.
Definition: tmp.H:55
Namespace for OpenFOAM.
dictionary dict