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-2018 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  newSaturationModel.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 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 
48 /*---------------------------------------------------------------------------*\
49  Class saturationModel Declaration
50 \*---------------------------------------------------------------------------*/
51 
52 class saturationModel
53 :
54  public IOdictionary
55 {
56  // Private Member Functions
57 
58  //- Disallow default bitwise copy construct
60 
61  //- Disallow default bitwise assignment
62  void operator=(const saturationModel&);
63 
64 
65 public:
66 
67  //- Runtime type information
68  TypeName("saturationModel");
69 
70 
71  //- Declare runtime construction
73  (
74  autoPtr,
76  dictionary,
77  (
78  const dictionary& dict, const objectRegistry& db
79  ),
80  (dict, db)
81  );
82 
83 
84  // Constructors
85 
86  //- Construct null
88 
89 
90  // Selectors
91 
92  //- Select null constructed
94  (
95  const dictionary& dict,
96  const objectRegistry& db
97  );
98 
99 
100  //- Destructor
101  virtual ~saturationModel();
102 
103 
104  // Member Functions
105 
106  //- Saturation pressure
107  virtual tmp<volScalarField> pSat
108  (
109  const volScalarField& T
110  ) const = 0;
111 
112  //- Saturation pressure derivetive w.r.t. temperature
114  (
115  const volScalarField& T
116  ) const = 0;
117 
118  //- Natural log of the saturation pressure
120  (
121  const volScalarField& T
122  ) const = 0;
123 
124  //- Saturation temperature
125  virtual tmp<volScalarField> Tsat
126  (
127  const volScalarField& p
128  ) const = 0;
129 };
130 
131 
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
133 
134 } // End namespace Foam
135 
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137 
138 #endif
139 
140 // ************************************************************************* //
dictionary dict
virtual tmp< volScalarField > lnPSat(const volScalarField &T) const =0
Natural log of the saturation pressure.
static autoPtr< saturationModel > New(const dictionary &dict, const objectRegistry &db)
Select null constructed.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
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.
declareRunTimeSelectionTable(autoPtr, saturationModel, dictionary,(const dictionary &dict, const objectRegistry &db),(dict, db))
Declare runtime construction.
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
Registry of regIOobjects.
const objectRegistry & db() const
Return the local objectRegistry.
Definition: IOobject.C:361
virtual tmp< volScalarField > pSatPrime(const volScalarField &T) const =0
Saturation pressure derivetive w.r.t. temperature.
Namespace for OpenFOAM.