1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation, either version 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
25 Foam::incompressible::RASModels::LRR
28 Launder, Reece and Rodi Reynolds-stress turbulence model for
31 The default model coefficients correspond to the following:
43 couplingFactor 0.0; // only for incompressible
50 \*---------------------------------------------------------------------------*/
57 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
61 namespace incompressible
66 /*---------------------------------------------------------------------------*\
68 \*---------------------------------------------------------------------------*/
78 dimensionedScalar Cmu_;
80 dimensionedScalar Clrr1_;
81 dimensionedScalar Clrr2_;
83 dimensionedScalar C1_;
84 dimensionedScalar C2_;
85 dimensionedScalar Cs_;
86 dimensionedScalar Ceps_;
87 dimensionedScalar sigmaEps_;
89 dimensionedScalar couplingFactor_;
94 volSymmTensorField R_;
96 volScalarField epsilon_;
102 //- Runtime type information
107 //- Construct from components
110 const volVectorField& U,
111 const surfaceScalarField& phi,
112 transportModel& transport
124 //- Return the turbulence viscosity
125 virtual tmp<volScalarField> nut() const
130 //- Return the effective diffusivity for R
131 tmp<volScalarField> DREff() const
133 return tmp<volScalarField>
135 new volScalarField("DREff", nut_ + nu())
139 //- Return the effective diffusivity for epsilon
140 tmp<volScalarField> DepsilonEff() const
142 return tmp<volScalarField>
144 new volScalarField("DepsilonEff", nut_/sigmaEps_ + nu())
148 //- Return the turbulence kinetic energy
149 virtual tmp<volScalarField> k() const
154 //- Return the turbulence kinetic energy dissipation rate
155 virtual tmp<volScalarField> epsilon() const
160 //- Return the Reynolds stress tensor
161 virtual tmp<volSymmTensorField> R() const
166 //- Return the effective stress tensor including the laminar stress
167 virtual tmp<volSymmTensorField> devReff() const;
169 //- Return the source term for the momentum equation
170 virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const;
172 //- Solve the turbulence equations and correct the turbulence viscosity
173 virtual void correct();
175 //- Read RASProperties dictionary
180 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
182 } // End namespace RASModels
183 } // End namespace incompressible
184 } // End namespace Foam
186 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
190 // ************************************************************************* //