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

LESfilter.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::LESfilter
00027 
00028 Description
00029     Abstract class for LES filters
00030 
00031 SourceFiles
00032     LESfilter.C
00033     newFilter.C
00034 
00035 \*---------------------------------------------------------------------------*/
00036 
00037 #ifndef LESfilter_H
00038 #define LESfilter_H
00039 
00040 #include "volFields.H"
00041 #include "typeInfo.H"
00042 #include "autoPtr.H"
00043 #include "runTimeSelectionTables.H"
00044 
00045 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00046 
00047 namespace Foam
00048 {
00049 
00050 class fvMesh;
00051 
00052 /*---------------------------------------------------------------------------*\
00053                            Class LESfilter Declaration
00054 \*---------------------------------------------------------------------------*/
00055 
00056 class LESfilter
00057 {
00058     // Private data
00059 
00060         const fvMesh& mesh_;
00061 
00062 
00063     // Private Member Functions
00064 
00065         // Disallow default bitwise copy construct and assignment
00066         LESfilter(const LESfilter&);
00067         void operator=(const LESfilter&);
00068 
00069 
00070 public:
00071 
00072     //- Runtime type information
00073     TypeName("LESfilter");
00074 
00075 
00076     // Declare run-time constructor selection table
00077 
00078         declareRunTimeSelectionTable
00079         (
00080             autoPtr,
00081             LESfilter,
00082             dictionary,
00083             (
00084                 const fvMesh& mesh,
00085                 const dictionary& LESfilterDict
00086             ),
00087             (mesh, LESfilterDict)
00088         );
00089 
00090 
00091     // Constructors
00092 
00093         //- Construct from components
00094         LESfilter(const fvMesh& mesh)
00095         :
00096             mesh_(mesh)
00097         {}
00098 
00099 
00100     // Selectors
00101 
00102         //- Return a reference to the selected LES filter
00103         static autoPtr<LESfilter> New
00104         (
00105             const fvMesh&,
00106             const dictionary&
00107         );
00108 
00109 
00110     //- Destructor
00111     virtual ~LESfilter()
00112     {}
00113 
00114 
00115     // Member Functions
00116 
00117         //- Return mesh reference
00118         const fvMesh& mesh() const
00119         {
00120             return mesh_;
00121         }
00122 
00123         //- Read the LESfilter dictionary
00124         virtual void read(const dictionary&) = 0;
00125 
00126 
00127     // Member Operators
00128 
00129         virtual tmp<volScalarField> operator()
00130         (
00131             const tmp<volScalarField>&
00132         ) const = 0;
00133 
00134         virtual tmp<volVectorField> operator()
00135         (
00136             const tmp<volVectorField>&
00137         ) const = 0;
00138 
00139         virtual tmp<volSymmTensorField> operator()
00140         (
00141             const tmp<volSymmTensorField>&
00142         ) const = 0;
00143 
00144         virtual tmp<volTensorField> operator()
00145         (
00146             const tmp<volTensorField>&
00147         ) const = 0;
00148 };
00149 
00150 
00151 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00152 
00153 } // End namespace Foam
00154 
00155 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00156 
00157 #endif
00158 
00159 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd