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

scaleSimilarity.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::scaleSimilarity
00027 
00028 Description
00029     General base class for all scale similarity models
00030     for incompressible flows.
00031 
00032     Since such models do not work without additional eddy viscosity terms,
00033     this class must be combined with an eddy viscosity model of some form.
00034 
00035 SourceFiles
00036     scaleSimilarity.C
00037 
00038 \*---------------------------------------------------------------------------*/
00039 
00040 #ifndef scaleSimilarity_H
00041 #define scaleSimilarity_H
00042 
00043 #include "LESModel.H"
00044 #include "LESfilter.H"
00045 
00046 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00047 
00048 namespace Foam
00049 {
00050 namespace incompressible
00051 {
00052 namespace LESModels
00053 {
00054 
00055 /*---------------------------------------------------------------------------*\
00056                            Class scaleSimilarity Declaration
00057 \*---------------------------------------------------------------------------*/
00058 
00059 class scaleSimilarity
00060 :
00061     virtual public LESModel
00062 {
00063     // Private data
00064 
00065         autoPtr<LESfilter> filterPtr_;
00066         LESfilter& filter_;
00067 
00068 
00069     // Private Member Functions
00070 
00071         // Disallow default bitwise copy construct and assignment
00072         scaleSimilarity(const scaleSimilarity&);
00073         scaleSimilarity& operator=(const scaleSimilarity&);
00074 
00075 
00076 public:
00077 
00078     //- Runtime type information
00079     TypeName("scaleSimilarity");
00080 
00081     // Constructors
00082 
00083         //- Construct from components
00084         scaleSimilarity
00085         (
00086             const volVectorField& U,
00087             const surfaceScalarField& phi,
00088             transportModel& transport
00089         );
00090 
00091 
00092     //- Destructor
00093     virtual ~scaleSimilarity()
00094     {}
00095 
00096 
00097     // Member Functions
00098 
00099         //- Return the SGS turbulent kinetic energy.
00100         virtual tmp<volScalarField> k() const;
00101 
00102         //- Return the SGS turbulent dissipation.
00103         virtual tmp<volScalarField> epsilon() const;
00104 
00105         //- Return the sub-grid stress tensor.
00106         virtual tmp<volSymmTensorField> B() const;
00107 
00108         //- Return the deviatoric part of the effective sub-grid
00109         //  turbulence stress tensor including the laminar stress
00110         virtual tmp<volSymmTensorField> devBeff() const;
00111 
00112         //- Return the deviatoric part of the divergence of Beff
00113         //  i.e. the additional term in the filtered NSE.
00114         virtual tmp<fvVectorMatrix> divDevBeff(volVectorField& U) const;
00115 
00116         //- Correct Eddy-Viscosity and related properties
00117         virtual void correct(const tmp<volTensorField>&);
00118 
00119         //- Read LESProperties dictionary
00120         virtual bool read();
00121 };
00122 
00123 
00124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00125 
00126 } // End namespace LESModels
00127 } // End namespace incompressible
00128 } // End namespace Foam
00129 
00130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00131 
00132 #endif
00133 
00134 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd