turbulentDispersionModel.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) 2014-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::turbulentDispersionModel
26 
27 Description
28 
29 SourceFiles
30  turbulentDispersionModel.C
31  newTurbulentDispersionModel.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef turbulentDispersionModel_H
36 #define turbulentDispersionModel_H
37 
38 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
39 
40 #include "volFields.H"
41 #include "dictionary.H"
42 #include "runTimeSelectionTables.H"
43 
44 namespace Foam
45 {
46 
47 class phasePair;
48 
49 /*---------------------------------------------------------------------------*\
50  Class turbulentDispersionModel Declaration
51 \*---------------------------------------------------------------------------*/
52 
53 class turbulentDispersionModel
54 {
55 protected:
56 
57  // Protected data
58 
59  //- Phase pair
60  const phasePair& pair_;
61 
62 
63 public:
64 
65  //- Runtime type information
66  TypeName("turbulentDispersionModel");
67 
68 
69  // Declare runtime construction
70 
72  (
73  autoPtr,
75  dictionary,
76  (
77  const dictionary& dict,
78  const phasePair& pair
79  ),
80  (dict, pair)
81  );
82 
83  // Static data members
84 
85  //- Diffusivity dimensions
86  static const dimensionSet dimD;
87 
88  //- Force dimensions
89  static const dimensionSet dimF;
90 
91 
92  // Constructors
93 
94  //- Construct from a dictionary and a phase pair
96  (
97  const dictionary& dict,
98  const phasePair& pair
99  );
100 
101 
102  //- Destructor
103  virtual ~turbulentDispersionModel();
104 
105 
106  // Selectors
107 
108  static autoPtr<turbulentDispersionModel> New
109  (
110  const dictionary& dict,
111  const phasePair& pair
112  );
113 
114 
115  // Member Functions
116 
117  //- Turbulent diffusivity
118  // multiplying the gradient of the phase-fraction
119  virtual tmp<volScalarField> D() const = 0;
120 
121  //- Turbulent dispersion force
122  virtual tmp<volVectorField> F() const;
123 };
124 
125 
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 
128 } // End namespace Foam
129 
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 
132 #endif
133 
134 // ************************************************************************* //
dictionary dict
declareRunTimeSelectionTable(autoPtr, turbulentDispersionModel, dictionary,(const dictionary &dict, const phasePair &pair),(dict, pair))
static const dimensionSet dimF
Force dimensions.
virtual tmp< volVectorField > F() const
Turbulent dispersion force.
static autoPtr< turbulentDispersionModel > New(const dictionary &dict, const phasePair &pair)
static const dimensionSet dimD
Diffusivity dimensions.
virtual tmp< volScalarField > D() const =0
Turbulent diffusivity.
const phasePair & pair_
Phase pair.
virtual ~turbulentDispersionModel()
Destructor.
TypeName("turbulentDispersionModel")
Runtime type information.
Macros to ease declaration of run-time selection tables.
turbulentDispersionModel(const dictionary &dict, const phasePair &pair)
Construct from a dictionary and a phase pair.
Namespace for OpenFOAM.