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::RNGkEpsilon
28 Renormalisation group k-epsilon turbulence model for incompressible flows.
30 The default model coefficients correspond to the following:
47 \*---------------------------------------------------------------------------*/
54 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
58 namespace incompressible
63 /*---------------------------------------------------------------------------*\
64 Class RNGkEpsilon Declaration
65 \*---------------------------------------------------------------------------*/
78 dimensionedScalar Cmu_;
79 dimensionedScalar C1_;
80 dimensionedScalar C2_;
81 dimensionedScalar sigmak_;
82 dimensionedScalar sigmaEps_;
83 dimensionedScalar eta0_;
84 dimensionedScalar beta_;
90 volScalarField epsilon_;
96 //- Runtime type information
97 TypeName("RNGkEpsilon");
101 //- Construct from components
104 const volVectorField& U,
105 const surfaceScalarField& phi,
106 transportModel& transport,
107 const word& turbulenceModelName = turbulenceModel::typeName,
108 const word& modelName = typeName
113 virtual ~RNGkEpsilon()
119 //- Return the turbulence viscosity
120 virtual tmp<volScalarField> nut() const
125 //- Return the effective diffusivity for k
126 tmp<volScalarField> DkEff() const
128 return tmp<volScalarField>
130 new volScalarField("DkEff", nut_/sigmak_ + nu())
134 //- Return the effective diffusivity for epsilon
135 tmp<volScalarField> DepsilonEff() const
137 return tmp<volScalarField>
139 new volScalarField("DepsilonEff", nut_/sigmaEps_ + nu())
143 //- Return the turbulence kinetic energy
144 virtual tmp<volScalarField> k() const
149 //- Return the turbulence kinetic energy dissipation rate
150 virtual tmp<volScalarField> epsilon() const
155 //- Return the Reynolds stress tensor
156 virtual tmp<volSymmTensorField> R() const;
158 //- Return the effective stress tensor including the laminar stress
159 virtual tmp<volSymmTensorField> devReff() const;
161 //- Return the source term for the momentum equation
162 virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const;
164 //- Solve the turbulence equations and correct the turbulence viscosity
165 virtual void correct();
167 //- Read RASProperties dictionary
172 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
174 } // End namespace RASModels
175 } // End namespace incompressible
176 } // End namespace Foam
178 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
182 // ************************************************************************* //