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  Copyright (C) 2020 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 Class
28  Foam::turbulentDispersionModel
29 
30 Description
31 
32 SourceFiles
33  turbulentDispersionModel.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 // Forward Declarations
51 class phasePair;
52 
53 /*---------------------------------------------------------------------------*\
54  Class turbulentDispersionModel Declaration
55 \*---------------------------------------------------------------------------*/
56 
58 {
59 protected:
60 
61  // Protected Data
62 
63  //- Phase pair
64  const phasePair& pair_;
65 
66 
67 public:
68 
69  //- Runtime type information
70  TypeName("turbulentDispersionModel");
71 
72 
73  // Declare runtime construction
74 
76  (
77  autoPtr,
79  dictionary,
80  (
81  const dictionary& dict,
82  const phasePair& pair
83  ),
84  (dict, pair)
85  );
86 
87  // Static Data Members
88 
89  //- Diffusivity dimensions
90  static const dimensionSet dimD;
91 
92  //- Force dimensions
93  static const dimensionSet dimF;
94 
95 
96  // Constructors
97 
98  //- Construct from a dictionary and a phase pair
100  (
101  const dictionary& dict,
102  const phasePair& pair
103  );
104 
105 
106  //- Destructor
107  virtual ~turbulentDispersionModel() = default;
108 
109 
110  // Selectors
111 
113  (
114  const dictionary& dict,
115  const phasePair& pair
116  );
117 
118 
119  // Member Functions
120 
121  //- Return a reference to the turbulence model for the continuous phase
123 
124  //- Turbulent diffusivity
125  // multiplying the gradient of the phase-fraction
126  virtual tmp<volScalarField> D() const = 0;
127 
128  //- Turbulent dispersion force
129  virtual tmp<volVectorField> F() const;
130 
131  //- Turbulent dispersion force on faces
132  virtual tmp<surfaceScalarField> Ff() const;
133 };
134 
135 
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137 
138 } // End namespace Foam
139 
140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141 
142 #endif
143 
144 // ************************************************************************* //
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:53
Foam::turbulentDispersionModel::turbulentDispersionModel
turbulentDispersionModel(const dictionary &dict, const phasePair &pair)
Construct from a dictionary and a phase pair.
Definition: turbulentDispersionModel.C:53
Foam::turbulentDispersionModel
Definition: turbulentDispersionModel.H:56
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::turbulentDispersionModel::pair_
const phasePair & pair_
Phase pair.
Definition: turbulentDispersionModel.H:63
Foam::dimensionSet
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
Definition: dimensionSet.H:108
Foam::turbulentDispersionModel::F
virtual tmp< volVectorField > F() const
Turbulent dispersion force.
Definition: turbulentDispersionModel.C:111
Foam::turbulentDispersionModel::New
static autoPtr< turbulentDispersionModel > New(const dictionary &dict, const phasePair &pair)
Definition: turbulentDispersionModel.C:66
Foam::turbulentDispersionModel::D
virtual tmp< volScalarField > D() const =0
Turbulent diffusivity.
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:123
Foam::turbulentDispersionModel::dimD
static const dimensionSet dimD
Diffusivity dimensions.
Definition: turbulentDispersionModel.H:89
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::turbulentDispersionModel::dimF
static const dimensionSet dimF
Force dimensions.
Definition: turbulentDispersionModel.H:92
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:118
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:96
dictionary.H
Foam::turbulentDispersionModel::~turbulentDispersionModel
virtual ~turbulentDispersionModel()=default
Destructor.