1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
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::lowReOneEqEddy
28 One Equation Eddy Viscosity Model for compressible flow
31 d/dt(rho*k) + div(rho*U*k) - div(muEff*grad(k))
33 -rho*B*L - ce*rho*k^3/2/delta
37 B = 2/3*k*I - 2*nuSgs*dev(D)
41 nuSgsHiRe = ck*sqrt(k)*delta
42 nuSgs = (nu/beta)*(1 - exp(-beta*nuSgsHiRe/nu));
48 \*---------------------------------------------------------------------------*/
50 #ifndef compressibleLowReOneEqEddy_H
51 #define compressibleLowReOneEqEddy_H
53 #include "GenEddyVisc.H"
55 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
59 namespace compressible
64 /*---------------------------------------------------------------------------*\
65 Class lowReOneEqEddy Declaration
66 \*---------------------------------------------------------------------------*/
74 dimensionedScalar ck_;
75 dimensionedScalar beta_;
77 // Private Member Functions
79 //- Update sub-grid scale fields
80 void updateSubGridScaleFields();
82 // Disallow default bitwise copy construct and assignment
83 lowReOneEqEddy(const lowReOneEqEddy&);
84 lowReOneEqEddy& operator=(const lowReOneEqEddy&);
89 //- Runtime type information
90 TypeName("lowReOneEqEddy");
95 //- Constructor from components
98 const volScalarField& rho,
99 const volVectorField& U,
100 const surfaceScalarField& phi,
101 const basicThermo& thermoPhysicalModel
106 virtual ~lowReOneEqEddy()
112 //- Return the effective diffusivity for k
113 tmp<volScalarField> DkEff() const
115 return tmp<volScalarField>
117 new volScalarField("DkEff", muSgs_ + mu())
121 //- Correct Eddy-Viscosity and related properties
122 virtual void correct(const tmp<volTensorField>& gradU);
124 //- Read LESProperties dictionary
129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 } // End namespace LESModels
132 } // End namespace compressible
133 } // End namespace Foam
135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 // ************************************************************************* //