1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend 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 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. 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 \*---------------------------------------------------------------------------*/
85 dimensionedScalar Cmu_;
86 dimensionedScalar beta_;
87 dimensionedScalar alpha_;
88 dimensionedScalar alphaK_;
89 dimensionedScalar alphaOmega_;
95 volScalarField omega_;
101 //- Runtime type information
106 //- Construct from components
109 const volVectorField& U,
110 const surfaceScalarField& phi,
111 transportModel& transport
122 //- Return the turbulence viscosity
123 virtual tmp<volScalarField> nut() const
128 //- Return the effective diffusivity for k
129 tmp<volScalarField> DkEff() const
131 return tmp<volScalarField>
133 new volScalarField("DkEff", alphaK_*nut_ + nu())
137 //- Return the effective diffusivity for omega
138 tmp<volScalarField> DomegaEff() const
140 return tmp<volScalarField>
142 new volScalarField("DomegaEff", alphaOmega_*nut_ + nu())
146 //- Return the turbulence kinetic energy
147 virtual tmp<volScalarField> k() const
152 //- Return the turbulence specific dissipation rate
153 virtual tmp<volScalarField> omega() const
158 //- Return the turbulence kinetic energy dissipation rate
159 virtual tmp<volScalarField> epsilon() const
161 return tmp<volScalarField>
168 mesh_.time().timeName(),
172 omega_.boundaryField().types()
177 //- Return the Reynolds stress tensor
178 virtual tmp<volSymmTensorField> R() const;
180 //- Return the effective stress tensor including the laminar stress
181 virtual tmp<volSymmTensorField> devReff() const;
183 //- Return the source term for the momentum equation
184 virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const;
186 //- Solve the turbulence equations and correct the turbulence viscosity
187 virtual void correct();
189 //- Read RASProperties dictionary
194 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
196 } // End namespace RASModels
197 } // End namespace incompressible
198 } // End namespace Foam
200 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
204 // ************************************************************************* //