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-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 \*---------------------------------------------------------------------------*/
25 
26 #include "saturationModels.H"
28 
29 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
30 
31 namespace Foam
32 {
35 }
36 
37 
38 // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
39 
40 template<class FieldType>
41 Foam::tmp<FieldType> Foam::saturationPressureModel::pSat
42 (
43  const FieldType& T
44 ) const
45 {
46  return
48  (
49  T,
50  "pSat",
52  *this,
53  &saturationPressureModel::pSat
54  );
55 }
56 
57 
58 template<class FieldType>
59 Foam::tmp<FieldType> Foam::saturationPressureModel::pSatPrime
60 (
61  const FieldType& T
62 ) const
63 {
64  return
66  (
67  T,
68  "pSatPrime",
70  *this,
71  &saturationPressureModel::pSatPrime
72  );
73 }
74 
75 
76 template<class FieldType>
77 Foam::tmp<FieldType> Foam::saturationPressureModel::lnPSat
78 (
79  const FieldType& T
80 ) const
81 {
82  return
84  (
85  T,
86  "lnPSat",
87  dimless,
88  *this,
89  &saturationPressureModel::lnPSat
90  );
91 }
92 
93 
94 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
95 
97 {}
98 
99 
100 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
101 
103 {}
104 
105 
106 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
107 
109 
110 
112 
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 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.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
const dimensionSet dimPressure
const dimensionSet dimless
void T(LagrangianPatchField< Type > &f, const LagrangianPatchField< Type > &f1)
const dimensionSet dimTemperature
defineTypeNameAndDebug(combustionModel, 0)
#define IMPLEMENT_PSAT(ModelType, FieldType)