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::locDynOneEqEddy
28 Localised Dynamic One Equation Eddy Viscosity Model for incompressible
31 Eddy viscosity SGS model using a modeled balance equation to simulate
32 the behaviour of k, hence
34 d/dt(k) + div(U*k) - div(nuSgs*grad(k))
36 -B*L - ce*rho*k^3/2/delta
38 B = 2/3*k*I - 2*nuSgs*dev(D)
39 Beff = 2/3*k*I - 2*nuEff*dev(D)
41 nuSgs = cD*delta^2*||D||
45 A dynamic procedure is here applied to evaluate ck and ce
51 K = 0.5*(F(U.U) - F(U).F(U))
52 L = (F(U*U) - F(U)*F(U) - 0.33*K*I)
53 M = delta*(F(sqrt(k)*D) - 2*sqrt(K + filter(k))*F(D))
54 m = pow(K + F(k), 3.0/2.0)/(2*delta) - F(pow(k, 3.0/2.0))/delta
55 e = 2*delta*ck*(F(sqrt(k)*(D && D)) - 2*sqrt(K + F(k))*(F(D) && F(D)))/
61 \*---------------------------------------------------------------------------*/
63 #ifndef locDynOneEqEddy_H
64 #define locDynOneEqEddy_H
66 #include "GenEddyVisc.H"
67 #include "simpleFilter.H"
68 #include "LESfilter.H"
70 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
74 namespace incompressible
79 /*---------------------------------------------------------------------------*\
80 Class locDynOneEqEddy Declaration
81 \*---------------------------------------------------------------------------*/
91 simpleFilter simpleFilter_;
92 autoPtr<LESfilter> filterPtr_;
96 // Private Member Functions
98 //- Update sub-grid scale fields
99 void updateSubGridScaleFields
101 const volSymmTensorField& D,
102 const volScalarField& KK
105 //- Calculate ck, ce by filtering the velocity field U.
108 const volSymmTensorField&,
109 const volScalarField&
114 const volSymmTensorField&,
115 const volScalarField&
118 // Disallow default bitwise copy construct and assignment
119 locDynOneEqEddy(const locDynOneEqEddy&);
120 locDynOneEqEddy& operator=(const locDynOneEqEddy&);
125 //- Runtime type information
126 TypeName("locDynOneEqEddy");
130 //- Construct from components
133 const volVectorField& U,
134 const surfaceScalarField& phi,
135 transportModel& transport
140 virtual ~locDynOneEqEddy()
146 //- Return SGS kinetic energy
147 virtual tmp<volScalarField> k() const
152 //- Return the effective diffusivity for k
153 tmp<volScalarField> DkEff() const
155 return tmp<volScalarField>
157 new volScalarField("DkEff", nuSgs_ + nu())
161 //- Correct Eddy-Viscosity and related properties
162 virtual void correct(const tmp<volTensorField>& gradU);
164 //- Read LESProperties dictionary
169 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
171 } // End namespace LESModels
172 } // End namespace incompressible
173 } // End namespace Foam
175 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
179 // ************************************************************************* //