1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
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::LienCubicKE
29 Lien cubic non-linear k-epsilon turbulence model for incompressible flows.
34 \*---------------------------------------------------------------------------*/
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 namespace incompressible
50 /*---------------------------------------------------------------------------*\
51 Class LienCubicKE Declaration
52 \*---------------------------------------------------------------------------*/
62 dimensionedScalar C1_;
63 dimensionedScalar C2_;
64 dimensionedScalar sigmak_;
65 dimensionedScalar sigmaEps_;
66 dimensionedScalar A1_;
67 dimensionedScalar A2_;
68 dimensionedScalar Ctau1_;
69 dimensionedScalar Ctau2_;
70 dimensionedScalar Ctau3_;
71 dimensionedScalar alphaKsi_;
77 volScalarField epsilon_;
79 volTensorField gradU_;
84 volScalarField C5viscosity_;
88 volSymmTensorField nonlinearStress_;
93 //- Runtime type information
94 TypeName("LienCubicKE");
98 //- Construct from components
101 const volVectorField& U,
102 const surfaceScalarField& phi,
103 transportModel& transport
109 virtual ~LienCubicKE()
115 //- Return the turbulence viscosity
116 virtual tmp<volScalarField> nut() const
121 //- Return the effective diffusivity for k
122 tmp<volScalarField> DkEff() const
124 return tmp<volScalarField>
126 new volScalarField("DkEff", nut_/sigmak_ + nu())
130 //- Return the effective diffusivity for epsilon
131 tmp<volScalarField> DepsilonEff() const
133 return tmp<volScalarField>
135 new volScalarField("DepsilonEff", nut_/sigmaEps_ + nu())
139 //- Return the turbulence kinetic energy
140 virtual tmp<volScalarField> k() const
145 //- Return the turbulence kinetic energy dissipation rate
146 virtual tmp<volScalarField> epsilon() const
151 //- Return the Reynolds stress tensor
152 virtual tmp<volSymmTensorField> R() const;
154 //- Return the effective stress tensor including the laminar stress
155 virtual tmp<volSymmTensorField> devReff() const;
157 //- Return the source term for the momentum equation
158 virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const;
160 //- Solve the turbulence equations and correct the turbulence viscosity
161 virtual void correct();
163 //- Read RASProperties dictionary
168 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
170 } // End namespace RASModels
171 } // End namespace incompressible
172 } // End namespace Foam
174 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
178 // ************************************************************************* //