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-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::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 volScalarField::Internal
89  (
91  ) const;
92 
93  //- Saturation temperature for volScalarField
94  virtual tmp<volScalarField> Tsat(const volScalarField& p) const;
95 };
96 
97 
98 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
99 
100 } // End namespace saturationModels
101 } // End namespace Foam
102 
103 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
104 
105 #endif
106 
107 // ************************************************************************* //
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
Polynomial equation for the saturation vapour temperature in terms of the vapour pressure (in Pa).
virtual tmp< volScalarField::Internal > Tsat(const volScalarField::Internal &p) const
Saturation temperature for volScalarField::Internal.
TypeName("polynomial")
Runtime type information.
polynomialTemperature(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