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::NonlinearKEShih
28 Shih's quadratic non-linear k-epsilon turbulence model for
34 \*---------------------------------------------------------------------------*/
36 #ifndef NonlinearKEShih_H
37 #define NonlinearKEShih_H
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 namespace incompressible
50 /*---------------------------------------------------------------------------*\
51 Class NonlinearKEShih Declaration
52 \*---------------------------------------------------------------------------*/
65 dimensionedScalar C1_;
66 dimensionedScalar C2_;
67 dimensionedScalar sigmak_;
68 dimensionedScalar sigmaEps_;
69 dimensionedScalar A1_;
70 dimensionedScalar A2_;
71 dimensionedScalar Ctau1_;
72 dimensionedScalar Ctau2_;
73 dimensionedScalar Ctau3_;
74 dimensionedScalar alphaKsi_;
76 dimensionedScalar kappa_;
83 volScalarField epsilon_;
85 volTensorField gradU_;
93 volSymmTensorField nonlinearStress_;
98 //- Runtime type information
99 TypeName("NonlinearKEShih");
103 //- Construct from components
106 const volVectorField& U,
107 const surfaceScalarField& phi,
108 transportModel& transport,
109 const word& turbulenceModelName = turbulenceModel::typeName,
110 const word& modelName = typeName
115 virtual ~NonlinearKEShih()
121 //- Return the turbulence viscosity
122 virtual tmp<volScalarField> nut() const
127 //- Return the effective diffusivity for k
128 tmp<volScalarField> DkEff() const
130 return tmp<volScalarField>
132 new volScalarField("DkEff", nut_/sigmak_ + nu())
136 //- Return the effective diffusivity for epsilon
137 tmp<volScalarField> DepsilonEff() const
139 return tmp<volScalarField>
141 new volScalarField("DepsilonEff", nut_/sigmaEps_ + nu())
145 //- Return the turbulence kinetic energy
146 virtual tmp<volScalarField> k() const
151 //- Return the turbulence kinetic energy dissipation rate
152 virtual tmp<volScalarField> epsilon() const
157 //- Return the Reynolds stress tensor
158 virtual tmp<volSymmTensorField> R() const;
160 //- Return the effective stress tensor including the laminar stress
161 virtual tmp<volSymmTensorField> devReff() const;
163 //- Return the source term for the momentum equation
164 virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const;
166 //- Solve the turbulence equations and correct the turbulence viscosity
167 virtual void correct();
169 //- Read RASProperties dictionary
174 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
176 } // End namespace RASModels
177 } // End namespace incompressible
178 } // End namespace Foam
180 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
184 // ************************************************************************* //