1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM. 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 \*---------------------------------------------------------------------------*/
81 dimensionedScalar Cmu_;
83 dimensionedScalar Clrr1_;
84 dimensionedScalar Clrr2_;
86 dimensionedScalar C1_;
87 dimensionedScalar C2_;
88 dimensionedScalar Cs_;
89 dimensionedScalar Ceps_;
90 dimensionedScalar sigmaEps_;
92 dimensionedScalar couplingFactor_;
97 volSymmTensorField R_;
99 volScalarField epsilon_;
105 //- Runtime type information
110 //- Construct from components
113 const volVectorField& U,
114 const surfaceScalarField& phi,
115 transportModel& transport,
116 const word& turbulenceModelName = turbulenceModel::typeName,
117 const word& modelName = typeName
128 //- Return the turbulence viscosity
129 virtual tmp<volScalarField> nut() const
134 //- Return the effective diffusivity for R
135 tmp<volScalarField> DREff() const
137 return tmp<volScalarField>
139 new volScalarField("DREff", nut_ + nu())
143 //- Return the effective diffusivity for epsilon
144 tmp<volScalarField> DepsilonEff() const
146 return tmp<volScalarField>
148 new volScalarField("DepsilonEff", nut_/sigmaEps_ + nu())
152 //- Return the turbulence kinetic energy
153 virtual tmp<volScalarField> k() const
158 //- Return the turbulence kinetic energy dissipation rate
159 virtual tmp<volScalarField> epsilon() const
164 //- Return the Reynolds stress tensor
165 virtual tmp<volSymmTensorField> R() const
170 //- Return the effective stress tensor including the laminar stress
171 virtual tmp<volSymmTensorField> devReff() const;
173 //- Return the source term for the momentum equation
174 virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const;
176 //- Solve the turbulence equations and correct the turbulence viscosity
177 virtual void correct();
179 //- Read RASProperties dictionary
184 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
186 } // End namespace RASModels
187 } // End namespace incompressible
188 } // End namespace Foam
190 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
194 // ************************************************************************* //