phaseTransferModel.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) 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::phaseTransferModel
26 
27 Description
28 
29 SourceFiles
30  phaseTransferModel.C
31 
32 \*---------------------------------------------------------------------------*/
33 
34 #ifndef phaseTransferModel_H
35 #define phaseTransferModel_H
36 
37 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
38 
39 #include "volFields.H"
40 #include "dictionary.H"
41 #include "runTimeSelectionTables.H"
42 
43 namespace Foam
44 {
45 
46 class phasePair;
47 
48 /*---------------------------------------------------------------------------*\
49  Class phaseTransferModel Declaration
50 \*---------------------------------------------------------------------------*/
51 
53 {
54 protected:
55 
56  // Protected data
57 
58  //- Phase pair
59  const phasePair& pair_;
60 
61 
62 public:
63 
64  //- Runtime type information
65  TypeName("phaseTransferModel");
66 
67 
68  // Declare runtime construction
69 
71  (
72  autoPtr,
74  dictionary,
75  (
76  const dictionary& dict,
77  const phasePair& pair
78  ),
79  (dict, pair)
80  );
81 
82 
83  // Static data members
84 
85  //- Mass transfer rate dimensions
86  static const dimensionSet dimDmdt;
87 
88 
89  // Constructors
90 
91  //- Construct from a dictionary and a phase pair
93  (
94  const dictionary& dict,
95  const phasePair& pair
96  );
97 
98 
99  //- Destructor
100  virtual ~phaseTransferModel();
101 
102 
103  // Selectors
104 
106  (
107  const dictionary& dict,
108  const phasePair& pair
109  );
110 
111 
112  // Member Functions
113 
114  //- The mass transfer rate
115  virtual tmp<volScalarField> dmdt() const = 0;
116 };
117 
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 } // End namespace Foam
122 
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 
125 #endif
126 
127 // ************************************************************************* //
phaseTransferModel(const dictionary &dict, const phasePair &pair)
Construct from a dictionary and a phase pair.
dictionary dict
static const dimensionSet dimDmdt
Mass transfer rate dimensions.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
const phasePair & pair_
Phase pair.
TypeName("phaseTransferModel")
Runtime type information.
virtual ~phaseTransferModel()
Destructor.
declareRunTimeSelectionTable(autoPtr, phaseTransferModel, dictionary,(const dictionary &dict, const phasePair &pair),(dict, pair))
Dimension set for the base types.
Definition: dimensionSet.H:120
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.
static autoPtr< phaseTransferModel > New(const dictionary &dict, const phasePair &pair)
virtual tmp< volScalarField > dmdt() const =0
The mass transfer rate.
A class for managing temporary objects.
Definition: PtrList.H:53
Namespace for OpenFOAM.