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::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(k) + div(U*k) - div(nuEff*grad(k))
39 B = 2/3*k*I - 2*nuSgs*dev(D)
40 Beff = 2/3*k*I - 2*nuEff*dev(D)
45 nuSgs = ck*sqrt(k)*delta
52 \*---------------------------------------------------------------------------*/
57 #include "GenEddyVisc.H"
59 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
63 namespace incompressible
68 /*---------------------------------------------------------------------------*\
69 Class oneEqEddy Declaration
70 \*---------------------------------------------------------------------------*/
80 dimensionedScalar ck_;
83 // Private Member Functions
85 //- Update sub-grid scale fields
86 void updateSubGridScaleFields();
88 // Disallow default bitwise copy construct and assignment
89 oneEqEddy(const oneEqEddy&);
90 oneEqEddy& operator=(const oneEqEddy&);
95 //- Runtime type information
96 TypeName("oneEqEddy");
100 //- Construct from components
103 const volVectorField& U,
104 const surfaceScalarField& phi,
105 transportModel& transport
116 //- Return SGS kinetic energy
117 virtual tmp<volScalarField> k() const
122 //- Return the effective diffusivity for k
123 tmp<volScalarField> DkEff() const
125 return tmp<volScalarField>
127 new volScalarField("DkEff", nuSgs_ + nu())
131 //- Correct Eddy-Viscosity and related properties
132 virtual void correct(const tmp<volTensorField>& gradU);
134 //- Read LESProperties dictionary
139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141 } // End namespace LESModels
142 } // End namespace incompressible
143 } // End namespace Foam
145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
149 // ************************************************************************* //