turbulentDispersionModel.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 2014-2015 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 
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 
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  //- Turbulent dispersion force on faces
125  virtual tmp<surfaceScalarField> Ff() const;
126 };
127 
128 
129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130 
131 } // End namespace Foam
132 
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 
135 #endif
136 
137 // ************************************************************************* //
static const dimensionSet dimF
Force dimensions.
TypeName("turbulentDispersionModel")
Runtime type information.
virtual tmp< surfaceScalarField > Ff() const
Turbulent dispersion force on faces.
Macros to ease declaration of run-time selection tables.
const phasePair & pair_
Phase pair.
turbulentDispersionModel(const dictionary &dict, const phasePair &pair)
Construct from a dictionary and a phase pair.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
Namespace for OpenFOAM.
dictionary dict
virtual ~turbulentDispersionModel()
Destructor.
Dimension set for the base types.
Definition: dimensionSet.H:116
static autoPtr< turbulentDispersionModel > New(const dictionary &dict, const phasePair &pair)
static const dimensionSet dimD
Diffusivity dimensions.
virtual tmp< volScalarField > D() const =0
Turbulent diffusivity.
virtual tmp< volVectorField > F() const
Turbulent dispersion force.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:117
A class for managing temporary objects.
Definition: PtrList.H:118
declareRunTimeSelectionTable(autoPtr, turbulentDispersionModel, dictionary,( const dictionary &dict, const phasePair &pair ),(dict, pair))