LRR.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) 2011-2016 OpenFOAM Foundation
9 Copyright (C) 2019-2021 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::LRR
29
30Group
31 grpRASTurbulence
32
33Description
34 Launder, Reece and Rodi Reynolds-stress turbulence model for
35 incompressible and compressible flows.
36
37 Reference:
38 \verbatim
39 Launder, B. E., Reece, G. J., & Rodi, W. (1975).
40 Progress in the development of a Reynolds-stress turbulence closure.
41 Journal of fluid mechanics, 68(03), 537-566.
42 \endverbatim
43
44 Including the recommended generalized gradient diffusion model of
45 Daly and Harlow:
46 \verbatim
47 Daly, B. J., & Harlow, F. H. (1970).
48 Transport equations in turbulence.
49 Physics of Fluids (1958-1988), 13(11), 2634-2649.
50 \endverbatim
51
52 Optional Gibson-Launder wall-reflection is also provided:
53 \verbatim
54 Gibson, M. M., & Launder, B. E. (1978).
55 Ground effects on pressure fluctuations in the
56 atmospheric boundary layer.
57 Journal of Fluid Mechanics, 86(03), 491-511.
58 \endverbatim
59
60 The default model coefficients are:
61 \verbatim
62 LRRCoeffs
63 {
64 Cmu 0.09;
65 C1 1.8;
66 C2 0.6;
67 Ceps1 1.44;
68 Ceps2 1.92;
69 Cs 0.25;
70 Ceps 0.15;
71
72 wallReflection yes;
73 kappa 0.41
74 Cref1 0.5;
75 Cref2 0.3;
76
77 couplingFactor 0.0;
78 }
79 \endverbatim
80
81SourceFiles
82 LRR.C
83
84\*---------------------------------------------------------------------------*/
85
86#ifndef LRR_H
87#define LRR_H
88
89#include "RASModel.H"
90#include "ReynoldsStress.H"
91
92// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
93
94namespace Foam
95{
96namespace RASModels
97{
98
99/*---------------------------------------------------------------------------*\
100 Class LRR Declaration
101\*---------------------------------------------------------------------------*/
102
103template<class BasicTurbulenceModel>
104class LRR
105:
106 public ReynoldsStress<RASModel<BasicTurbulenceModel>>
107{
108 // Private Member Functions
109
110 //- No copy construct
111 LRR(const LRR&) = delete;
112
113 //- No copy assignment
114 void operator=(const LRR&) = delete;
115
116
117protected:
118
119 // Protected data
120
121 // Model coefficients
132
133
134 // Wall-refection coefficients
140
141
142 // Fields
146
147
148 // Protected Member Functions
149
150 //- Update the eddy-viscosity
151 virtual void correctNut();
152
153
154public:
156 typedef typename BasicTurbulenceModel::alphaField alphaField;
157 typedef typename BasicTurbulenceModel::rhoField rhoField;
158 typedef typename BasicTurbulenceModel::transportModel transportModel;
159
160
161 //- Runtime type information
162 TypeName("LRR");
163
164
165 // Constructors
166
167 //- Construct from components
168 LRR
169 (
170 const alphaField& alpha,
171 const rhoField& rho,
172 const volVectorField& U,
173 const surfaceScalarField& alphaRhoPhi,
174 const surfaceScalarField& phi,
175 const transportModel& transport,
176 const word& propertiesName = turbulenceModel::propertiesName,
177 const word& type = typeName
178 );
179
180
181 //- Destructor
182 virtual ~LRR() = default;
183
184
185 // Member Functions
186
187 //- Read model coefficients if they have changed
188 virtual bool read();
189
190 //- Return the turbulence kinetic energy
191 virtual tmp<volScalarField> k() const
192 {
193 return k_;
194 }
195
196 //- Return the turbulence kinetic energy dissipation rate
197 virtual tmp<volScalarField> epsilon() const
198 {
199 return epsilon_;
200 }
201
202 //- Return the effective diffusivity for R
204
205 //- Return the effective diffusivity for epsilon
207
208 //- Solve the turbulence equations and correct eddy-Viscosity and
209 // related properties
210 virtual void correct();
211};
212
213
214// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
215
216} // End namespace RASModels
217} // End namespace Foam
218
219// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
220
221#ifdef NoRepository
222 #include "LRR.C"
223#endif
224
225// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
226
227#endif
228
229// ************************************************************************* //
surfaceScalarField & phi
Launder, Reece and Rodi Reynolds-stress turbulence model for incompressible and compressible flows.
Definition: LRR.H:106
volScalarField epsilon_
Definition: LRR.H:144
BasicTurbulenceModel::alphaField alphaField
Definition: LRR.H:155
tmp< volSymmTensorField > DepsilonEff() const
Return the effective diffusivity for epsilon.
Definition: LRR.C:259
TypeName("LRR")
Runtime type information.
BasicTurbulenceModel::rhoField rhoField
Definition: LRR.H:156
volScalarField k_
Definition: LRR.H:143
dimensionedScalar C1_
Definition: LRR.H:124
virtual void correct()
Solve the turbulence equations and correct eddy-Viscosity and.
Definition: LRR.C:273
dimensionedScalar Ceps2_
Definition: LRR.H:128
dimensionedScalar kappa_
Definition: LRR.H:136
tmp< volSymmTensorField > DREff() const
Return the effective diffusivity for R.
Definition: LRR.C:245
dimensionedScalar C2_
Definition: LRR.H:125
dimensionedScalar Cref1_
Definition: LRR.H:137
virtual void correctNut()
Update the eddy-viscosity.
Definition: LRR.C:43
dimensionedScalar Cs_
Definition: LRR.H:129
BasicTurbulenceModel::transportModel transportModel
Definition: LRR.H:157
Switch wallReflection_
Definition: LRR.H:135
virtual ~LRR()=default
Destructor.
dimensionedScalar Ceps1_
Definition: LRR.H:127
dimensionedScalar Cmu_
Definition: LRR.H:122
virtual tmp< volScalarField > k() const
Return the turbulence kinetic energy.
Definition: LRR.H:190
dimensionedScalar Cref2_
Definition: LRR.H:138
dimensionedScalar Ceps_
Definition: LRR.H:130
virtual tmp< volScalarField > epsilon() const
Return the turbulence kinetic energy dissipation rate.
Definition: LRR.H:196
virtual bool read()
Read model coefficients if they have changed.
Definition: LRR.C:220
Reynolds-stress turbulence model base class.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
Definition: Switch.H:78
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