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 | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2014-2015 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::turbulentDispersionModel
28 
29 Description
30 
31 SourceFiles
32  turbulentDispersionModel.C
33  newTurbulentDispersionModel.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef turbulentDispersionModel_H
38 #define turbulentDispersionModel_H
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 #include "volFields.H"
43 #include "dictionary.H"
44 #include "runTimeSelectionTables.H"
45 
46 namespace Foam
47 {
48 
49 class phasePair;
50 
51 /*---------------------------------------------------------------------------*\
52  Class turbulentDispersionModel Declaration
53 \*---------------------------------------------------------------------------*/
54 
55 class turbulentDispersionModel
56 {
57 protected:
58 
59  // Protected data
60 
61  //- Phase pair
62  const phasePair& pair_;
63 
64 
65 public:
66 
67  //- Runtime type information
68  TypeName("turbulentDispersionModel");
69 
70 
71  // Declare runtime construction
72 
74  (
75  autoPtr,
77  dictionary,
78  (
79  const dictionary& dict,
80  const phasePair& pair
81  ),
82  (dict, pair)
83  );
84 
85  // Static data members
86 
87  //- Diffusivity dimensions
88  static const dimensionSet dimD;
89 
90  //- Force dimensions
91  static const dimensionSet dimF;
92 
93 
94  // Constructors
95 
96  //- Construct from a dictionary and a phase pair
98  (
99  const dictionary& dict,
100  const phasePair& pair
101  );
102 
103 
104  //- Destructor
105  virtual ~turbulentDispersionModel();
106 
107 
108  // Selectors
109 
110  static autoPtr<turbulentDispersionModel> New
111  (
112  const dictionary& dict,
113  const phasePair& pair
114  );
115 
116 
117  // Member Functions
118 
119  //- Turbulent diffusivity
120  // multiplying the gradient of the phase-fraction
121  virtual tmp<volScalarField> D() const = 0;
122 
123  //- Turbulent dispersion force
124  virtual tmp<volVectorField> F() const;
125 };
126 
127 
128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 
130 } // End namespace Foam
131 
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
133 
134 #endif
135 
136 // ************************************************************************* //
volFields.H
Foam::turbulentDispersionModel::turbulentDispersionModel
turbulentDispersionModel(const dictionary &dict, const phasePair &pair)
Construct from a dictionary and a phase pair.
Definition: turbulentDispersionModel.C:52
Foam::turbulentDispersionModel::pair_
const phasePair & pair_
Phase pair.
Definition: turbulentDispersionModel.H:62
Foam::turbulentDispersionModel::F
virtual tmp< volVectorField > F() const
Turbulent dispersion force.
Definition: turbulentDispersionModel.C:85
Foam::turbulentDispersionModel::New
static autoPtr< turbulentDispersionModel > New(const dictionary &dict, const phasePair &pair)
Definition: newTurbulentDispersionModel.C:36
Foam::turbulentDispersionModel::D
virtual tmp< volScalarField > D() const =0
Turbulent diffusivity.
Foam::turbulentDispersionModel::~turbulentDispersionModel
virtual ~turbulentDispersionModel()
Destructor.
Definition: turbulentDispersionModel.C:63
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::turbulentDispersionModel::dimD
static const dimensionSet dimD
Diffusivity dimensions.
Definition: turbulentDispersionModel.H:88
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::turbulentDispersionModel::dimF
static const dimensionSet dimF
Force dimensions.
Definition: turbulentDispersionModel.H:91
Foam::turbulentDispersionModel::declareRunTimeSelectionTable
declareRunTimeSelectionTable(autoPtr, turbulentDispersionModel, dictionary,(const dictionary &dict, const phasePair &pair),(dict, pair))
Foam::turbulentDispersionModel::TypeName
TypeName("turbulentDispersionModel")
Runtime type information.
runTimeSelectionTables.H
Macros to ease declaration of run-time selection tables.
dictionary.H