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::LienLeschzinerLowRe
28 Lien and Leschziner low-Reynolds k-epsilon turbulence model for
34 \*---------------------------------------------------------------------------*/
36 #ifndef LienLeschzinerLowRe_H
37 #define LienLeschzinerLowRe_H
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 namespace incompressible
51 /*---------------------------------------------------------------------------*\
52 Class LienLeschzinerLowRe Declaration
53 \*---------------------------------------------------------------------------*/
55 class LienLeschzinerLowRe
66 dimensionedScalar C1_;
67 dimensionedScalar C2_;
68 dimensionedScalar sigmak_;
69 dimensionedScalar sigmaEps_;
70 dimensionedScalar Cmu_;
71 dimensionedScalar kappa_;
73 dimensionedScalar Am_;
74 dimensionedScalar Aepsilon_;
75 dimensionedScalar Amu_;
81 volScalarField epsilon_;
85 volScalarField yStar_;
92 TypeName("LienLeschzinerLowRe");
96 //- Construct from components
99 const volVectorField& U,
100 const surfaceScalarField& phi,
101 transportModel& transport,
102 const word& turbulenceModelName = turbulenceModel::typeName,
103 const word& modelName = typeName
108 virtual ~LienLeschzinerLowRe()
114 //- Return the turbulence viscosity
115 virtual tmp<volScalarField> nut() const
120 //- Return the effective diffusivity for k
121 tmp<volScalarField> DkEff() const
123 return tmp<volScalarField>
125 new volScalarField("DkEff", nut_/sigmak_ + nu())
129 //- Return the effective diffusivity for epsilon
130 tmp<volScalarField> DepsilonEff() const
132 return tmp<volScalarField>
134 new volScalarField("DepsilonEff", nut_/sigmaEps_ + nu())
138 //- Return the turbulence kinetic energy
139 virtual tmp<volScalarField> k() const
144 //- Return the turbulence kinetic energy dissipation rate
145 virtual tmp<volScalarField> epsilon() const
150 //- Return the Reynolds stress tensor
151 virtual tmp<volSymmTensorField> R() const;
153 //- Return the effective stress tensor including the laminar stress
154 virtual tmp<volSymmTensorField> devReff() const;
156 //- Return the source term for the momentum equation
157 virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const;
159 //- Solve the turbulence equations and correct the turbulence viscosity
160 virtual void correct();
162 //- Read RASProperties dictionary
167 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
169 } // End namespace RASModels
170 } // End namespace incompressible
171 } // End namespace Foam
173 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
177 // ************************************************************************* //