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

LRRDiffStress.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::LRRDiffStress
00027 
00028 Description
00029     Differential SGS Stress Equation Model for incompressible flows.
00030 
00031     The DSEM uses a model version of the full balance equation for the SGS
00032     stress tensor to simulate the behaviour of B, hence,
00033     @verbatim
00034         d/dt(B) + div(U*B) - div(nuSgs*grad(B))
00035         =
00036         P - c1*e/k*B - 0.667*(1 - c1)*e*I - c2*(P - 0.333*trP*I)
00037     where
00038         k = 0.5*trB,
00039         epsilon = ce*k^3/2/delta
00040         epsilon/k = ce*k^1/2/delta
00041         P = -(B'L + L'B)
00042         nuEff = ck*sqrt(k)*delta + nu
00043     @endverbatim
00044 
00045     This version from Launder, Rece & Rodi 1975
00046 
00047 SourceFiles
00048     LRRDiffStress.C
00049 
00050 \*---------------------------------------------------------------------------*/
00051 
00052 #ifndef LRRDiffStress_H
00053 #define LRRDiffStress_H
00054 
00055 #include "GenSGSStress.H"
00056 
00057 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00058 
00059 namespace Foam
00060 {
00061 namespace incompressible
00062 {
00063 namespace LESModels
00064 {
00065 
00066 /*---------------------------------------------------------------------------*\
00067                            Class LRRDiffStress Declaration
00068 \*---------------------------------------------------------------------------*/
00069 
00070 class LRRDiffStress
00071 :
00072     public GenSGSStress
00073 {
00074     // Private data
00075 
00076         dimensionedScalar ck_;
00077         dimensionedScalar c1_;
00078         dimensionedScalar c2_;
00079 
00080 
00081     // Private Member Functions
00082 
00083         //- Update sub-grid scale fields
00084         void updateSubGridScaleFields(const volScalarField& K);
00085 
00086         // Disallow default bitwise copy construct and assignment
00087         LRRDiffStress(const LRRDiffStress&);
00088         LRRDiffStress& operator=(const LRRDiffStress&);
00089 
00090 
00091 public:
00092 
00093     //- Runtime type information
00094     TypeName("LRRDiffStress");
00095 
00096     // Constructors
00097 
00098         //- Construct from components
00099         LRRDiffStress
00100         (
00101             const volVectorField& U,
00102             const surfaceScalarField& phi,
00103             transportModel& transport
00104         );
00105 
00106 
00107     //- Destructor
00108     virtual ~LRRDiffStress()
00109     {}
00110 
00111 
00112     // Member Functions
00113 
00114         //- Return the effective diffusivity for B
00115         tmp<volScalarField> DBEff() const
00116         {
00117             return tmp<volScalarField>
00118             (
00119                 new volScalarField("DBEff", nuSgs_ + nu())
00120             );
00121         }
00122 
00123         //- Correct Eddy-Viscosity and related properties
00124         virtual void correct(const tmp<volTensorField>& gradU);
00125 
00126         //- Read LESProperties dictionary
00127         virtual bool read();
00128 };
00129 
00130 
00131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00132 
00133 } // End namespace LESModels
00134 } // End namespace incompressible
00135 } // End namespace Foam
00136 
00137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00138 
00139 #endif
00140 
00141 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd