saturationPressureModel.C
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-2026 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 \*---------------------------------------------------------------------------*/
25 
26 #include "saturationModels.H"
28 
29 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
30 
31 namespace Foam
32 {
36 }
37 
38 
39 // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
40 
41 template<class FieldType>
42 Foam::tmp<FieldType> Foam::saturationPressureModel::pSat
43 (
44  const FieldType& T
45 ) const
46 {
47  return
49  (
50  T,
51  "pSat",
53  *this,
54  &saturationPressureModel::pSat
55  );
56 }
57 
58 
59 template<class FieldType>
60 Foam::tmp<FieldType> Foam::saturationPressureModel::pSatPrime
61 (
62  const FieldType& T
63 ) const
64 {
65  return
67  (
68  T,
69  "pSatPrime",
71  *this,
72  &saturationPressureModel::pSatPrime
73  );
74 }
75 
76 
77 template<class FieldType>
78 Foam::tmp<FieldType> Foam::saturationPressureModel::lnPSat
79 (
80  const FieldType& T
81 ) const
82 {
83  return
85  (
86  T,
87  "lnPSat",
88  dimless,
89  *this,
90  &saturationPressureModel::lnPSat
91  );
92 }
93 
94 
95 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
96 
98 {}
99 
100 
101 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
102 
104 {}
105 
106 
107 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
108 
110 
111 
113 
114 
115 // ************************************************************************* //
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
Model to describe the dependence of saturation pressure on temperature.
saturationPressureModel()
Default construct.
virtual ~saturationPressureModel()
Destructor.
A class for managing temporary objects.
Definition: tmp.H:55
tmp< scalarField > evaluate(const scalarField &argument, const word &name, const dimensionedScalar &value)
Construct a scalar field from a uniform value.
Namespace for OpenFOAM.
const dimensionSet & dimless
Definition: dimensions.C:138
defineRunTimeSelectionTable(fvConstraint, dictionary)
const dimensionSet & dimPressure
Definition: dimensions.C:163
defineTypeNameAndDebug(atmosphericBoundaryLayer, 0)
void T(GeometricField< Type, GeoMesh, PrimitiveField1 > &gf, const GeometricField< Type, GeoMesh, PrimitiveField2 > &gf1)
const dimensionSet & dimTemperature
Definition: dimensions.C:143
#define IMPLEMENT_PSAT(ModelType, FieldType)