OpenFOAM logo
Open Source CFD Toolkit

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