LaheyKEpsilon.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) 2013-2016 OpenFOAM Foundation
9 Copyright (C) 2019 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
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
27Class
28 Foam::RASModels::LaheyKEpsilon
29
30Group
31 grpRASTurbulence
32
33Description
34 Continuous-phase k-epsilon model including bubble-generated turbulence.
35
36 Reference:
37 \verbatim
38 Lahey Jr, R. T. (2005).
39 The simulation of multidimensional multiphase flows.
40 Nuclear Engineering and Design, 235(10), 1043-1060.
41 \endverbatim
42
43 The default model coefficients are
44 \verbatim
45 LaheyKEpsilonCoeffs
46 {
47 Cmu 0.09;
48 C1 1.44;
49 C2 1.92;
50 C3 -0.33;
51 sigmak 1.0;
52 sigmaEps 1.3;
53 Cp 0.25;
54 Cmub 0.6;
55 alphaInversion 0.3;
56 }
57 \endverbatim
58
59SourceFiles
60 LaheyKEpsilon.C
61
62\*---------------------------------------------------------------------------*/
63
64#ifndef LaheyKEpsilon_H
65#define LaheyKEpsilon_H
66
67#include "kEpsilon.H"
68
69// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
70
71namespace Foam
72{
73namespace RASModels
74{
75
76/*---------------------------------------------------------------------------*\
77 Class LaheyKEpsilon Declaration
78\*---------------------------------------------------------------------------*/
79
80template<class BasicTurbulenceModel>
81class LaheyKEpsilon
82:
83 public kEpsilon<BasicTurbulenceModel>
84{
85 // Private data
86
88 <
89 typename BasicTurbulenceModel::transportModel
90 > *gasTurbulencePtr_;
91
92
93 // Private Member Functions
94
95 //- Return the turbulence model for the gas phase
97 <
98 typename BasicTurbulenceModel::transportModel
99 >&
100 gasTurbulence() const;
101
102 //- No copy construct
103 LaheyKEpsilon(const LaheyKEpsilon&) = delete;
104
105 //- No copy assignment
106 void operator=(const LaheyKEpsilon&) = delete;
107
108
109protected:
110
111 // Protected data
112
113 // Model coefficients
119
120
121 // Protected Member Functions
122
123 virtual void correctNut();
126 virtual tmp<fvScalarMatrix> kSource() const;
127 virtual tmp<fvScalarMatrix> epsilonSource() const;
128
129
130public:
132 typedef typename BasicTurbulenceModel::alphaField alphaField;
133 typedef typename BasicTurbulenceModel::rhoField rhoField;
134 typedef typename BasicTurbulenceModel::transportModel transportModel;
135
136
137 //- Runtime type information
138 TypeName("LaheyKEpsilon");
139
140
141 // Constructors
142
143 //- Construct from components
145 (
146 const alphaField& alpha,
147 const rhoField& rho,
148 const volVectorField& U,
149 const surfaceScalarField& alphaRhoPhi,
150 const surfaceScalarField& phi,
151 const transportModel& transport,
152 const word& propertiesName = turbulenceModel::propertiesName,
153 const word& type = typeName
154 );
155
156
157 //- Destructor
158 virtual ~LaheyKEpsilon() = default;
159
160
161 // Member Functions
162
163 //- Read model coefficients if they have changed
164 virtual bool read();
165
166 //- Solve the turbulence equations and correct the turbulence viscosity
167 virtual void correct();
168};
169
170
171// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
172
173} // End namespace RASModels
174} // End namespace Foam
175
176// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
177
178#ifdef NoRepository
179 #include "LaheyKEpsilon.C"
180#endif
181
182// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
183
184#endif
185
186// ************************************************************************* //
surfaceScalarField & phi
Templated abstract base class for multiphase compressible turbulence models.
Continuous-phase k-epsilon model including bubble-generated turbulence.
Definition: LaheyKEpsilon.H:83
BasicTurbulenceModel::alphaField alphaField
virtual tmp< fvScalarMatrix > epsilonSource() const
BasicTurbulenceModel::rhoField rhoField
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
dimensionedScalar alphaInversion_
tmp< volScalarField > bubbleG() const
tmp< volScalarField > phaseTransferCoeff() const
virtual tmp< fvScalarMatrix > kSource() const
BasicTurbulenceModel::transportModel transportModel
virtual ~LaheyKEpsilon()=default
Destructor.
TypeName("LaheyKEpsilon")
Runtime type information.
virtual bool read()
Read model coefficients if they have changed.
Standard k-epsilon turbulence model for incompressible and compressible flows including rapid distort...
Definition: kEpsilon.H:92
A class for managing temporary objects.
Definition: tmp.H:65
static const word propertiesName
Default name of the turbulence properties dictionary.
A class for handling words, derived from Foam::string.
Definition: word.H:68
U
Definition: pEqn.H:72
Namespace for OpenFOAM.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Definition: MSwindows.C:598
volScalarField & alpha
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73