OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

dynMixedSmagorinsky.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2009 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software; you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM; if not, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 Class
00026     Foam::incompressible::LESModels::dynMixedSmagorinsky
00027 
00028 Description
00029     The Mixed Isochoric Smagorinsky Model for incompressible flows.
00030 
00031     The mixed model is a linear combination of an eddy viscosity model
00032     with a scale similarity model.
00033     @verbatim
00034           B = (L + C) + R = (F(v*v) - F(v)*F(v)) + R
00035     @endverbatim
00036 
00037     The algebraic eddy viscosity SGS model is founded on the assumption
00038     that local equilibrium prevails, hence
00039     @verbatim
00040         R = 2/3*rho*k*I - 2*nuEff*dev(D)
00041     where
00042         k = cI*delta^2*||D||^2
00043         nuEff = ck*sqrt(k)*delta + nu
00044     @endverbatim
00045 
00046     The Leonard and cross contributions are incorporated
00047     by adding,
00048     @verbatim
00049         + div(((filter(U*U) - filter(U)*filter(U)) -
00050           0.333*I*tr(filter(U*U) - filter(U)*filter(U))))
00051         + div((filter(U*epsilon) - filter(U)*filter(epsilon)))
00052     @endverbatim
00053     to the rhs. of the equations.  This version implements filtering to
00054     evaluate the coefficients in the model.
00055 
00056 SourceFiles
00057     dynMixedSmagorinsky.C
00058 
00059 \*---------------------------------------------------------------------------*/
00060 
00061 #ifndef dynMixedSmagorinsky_H
00062 #define dynMixedSmagorinsky_H
00063 
00064 #include "dynSmagorinsky.H"
00065 #include "scaleSimilarity.H"
00066 
00067 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00068 
00069 namespace Foam
00070 {
00071 namespace incompressible
00072 {
00073 namespace LESModels
00074 {
00075 
00076 /*---------------------------------------------------------------------------*\
00077                            Class dynMixedSmagorinsky Declaration
00078 \*---------------------------------------------------------------------------*/
00079 
00080 class dynMixedSmagorinsky
00081 :
00082     public scaleSimilarity,
00083     public dynSmagorinsky
00084 {
00085     // Private Member Functions
00086 
00087         // Disallow default bitwise copy construct and assignment
00088         dynMixedSmagorinsky(const dynMixedSmagorinsky&);
00089         dynMixedSmagorinsky& operator=(const dynMixedSmagorinsky&);
00090 
00091 public:
00092 
00093     //- Runtime type information
00094     TypeName("dynMixedSmagorinsky");
00095 
00096     // Constructors
00097 
00098         //- Constructors from components
00099         dynMixedSmagorinsky
00100         (
00101             const volVectorField& U,
00102             const surfaceScalarField& phi,
00103             transportModel& transport
00104         );
00105 
00106 
00107     // Destructor
00108 
00109         ~dynMixedSmagorinsky()
00110         {}
00111 
00112 
00113     // Member Functions
00114 
00115         //- Return SGS kinetic energy
00116         tmp<volScalarField> k() const;
00117 
00118         //- Return sub-grid disipation rate
00119         tmp<volScalarField> epsilon() const;
00120 
00121         //- Return the sub-grid stress tensor.
00122         tmp<volSymmTensorField> B() const;
00123 
00124         //- Return the effective sub-grid turbulence stress tensor
00125         //  including the laminar stress
00126         tmp<volSymmTensorField> devBeff() const;
00127 
00128         //- Returns div(B).
00129         // This is the additional term due to the filtering of the NSE.
00130         tmp<fvVectorMatrix> divDevBeff(volVectorField& U) const;
00131 
00132         //- Correct Eddy-Viscosity and related properties
00133         void correct(const tmp<volTensorField>& gradU);
00134 
00135         //- Read LESProperties dictionary
00136         bool read();
00137 };
00138 
00139 
00140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00141 
00142 } // End namespace LESModels
00143 } // End namespace incompressible
00144 } // End namespace Foam
00145 
00146 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00147 
00148 #endif
00149 
00150 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd