1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 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, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::incompressible::LESModels::DeardorffDiffStress
29 Differential SGS Stress Equation Model for incompressible flows
31 The DSEM uses a model version of the full balance equation for the SGS
32 stress tensor to simulate the behaviour of B.
35 d/dt(B) + div(U*B) - div(nuSgs*grad(B))
37 P - c1*epsilon/k*B - 0.667*(1 - c1)*epsilon*I - c2*(P - 0.333*trP*I)
42 epsilon = ce*k^3/2/delta,
43 epsilon/k = ce*k^1/2/delta
45 nuSgs = ck*sqrt(k)*delta
52 \*---------------------------------------------------------------------------*/
54 #ifndef DeardorffDiffStress_H
55 #define DeardorffDiffStress_H
57 #include "GenSGSStress.H"
59 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
63 namespace incompressible
68 /*---------------------------------------------------------------------------*\
69 Class DeardorffDiffStress Declaration
70 \*---------------------------------------------------------------------------*/
72 class DeardorffDiffStress
78 dimensionedScalar ck_;
79 dimensionedScalar cm_;
82 // Private Member Functions
84 //- Update sub-grid scale fields
85 void updateSubGridScaleFields(const volScalarField& K);
87 // Disallow default bitwise copy construct and assignment
88 DeardorffDiffStress(const DeardorffDiffStress&);
89 DeardorffDiffStress& operator=(const DeardorffDiffStress&);
94 //- Runtime type information
95 TypeName("DeardorffDiffStress");
99 //- Construct from components
102 const volVectorField& U,
103 const surfaceScalarField& phi,
104 transportModel& transport
109 virtual ~DeardorffDiffStress()
115 //- Return the effective diffusivity for B
116 tmp<volScalarField> DBEff() const
118 return tmp<volScalarField>
120 new volScalarField("DBEff", nuSgs_ + nu())
124 //- Correct Eddy-Viscosity and related properties
125 virtual void correct(const tmp<volTensorField>& gradU);
127 //- Read LESProperties dictionary
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 } // End namespace LESModels
135 } // End namespace incompressible
136 } // End namespace Foam
138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
142 // ************************************************************************* //