saturationTemperatureModel.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::saturationTemperatureModel
26 
27 Description
28  Model to describe the dependence of saturation pressure on temperature, and
29  vice versa
30 
31 SourceFiles
32  saturationTemperatureModel.C
33  saturationTemperatureModelNew.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef saturationTemperatureModel_H
38 #define saturationTemperatureModel_H
39 
40 #include "volFields.H"
41 #include "dictionary.H"
42 #include "runTimeSelectionTables.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 #define DEFINE_TSAT(FieldType, Modifier) \
47  \
48  virtual tmp<FieldType> Tsat(const FieldType& p) const Modifier; \
49 
50 
51 #define IMPLEMENT_TSAT(ModelType, FieldType) \
52  \
53  Foam::tmp<Foam::FieldType> \
54  Foam::saturationModels::ModelType::Tsat(const FieldType& p) const \
55  { \
56  return Tsat<FieldType>(p); \
57  }
58 
59 
60 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
61 
62 namespace Foam
63 {
64 
65 /*---------------------------------------------------------------------------*\
66  Class saturationTemperatureModel Declaration
67 \*---------------------------------------------------------------------------*/
68 
70 {
71 public:
72 
73  //- Runtime type information
74  TypeName("saturationTemperatureModel");
75 
76 
77  //- Declare runtime construction
79  (
80  autoPtr,
82  dictionary,
83  (const dictionary& dict),
84  (dict)
85  );
86 
87 
88  // Constructors
89 
90  //- Default construct
92 
93 
94  // Selectors
95 
96  //- Select with dictionary
98  (
99  const dictionary& dict
100  );
101 
102  //- Select with name within a dictionary
104  (
105  const word& name,
106  const dictionary& dict
107  );
108 
109 
110  //- Destructor
111  virtual ~saturationTemperatureModel();
112 
113 
114  // Member Functions
115 
116  //- Saturation temperature for volScalarField::Internal
118 
119  //- Saturation temperature for volScalarField
121 };
122 
123 
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 
126 } // End namespace Foam
127 
128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 
130 #endif
131 
132 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic GeometricField class.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:162
Model to describe the dependence of saturation pressure on temperature, and vice versa.
static autoPtr< saturationTemperatureModel > New(const dictionary &dict)
Select with dictionary.
TypeName("saturationTemperatureModel")
Runtime type information.
declareRunTimeSelectionTable(autoPtr, saturationTemperatureModel, dictionary,(const dictionary &dict),(dict))
Declare runtime construction.
A class for handling words, derived from string.
Definition: word.H:62
Namespace for OpenFOAM.
word name(const bool)
Return a word representation of a bool.
Definition: boolIO.C:39
Macros to ease declaration of run-time selection tables.
#define DEFINE_TSAT(FieldType, Modifier)
dictionary dict