saturationModel.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-2020 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::saturationModel
26 
27 Description
28 
29 SourceFiles
30  saturationModel.C
31  saturationModelNew.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef saturationModel_H
36 #define saturationModel_H
37 
38 #include "IOdictionary.H"
39 #include "volFields.H"
40 #include "dictionary.H"
41 #include "runTimeSelectionTables.H"
42 #include "phasePair.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class saturationModel Declaration
51 \*---------------------------------------------------------------------------*/
52 
53 class saturationModel
54 :
55  public IOdictionary
56 {
57 public:
58 
59  //- Runtime type information
60  TypeName("saturationModel");
61 
62 
63  //- Declare runtime construction
65  (
66  autoPtr,
68  dictionary,
69  (
70  const dictionary& dict, const phasePair& pair
71  ),
72  (dict, pair)
73  );
74 
75 
76  // Constructors
77 
78  //- Construct null
79  saturationModel(const phasePair& pair);
80 
81  //- Disallow default bitwise copy construction
82  saturationModel(const saturationModel&) = delete;
83 
84 
85  // Selectors
86 
87  //- Select null constructed
89  (
90  const dictionary& dict,
91  const phasePair& pair
92  );
93 
94 
95  //- Destructor
96  virtual ~saturationModel();
97 
98 
99  // Member Functions
100 
101  //- Saturation pressure
102  virtual tmp<volScalarField> pSat
103  (
104  const volScalarField& T
105  ) const = 0;
106 
107  //- Saturation pressure derivative w.r.t. temperature
109  (
110  const volScalarField& T
111  ) const = 0;
112 
113  //- Natural log of the saturation pressure
115  (
116  const volScalarField& T
117  ) const = 0;
118 
119  //- Saturation temperature
120  virtual tmp<volScalarField> Tsat
121  (
122  const volScalarField& p
123  ) const = 0;
124 
125 
126  // Member Operators
127 
128  //- Disallow default bitwise assignment
129  void operator=(const saturationModel&) = delete;
130 };
131 
132 
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 
135 } // End namespace Foam
136 
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 
139 #endif
140 
141 // ************************************************************************* //
void operator=(const saturationModel &)=delete
Disallow default bitwise assignment.
dictionary dict
virtual tmp< volScalarField > lnPSat(const volScalarField &T) const =0
Natural log of the saturation pressure.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
declareRunTimeSelectionTable(autoPtr, saturationModel, dictionary,(const dictionary &dict, const phasePair &pair),(dict, pair))
Declare runtime construction.
static autoPtr< saturationModel > New(const dictionary &dict, const phasePair &pair)
Select null constructed.
virtual tmp< volScalarField > Tsat(const volScalarField &p) const =0
Saturation temperature.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Definition: IOdictionary.H:52
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
TypeName("saturationModel")
Runtime type information.
virtual tmp< volScalarField > pSat(const volScalarField &T) const =0
Saturation pressure.
virtual ~saturationModel()
Destructor.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
Macros to ease declaration of run-time selection tables.
volScalarField & p
A class for managing temporary objects.
Definition: PtrList.H:53
saturationModel(const phasePair &pair)
Construct null.
virtual tmp< volScalarField > pSatPrime(const volScalarField &T) const =0
Saturation pressure derivative w.r.t. temperature.
Namespace for OpenFOAM.