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::compressible::LESModels::oneEqEddy
28 One Equation Eddy Viscosity Model for incompressible flows
30 Eddy viscosity SGS model using a modeled balance equation to simulate the
31 behaviour of k, hence,
33 d/dt(rho*k) + div(rho*U*k) - div(muEff*grad(k))
35 -rho*D:B - ce*rho*k^3/2/delta
39 B = 2/3*k*I - 2*nuSgs*dev(D)
44 muSgs = ck*rho*sqrt(k)*delta
51 \*---------------------------------------------------------------------------*/
53 #ifndef compressibleOneEqEddy_H
54 #define compressibleOneEqEddy_H
56 #include "GenEddyVisc.H"
58 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
62 namespace compressible
67 /*---------------------------------------------------------------------------*\
68 Class oneEqEddy Declaration
69 \*---------------------------------------------------------------------------*/
79 dimensionedScalar ck_;
82 // Private Member Functions
84 //- Update sub-grid scale fields
85 void updateSubGridScaleFields();
87 // Disallow default bitwise copy construct and assignment
88 oneEqEddy(const oneEqEddy&);
89 oneEqEddy& operator=(const oneEqEddy&);
94 //- Runtime type information
95 TypeName("oneEqEddy");
100 //- Constructor from components
103 const volScalarField& rho,
104 const volVectorField& U,
105 const surfaceScalarField& phi,
106 const basicThermo& thermoPhysicalModel,
107 const word& turbulenceModelName = turbulenceModel::typeName,
108 const word& modelName = typeName
119 //- Return SGS kinetic energy
120 virtual tmp<volScalarField> k() const
125 //- Return the effective diffusivity for k
126 tmp<volScalarField> DkEff() const
128 return tmp<volScalarField>
130 new volScalarField("DkEff", muSgs_ + mu())
134 //- Correct Eddy-Viscosity and related properties
135 virtual void correct(const tmp<volTensorField>& gradU);
137 //- Read LESProperties dictionary
142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
144 } // End namespace LESModels
145 } // End namespace compressible
146 } // End namespace Foam
148 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
152 // ************************************************************************* //