Antoine.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::Antoine
26 
27 Description
28  Antoine equation for the vapour pressure.
29 
30  \f[
31  \log p = A + \frac{B}{C + T}
32  \f]
33 
34  Coefficients \f$A\f$, \f$B\f$ and \f$C\f$ are to be supplied and should be
35  suitable for natural logarithms and temperatures in Kelvin.
36 
37 SourceFiles
38  Antoine.C
39 
40 \*---------------------------------------------------------------------------*/
41 
42 #ifndef Antoine_H
43 #define Antoine_H
44 
45 #include "saturationModels.H"
48 
49 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 
51 namespace Foam
52 {
53 namespace saturationModels
54 {
55 
56 /*---------------------------------------------------------------------------*\
57  Class Antoine Declaration
58 \*---------------------------------------------------------------------------*/
59 
60 class Antoine
61 :
64 {
65  // Private data
66 
67  //- Coefficient A
68  coefficient A_;
69 
70  //- Coefficient B
71  coefficient B_;
72 
73  //- Coefficient C
74  coefficient C_;
75 
76 
77  // Private Member Functions
78 
79  //- Saturation pressure
80  template<class FieldType>
81  tmp<FieldType> pSat(const FieldType& T) const;
82 
83  //- Saturation pressure derivative w.r.t. temperature
84  template<class FieldType>
85  tmp<FieldType> pSatPrime(const FieldType& T) const;
86 
87  //- Natural log of the saturation pressure
88  template<class FieldType>
89  tmp<FieldType> lnPSat(const FieldType& T) const;
90 
91  //- Saturation temperature
92  template<class FieldType>
93  tmp<FieldType> Tsat(const FieldType& p) const;
94 
95  //- Saturation temperature derivative w.r.t. pressure
96  template<class FieldType>
97  tmp<FieldType> TsatPrime(const FieldType& p) const;
98 
99 
100 public:
101 
102  //- Runtime type information
103  TypeName("Antoine");
104 
105 
106  // Constructors
107 
108  //- Construct from a dictionary
109  Antoine(const dictionary& dict);
110 
111 
112  //- Destructor
113  virtual ~Antoine();
114 
115 
116  // Member Functions
117 
118  //- Saturation pressure for scalarField
120 
121  //- Saturation pressure for volScalarField::Internal
123 
124  //- Saturation pressure for volScalarField
126 
127  //- Saturation temperature for scalarField
129 
130  //- Saturation temperature for volScalarField::Internal
132 
133  //- Saturation temperature for volScalarField
135 };
136 
137 
138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 
140 } // End namespace saturationModels
141 } // End namespace Foam
142 
143 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
144 
145 #endif
146 
147 // ************************************************************************* //
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
Antoine equation for the vapour pressure.
Definition: Antoine.H:63
TypeName("Antoine")
Runtime type information.
DEFINE_TSAT(scalarField,)
Saturation temperature for scalarField.
Antoine(const dictionary &dict)
Construct from a dictionary.
Definition: Antoine.C:88
DEFINE_PSAT(scalarField,)
Saturation pressure for scalarField.
virtual ~Antoine()
Destructor.
Definition: Antoine.C:100
Model to describe the dependence of saturation pressure on temperature.
Model to describe the dependence of saturation temperature on pressure.
A class for managing temporary objects.
Definition: tmp.H:55
Namespace for OpenFOAM.
void T(LagrangianPatchField< Type > &f, const LagrangianPatchField< Type > &f1)
dictionary dict
volScalarField & p
Structure to store a dimensioned coefficient of the saturation model.