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-2018 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 #include "phaseCompressibleTurbulenceModelFwd.H"
46 
47 namespace Foam
48 {
49 
50 class phasePair;
51 
52 /*---------------------------------------------------------------------------*\
53  Class turbulentDispersionModel Declaration
54 \*---------------------------------------------------------------------------*/
55 
57 {
58 protected:
59 
60  // Protected data
61 
62  //- Phase pair
63  const phasePair& pair_;
64 
65 
66 public:
67 
68  //- Runtime type information
69  TypeName("turbulentDispersionModel");
70 
71 
72  // Declare runtime construction
73 
75  (
76  autoPtr,
78  dictionary,
79  (
80  const dictionary& dict,
81  const phasePair& pair
82  ),
83  (dict, pair)
84  );
85 
86  // Static data members
87 
88  //- Diffusivity dimensions
89  static const dimensionSet dimD;
90 
91  //- Force dimensions
92  static const dimensionSet dimF;
93 
94 
95  // Constructors
96 
97  //- Construct from a dictionary and a phase pair
99  (
100  const dictionary& dict,
101  const phasePair& pair
102  );
103 
104 
105  //- Destructor
106  virtual ~turbulentDispersionModel();
107 
108 
109  // Selectors
110 
112  (
113  const dictionary& dict,
114  const phasePair& pair
115  );
116 
117 
118  // Member Functions
119 
120  //- Return a reference to the turbulence model for the continuous phase
122 
123  //- Turbulent diffusivity
124  // multiplying the gradient of the phase-fraction
125  virtual tmp<volScalarField> D() const = 0;
126 
127  //- Turbulent dispersion force
128  virtual tmp<volVectorField> F() const;
129 
130  //- Turbulent dispersion force on faces
131  virtual tmp<surfaceScalarField> Ff() const;
132 };
133 
134 
135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 
137 } // End namespace Foam
138 
139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
140 
141 #endif
142 
143 // ************************************************************************* //
volFields.H
Foam::phasePair
Description for mass transfer between a pair of phases. The direction of the mass transfer is from th...
Definition: phasePair.H:51
Foam::turbulentDispersionModel::turbulentDispersionModel
turbulentDispersionModel(const dictionary &dict, const phasePair &pair)
Construct from a dictionary and a phase pair.
Definition: turbulentDispersionModel.C:52
Foam::turbulentDispersionModel
Definition: turbulentDispersionModel.H:55
Foam::tmp< volScalarField >
Foam::turbulentDispersionModel::pair_
const phasePair & pair_
Phase pair.
Definition: turbulentDispersionModel.H:62
Foam::dimensionSet
Dimension set for the base types.
Definition: dimensionSet.H:65
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::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:121
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.
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
Foam::turbulentDispersionModel::Ff
virtual tmp< surfaceScalarField > Ff() const
Turbulent dispersion force on faces.
Definition: turbulentDispersionModel.C:92
runTimeSelectionTables.H
Macros to ease declaration of run-time selection tables.
Foam::ThermalDiffusivity
Templated wrapper class to provide compressible turbulence models thermal diffusivity based thermal t...
Definition: phaseCompressibleTurbulenceModelFwd.H:47
Foam::turbulentDispersionModel::continuousTurbulence
const phaseCompressibleTurbulenceModel & continuousTurbulence() const
Return a reference to the turbulence model for the continuous phase.
Definition: turbulentDispersionModel.C:70
dictionary.H