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

simpleFilter.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::simpleFilter
00027 
00028 Description
00029     Simple top-hat filter used in dynamic LES models.
00030 
00031     Implemented as a surface integral of the face interpolate of the field.
00032 
00033 SourceFiles
00034     simpleFilter.C
00035 
00036 \*---------------------------------------------------------------------------*/
00037 
00038 #ifndef simpleFilter_H
00039 #define simpleFilter_H
00040 
00041 #include "LESfilter.H"
00042 
00043 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00044 
00045 namespace Foam
00046 {
00047 
00048 /*---------------------------------------------------------------------------*\
00049                            Class simpleFilter Declaration
00050 \*---------------------------------------------------------------------------*/
00051 
00052 class simpleFilter
00053 :
00054     public LESfilter
00055 
00056 {
00057     // Private Member Functions
00058 
00059         //- Disallow default bitwise copy construct and assignment
00060         simpleFilter(const simpleFilter&);
00061         void operator=(const simpleFilter&);
00062 
00063 
00064 public:
00065 
00066     //- Runtime type information
00067     TypeName("simple");
00068 
00069 
00070     // Constructors
00071 
00072         //- Construct from components
00073         simpleFilter(const fvMesh& mesh);
00074 
00075         //- Construct from IOdictionary
00076         simpleFilter(const fvMesh& mesh, const dictionary&);
00077 
00078 
00079     //- Destructor
00080     virtual ~simpleFilter()
00081     {}
00082 
00083 
00084     // Member Functions
00085 
00086         //- Read the LESfilter dictionary
00087         virtual void read(const dictionary&);
00088 
00089 
00090     // Member Operators
00091 
00092         virtual tmp<volScalarField> operator()(const tmp<volScalarField>&) const;
00093 
00094         virtual tmp<volVectorField> operator()(const tmp<volVectorField>&) const;
00095 
00096         virtual tmp<volSymmTensorField> operator()
00097         (
00098             const tmp<volSymmTensorField>&
00099         ) const;
00100 
00101         virtual tmp<volTensorField> operator()(const tmp<volTensorField>&) const;
00102 };
00103 
00104 
00105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00106 
00107 } // End namespace Foam
00108 
00109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00110 
00111 #endif
00112 
00113 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd