constantPressure.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::constantPressure
26 
27 Description
28  Constant saturation pressure model.
29 
30 SourceFiles
31  constantPressure.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef constantPressure_H
36 #define constantPressure_H
37 
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 namespace saturationModels
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class constantPressure Declaration
49 \*---------------------------------------------------------------------------*/
50 
51 class constantPressure
52 :
54 {
55  // Private Data
56 
57  //- The constant saturation pressure
58  const dimensionedScalar pSat_;
59 
60 
61  // Private Member Functions
62 
63  //- Saturation pressure
64  template<class FieldType>
65  tmp<FieldType> pSat(const FieldType& T) const;
66 
67  //- Saturation pressure derivative w.r.t. temperature
68  template<class FieldType>
69  tmp<FieldType> pSatPrime(const FieldType& T) const;
70 
71  //- Natural log of the saturation pressure
72  template<class FieldType>
73  tmp<FieldType> lnPSat(const FieldType& T) const;
74 
75 
76 public:
77 
78  //- Runtime type information
79  TypeName("constant");
80 
81 
82  // Constructors
83 
84  //- Construct from a dictionary
86 
87  //- Construct from a value
89 
90 
91  //- Destructor
92  virtual ~constantPressure();
93 
94 
95  // Member Functions
96 
97  //- Saturation pressure for volScalarField::Internal
99 
100  //- Saturation pressure for volScalarField
102 };
103 
104 
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106 
107 } // End namespace saturationModels
108 } // End namespace Foam
109 
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 
112 #endif
113 
114 // ************************************************************************* //
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
Constant saturation pressure model.
DEFINE_PSAT(volScalarField::Internal,)
Saturation pressure for volScalarField::Internal.
constantPressure(const dictionary &dict)
Construct from a dictionary.
TypeName("constant")
Runtime type information.
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.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
dictionary dict