1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 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::LienLeschzinerLowRe
29 Lien and Leschziner low-Reynolds k-epsilon turbulence model for
35 \*---------------------------------------------------------------------------*/
37 #ifndef LienLeschzinerLowRe_H
38 #define LienLeschzinerLowRe_H
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 namespace incompressible
52 /*---------------------------------------------------------------------------*\
53 Class LienLeschzinerLowRe Declaration
54 \*---------------------------------------------------------------------------*/
56 class LienLeschzinerLowRe
64 dimensionedScalar C1_;
65 dimensionedScalar C2_;
66 dimensionedScalar sigmak_;
67 dimensionedScalar sigmaEps_;
68 dimensionedScalar Cmu_;
69 dimensionedScalar kappa_;
71 dimensionedScalar Am_;
72 dimensionedScalar Aepsilon_;
73 dimensionedScalar Amu_;
79 volScalarField epsilon_;
83 volScalarField yStar_;
90 TypeName("LienLeschzinerLowRe");
94 //- Construct from components
97 const volVectorField& U,
98 const surfaceScalarField& phi,
99 transportModel& transport
104 virtual ~LienLeschzinerLowRe()
110 //- Return the turbulence viscosity
111 virtual tmp<volScalarField> nut() const
116 //- Return the effective diffusivity for k
117 tmp<volScalarField> DkEff() const
119 return tmp<volScalarField>
121 new volScalarField("DkEff", nut_/sigmak_ + nu())
125 //- Return the effective diffusivity for epsilon
126 tmp<volScalarField> DepsilonEff() const
128 return tmp<volScalarField>
130 new volScalarField("DepsilonEff", nut_/sigmaEps_ + nu())
134 //- Return the turbulence kinetic energy
135 virtual tmp<volScalarField> k() const
140 //- Return the turbulence kinetic energy dissipation rate
141 virtual tmp<volScalarField> epsilon() const
146 //- Return the Reynolds stress tensor
147 virtual tmp<volSymmTensorField> R() const;
149 //- Return the effective stress tensor including the laminar stress
150 virtual tmp<volSymmTensorField> devReff() const;
152 //- Return the source term for the momentum equation
153 virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const;
155 //- Solve the turbulence equations and correct the turbulence viscosity
156 virtual void correct();
158 //- Read RASProperties dictionary
163 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
165 } // End namespace RASModels
166 } // End namespace incompressible
167 } // End namespace Foam
169 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
173 // ************************************************************************* //