1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
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::kEpsilon
28 Standard k-epsilon turbulence model for incompressible flows.
30 The default model coefficients correspond to the following:
44 \*---------------------------------------------------------------------------*/
51 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
55 namespace incompressible
60 /*---------------------------------------------------------------------------*\
61 Class kEpsilon Declaration
62 \*---------------------------------------------------------------------------*/
75 dimensionedScalar Cmu_;
76 dimensionedScalar C1_;
77 dimensionedScalar C2_;
78 dimensionedScalar sigmaEps_;
84 volScalarField epsilon_;
90 //- Runtime type information
95 //- Construct from components
98 const volVectorField& U,
99 const surfaceScalarField& phi,
100 transportModel& transport,
101 const word& turbulenceModelName = turbulenceModel::typeName,
102 const word& modelName = typeName
113 //- Return the turbulence viscosity
114 virtual tmp<volScalarField> nut() const
119 //- Return the effective diffusivity for k
120 tmp<volScalarField> DkEff() const
122 return tmp<volScalarField>
124 new volScalarField("DkEff", nut_ + nu())
128 //- Return the effective diffusivity for epsilon
129 tmp<volScalarField> DepsilonEff() const
131 return tmp<volScalarField>
133 new volScalarField("DepsilonEff", nut_/sigmaEps_ + nu())
137 //- Return the turbulence kinetic energy
138 virtual tmp<volScalarField> k() const
143 //- Return the turbulence kinetic energy dissipation rate
144 virtual tmp<volScalarField> epsilon() const
149 //- Return the Reynolds stress tensor
150 virtual tmp<volSymmTensorField> R() const;
152 //- Return the effective stress tensor including the laminar stress
153 virtual tmp<volSymmTensorField> devReff() const;
155 //- Return the source term for the momentum equation
156 virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const;
158 //- Solve the turbulence equations and correct the turbulence viscosity
159 virtual void correct();
161 //- Read RASProperties dictionary
166 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
168 } // End namespace RASModels
169 } // End namespace incompressible
170 } // End namespace Foam
172 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
176 // ************************************************************************* //