AntoineExtended.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::AntoineExtended
26 
27 Description
28  Extended Antoine equation for the vapour pressure.
29 
30  \f[
31  \log (p) = A + \frac{B}{C + T} + D \log (T) + E T^F
32  \f]
33 
34  Coefficients \f$A\f$, \f$B\f$, \f$C\f$, \f$D\f$, \f$E\f$ and \f$F\f$ are
35  to be supplied and should be suitable for natural logarithms and
36  temperatures in Kelvin.
37 
38 SourceFiles
39  AntoineExtended.C
40 
41 \*---------------------------------------------------------------------------*/
42 
43 #ifndef AntoineExtended_H
44 #define AntoineExtended_H
45 
46 #include "saturationModels.H"
48 
49 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 
51 namespace Foam
52 {
53 namespace saturationModels
54 {
55 
56 /*---------------------------------------------------------------------------*\
57  Class AntoineExtended Declaration
58 \*---------------------------------------------------------------------------*/
59 
60 class AntoineExtended
61 :
63 {
64  // Private data
65 
66  //- Coefficient A
67  coefficient A_;
68 
69  //- Coefficient B
70  coefficient B_;
71 
72  //- Coefficient C
73  coefficient C_;
74 
75  //- Coefficient D
76  coefficient D_;
77 
78  //- Coefficient F
79  coefficient F_;
80 
81  //- Coefficient E. This is declared after F so F's dimensions can be
82  // used in the construction.
83  coefficient E_;
84 
85  //- Coefficient value of one with dimensions of pressure/temperature^D
86  coefficient onePbyTpowD_;
87 
88 
89  // Private Member Functions
90 
91  //- Saturation pressure
92  template<class FieldType>
93  tmp<FieldType> pSat(const FieldType& T) const;
94 
95  //- Saturation pressure derivative w.r.t. temperature
96  template<class FieldType>
97  tmp<FieldType> pSatPrime(const FieldType& T) const;
98 
99  //- Natural log of the saturation pressure
100  template<class FieldType>
101  tmp<FieldType> lnPSat(const FieldType& T) const;
102 
103 
104 public:
105 
106  //- Runtime type information
107  TypeName("AntoineExtended");
108 
109 
110  // Constructors
111 
112  //- Construct from a dictionary and an interface
114 
115 
116  //- Destructor
117  virtual ~AntoineExtended();
118 
119 
120  // Member Functions
121 
122  //- Saturation pressure for scalarField
124 
125  //- Saturation pressure for volScalarField::Internal
127 
128  //- Saturation pressure for volScalarField
130 };
131 
132 
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 
135 } // End namespace saturationModels
136 } // End namespace Foam
137 
138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 
140 #endif
141 
142 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic GeometricField class.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
Extended Antoine equation for the vapour pressure.
DEFINE_PSAT(scalarField,)
Saturation pressure for scalarField.
TypeName("AntoineExtended")
Runtime type information.
AntoineExtended(const dictionary &dict)
Construct from a dictionary and an interface.
Model to describe the dependence of saturation pressure on temperature.
A class for managing temporary objects.
Definition: tmp.H:55
Namespace for OpenFOAM.
void T(LagrangianPatchField< Type > &f, const LagrangianPatchField< Type > &f1)
dictionary dict
Structure to store a dimensioned coefficient of the saturation model.