1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2004-2011 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::incompressible::LESModels::mixedSmagorinsky
28 The mixed Isochoric Smagorinsky Model for incompressible flows.
30 The mixed model is a linear combination of an eddy viscosity model
31 (Smagorinsky) with a scale similarity model. Hence
33 B = (L + C) + R = (F(v*v) - F(v)*F(v)) + R
36 The algebraic eddy viscosity SGS model is founded on the assumption
37 that local equilibrium prevails, hence
39 R = 2/3*k*I - 2*nuEff*dev(D)
41 k = cI*delta^2*||D||^2
42 nuEff = ck*sqrt(k)*delta + nu
45 The Leonard and cross contributions are incorporated
48 + div(((filter(U*U) - filter(U)*filter(U)) -
49 0.333*I*tr(filter(U*U) - filter(U)*filter(U))))
50 + div((filter(U*epsilon) - filter(U)*filter(epsilon)))
52 to the rhs. of the equations.
57 \*---------------------------------------------------------------------------*/
59 #ifndef mixedSmagorinsky_H
60 #define mixedSmagorinsky_H
62 #include "scaleSimilarity.H"
63 #include "Smagorinsky.H"
65 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
69 namespace incompressible
74 /*---------------------------------------------------------------------------*\
75 Class mixedSmagorinsky Declaration
76 \*---------------------------------------------------------------------------*/
78 class mixedSmagorinsky
80 public scaleSimilarity,
83 // Private Member Functions
85 // Disallow default bitwise copy construct and assignment
86 mixedSmagorinsky(const mixedSmagorinsky&);
87 mixedSmagorinsky& operator=(const mixedSmagorinsky&);
91 //- Runtime type information
92 TypeName("mixedSmagorinsky");
97 //- Construct from components
100 const volVectorField& U,
101 const surfaceScalarField& phi,
102 transportModel& transport,
103 const word& turbulenceModelName = turbulenceModel::typeName,
104 const word& modelName = typeName
109 virtual ~mixedSmagorinsky()
115 //- Return the SGS turbulent kinetic energy.
116 virtual tmp<volScalarField> k() const;
118 //- Return the SGS turbulent disipation rate.
119 virtual tmp<volScalarField> epsilon() const;
121 //- Return the SGS viscosity.
122 virtual tmp<volScalarField> nuSgs() const
127 //- Return the sub-grid stress tensor.
128 virtual tmp<volSymmTensorField> B() const;
130 //- Return the effective sub-grid turbulence stress tensor
131 // including the laminar stress
132 virtual tmp<volSymmTensorField> devBeff() const;
134 //- Implementation of div(B). This is necessary to override
135 // (and include) the div(B) terms from both the parent classes.
136 virtual tmp<fvVectorMatrix> divDevBeff(volVectorField& U) const;
138 //- Correct Eddy-Viscosity and related properties
139 virtual void correct(const tmp<volTensorField>& gradU);
141 //- Read LESProperties dictionary
146 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
148 } // End namespace LESModels
149 } // End namespace incompressible
150 } // End namespace Foam
152 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
156 // ************************************************************************* //