polynomialTemperature.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-2025 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::polynomialTemperature
26 
27 Description
28  Polynomial equation for the saturation vapour temperature in terms of
29  the vapour pressure (in Pa).
30 
31  \f[
32  T_sat = \sum_i C_i p^i
33  \f]
34 
35  where \f$p\f$ is the pressure in Pa and \f$C\f$ are the coefficients.
36 
37 SourceFiles
38  polynomialTemperature.C
39 
40 \*---------------------------------------------------------------------------*/
41 
42 #ifndef polynomialTemperature_H
43 #define polynomialTemperature_H
44 
46 #include "Polynomial.H"
47 
48 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 
50 namespace Foam
51 {
52 namespace saturationModels
53 {
54 
55 /*---------------------------------------------------------------------------*\
56  Class polynomialTemperature Declaration
57 \*---------------------------------------------------------------------------*/
58 
60 :
62 {
63  // Private Data
64 
65  //- Polynomial coefficients
66  Polynomial<8> C_;
67 
68 
69 public:
70 
71  //- Runtime type information
72  TypeName("polynomial");
73 
74 
75  // Constructors
76 
77  //- Construct from a dictionary
79 
80 
81  //- Destructor
82  virtual ~polynomialTemperature();
83 
84 
85  // Member Functions
86 
87  //- Saturation temperature for scalarField
88  virtual tmp<scalarField> Tsat(const scalarField& p) const;
89 
90  //- Saturation temperature derivative w.r.t. pressure for scalarField
91  virtual tmp<scalarField> TsatPrime(const scalarField& p) const;
92 };
93 
94 
95 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
96 
97 } // End namespace saturationModels
98 } // End namespace Foam
99 
100 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
101 
102 #endif
103 
104 // ************************************************************************* //
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
Polynomial equation for the saturation vapour temperature in terms of the vapour pressure (in Pa).
virtual tmp< scalarField > Tsat(const scalarField &p) const
Saturation temperature for scalarField.
TypeName("polynomial")
Runtime type information.
virtual tmp< scalarField > TsatPrime(const scalarField &p) const
Saturation temperature derivative w.r.t. pressure for scalarField.
polynomialTemperature(const dictionary &dict)
Construct from a dictionary.
Model to describe the dependence of saturation temperature on pressure.
A class for managing temporary objects.
Definition: tmp.H:55
Namespace for OpenFOAM.
dictionary dict
volScalarField & p