constantTemperature.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) 2015-2022 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::saturationModels::constantTemperature
26 
27 Description
28  Constant saturation temperature model.
29 
30 SourceFiles
31  constantTemperature.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef constantTemperature_H
36 #define constantTemperature_H
37 
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 namespace saturationModels
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class constantTemperature Declaration
49 \*---------------------------------------------------------------------------*/
50 
52 :
54 {
55 protected:
56 
57  // Private Data
58 
59  //- Constant saturation temperature
61 
62 
63  // Private Member Functions
64 
65  //- Saturation temperature
66  template<class FieldType>
67  tmp<FieldType> Tsat(const FieldType& p) const;
68 
69 
70 public:
71 
72  //- Runtime type information
73  TypeName("constant");
74 
75 
76  // Constructors
77 
78  //- Construct from a dictionary
80 
81  //- Construct from a value
83 
84 
85  //- Destructor
86  virtual ~constantTemperature();
87 
88 
89  // Member Functions
90 
91  //- Saturation pressure for volScalarField::Internal
93 
94  //- Saturation pressure for volScalarField
96 };
97 
98 
99 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
100 
101 } // End namespace saturationModels
102 } // End namespace Foam
103 
104 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
105 
106 #endif
107 
108 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic GeometricField class.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:160
Constant saturation temperature model.
DEFINE_TSAT(volScalarField::Internal,)
Saturation pressure for volScalarField::Internal.
const dimensionedScalar Tsat_
Constant saturation temperature.
tmp< FieldType > Tsat(const FieldType &p) const
Saturation temperature.
TypeName("constant")
Runtime type information.
constantTemperature(const dictionary &dict)
Construct from a dictionary.
Model to describe the dependence of saturation pressure on temperature, and vice versa.
A class for managing temporary objects.
Definition: tmp.H:55
Namespace for OpenFOAM.
dictionary dict
volScalarField & p