1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2008 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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 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, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::incompressible::RASModels::RNGkEpsilon
29 Renormalisation group k-epsilon turbulence model for incompressible flows.
31 The default model coefficients correspond to the following:
38 C3 -0.33; // only for compressible
39 alphah 1.0; // only for compressible
50 \*---------------------------------------------------------------------------*/
57 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
61 namespace incompressible
66 /*---------------------------------------------------------------------------*\
67 Class RNGkEpsilon Declaration
68 \*---------------------------------------------------------------------------*/
76 dimensionedScalar Cmu_;
77 dimensionedScalar C1_;
78 dimensionedScalar C2_;
79 dimensionedScalar alphak_;
80 dimensionedScalar alphaEps_;
81 dimensionedScalar eta0_;
82 dimensionedScalar beta_;
85 volScalarField epsilon_;
91 //- Runtime type information
92 TypeName("RNGkEpsilon");
99 const volVectorField& U,
100 const surfaceScalarField& phi,
101 transportModel& transport
113 //- Return the turbulence viscosity
114 tmp<volScalarField> nut() const
119 //- Return the effective diffusivity for k
120 tmp<volScalarField> DkEff() const
122 return tmp<volScalarField>
124 new volScalarField("DkEff", alphak_*nut_ + nu())
128 //- Return the effective diffusivity for epsilon
129 tmp<volScalarField> DepsilonEff() const
131 return tmp<volScalarField>
133 new volScalarField("DepsilonEff", alphaEps_*nut_ + nu())
137 //- Return the turbulence kinetic energy
138 tmp<volScalarField> k() const
143 //- Return the turbulence kinetic energy dissipation rate
144 tmp<volScalarField> epsilon() const
149 //- Return the Reynolds stress tensor
150 tmp<volSymmTensorField> R() const;
152 //- Return the effective stress tensor including the laminar stress
153 tmp<volSymmTensorField> devReff() const;
155 //- Return the source term for the momentum equation
156 tmp<fvVectorMatrix> divDevReff(volVectorField& U) const;
158 //- Solve the turbulence equations and correct the turbulence viscosity
161 //- Read turbulenceProperties dictionary
166 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
168 } // End namespace RASModels
169 } // End namespace incompressible
170 } // End namespace Foam
172 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
176 // ************************************************************************* //