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::qZeta
28 Gibson and Dafa'Alla's q-zeta two-equation low-Re turbulence model
29 for incompressible flows
33 "Calculation of oscillating boundary layers with the
34 q-[zeta] turbulence model"
35 A.A. Dafa'Alla, E. Juntasaro and M.M. Gibson
37 Engineering Turbulence Modelling and Experiments 3:
38 Proceedings of the Third International Symposium,
39 Crete, Greece, May 27-29, 1996, p. 141.
41 Editors: Wolfgang Rodi and G. Bergeles
47 \*---------------------------------------------------------------------------*/
54 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
58 namespace incompressible
63 /*---------------------------------------------------------------------------*\
64 Class qZeta Declaration
65 \*---------------------------------------------------------------------------*/
78 dimensionedScalar Cmu_;
79 dimensionedScalar C1_;
80 dimensionedScalar C2_;
81 dimensionedScalar sigmaZeta_;
85 dimensionedScalar qMin_;
87 //- Lower limit of zeta
88 dimensionedScalar zetaMin_;
93 volScalarField epsilon_;
101 // Protected Member Functions
103 tmp<volScalarField> fMu() const;
104 tmp<volScalarField> f2() const;
109 //- Runtime type information
114 //- Construct from components
117 const volVectorField& U,
118 const surfaceScalarField& phi,
119 transportModel& transport,
120 const word& turbulenceModelName = turbulenceModel::typeName,
121 const word& modelName = typeName
134 //- Return the lower allowable limit for q (default: SMALL)
135 const dimensionedScalar& qMin() const
140 //- Return the lower allowable limit for zeta (default: SMALL)
141 const dimensionedScalar& zetaMin() const
146 //- Allow qMin to be changed
147 dimensionedScalar& qMin()
152 //- Allow zetaMin to be changed
153 dimensionedScalar& zetaMin()
159 //- Return the turbulence viscosity
160 virtual tmp<volScalarField> nut() const
165 //- Return the effective diffusivity for q
166 tmp<volScalarField> DqEff() const
168 return tmp<volScalarField>
170 new volScalarField("DqEff", nut_ + nu())
174 //- Return the effective diffusivity for epsilon
175 tmp<volScalarField> DzetaEff() const
177 return tmp<volScalarField>
179 new volScalarField("DzetaEff", nut_/sigmaZeta_ + nu())
183 //- Return the turbulence kinetic energy
184 virtual tmp<volScalarField> k() const
189 //- Return the turbulence kinetic energy dissipation rate
190 virtual tmp<volScalarField> epsilon() const
195 //- Return the Reynolds stress tensor
196 virtual tmp<volSymmTensorField> R() const;
198 virtual const volScalarField& q() const
203 virtual const volScalarField& zeta() const
208 //- Return the effective stress tensor including the laminar stress
209 virtual tmp<volSymmTensorField> devReff() const;
211 //- Return the source term for the momentum equation
212 virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const;
214 //- Solve the turbulence equations and correct the turbulence viscosity
215 virtual void correct();
217 //- Read RASProperties dictionary
222 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
224 } // End namespace RASModels
225 } // End namespace incompressible
226 } // End namespace Foam
228 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
232 // ************************************************************************* //