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::kOmega
28 Standard high Reynolds-number k-omega turbulence model for
33 "Turbulence Modeling for CFD"
35 DCW Industries, Inc., La Canada,
39 http://www.cfd-online.com/Wiki/Wilcox's_k-omega_model
42 The default model coefficients correspond to the following:
46 Cmu 0.09; // Equivalent to betaStar
57 \*---------------------------------------------------------------------------*/
64 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
68 namespace incompressible
73 /*---------------------------------------------------------------------------*\
74 Class kOmega Declaration
75 \*---------------------------------------------------------------------------*/
88 dimensionedScalar Cmu_;
89 dimensionedScalar beta_;
90 dimensionedScalar alpha_;
91 dimensionedScalar alphaK_;
92 dimensionedScalar alphaOmega_;
98 volScalarField omega_;
104 //- Runtime type information
109 //- Construct from components
112 const volVectorField& U,
113 const surfaceScalarField& phi,
114 transportModel& transport,
115 const word& turbulenceModelName = turbulenceModel::typeName,
116 const word& modelName = typeName
127 //- Return the turbulence viscosity
128 virtual tmp<volScalarField> nut() const
133 //- Return the effective diffusivity for k
134 tmp<volScalarField> DkEff() const
136 return tmp<volScalarField>
138 new volScalarField("DkEff", alphaK_*nut_ + nu())
142 //- Return the effective diffusivity for omega
143 tmp<volScalarField> DomegaEff() const
145 return tmp<volScalarField>
147 new volScalarField("DomegaEff", alphaOmega_*nut_ + nu())
151 //- Return the turbulence kinetic energy
152 virtual tmp<volScalarField> k() const
157 //- Return the turbulence specific dissipation rate
158 virtual tmp<volScalarField> omega() const
163 //- Return the turbulence kinetic energy dissipation rate
164 virtual tmp<volScalarField> epsilon() const
166 return tmp<volScalarField>
173 mesh_.time().timeName(),
177 omega_.boundaryField().types()
182 //- Return the Reynolds stress tensor
183 virtual tmp<volSymmTensorField> R() const;
185 //- Return the effective stress tensor including the laminar stress
186 virtual tmp<volSymmTensorField> devReff() const;
188 //- Return the source term for the momentum equation
189 virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const;
191 //- Solve the turbulence equations and correct the turbulence viscosity
192 virtual void correct();
194 //- Read RASProperties dictionary
199 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
201 } // End namespace RASModels
202 } // End namespace incompressible
203 } // End namespace Foam
205 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
209 // ************************************************************************* //