![]() |
|
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 LESfilter 00027 00028 Description 00029 00030 SourceFiles 00031 LESfilter.C 00032 newFilter.C 00033 00034 \*---------------------------------------------------------------------------*/ 00035 00036 #ifndef LESfilter_H 00037 #define LESfilter_H 00038 00039 #include "volFields.H" 00040 #include "typeInfo.H" 00041 #include "autoPtr.H" 00042 #include "runTimeSelectionTables.H" 00043 00044 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00045 00046 namespace Foam 00047 { 00048 00049 class fvMesh; 00050 00051 /*---------------------------------------------------------------------------*\ 00052 Class LESfilter Declaration 00053 \*---------------------------------------------------------------------------*/ 00054 00055 class LESfilter 00056 { 00057 // Private data 00058 00059 const fvMesh& mesh_; 00060 00061 00062 // Private Member Functions 00063 00064 // Disallow default bitwise copy construct and assignment 00065 LESfilter(const LESfilter&); 00066 void operator=(const LESfilter&); 00067 00068 00069 public: 00070 00071 //- Runtime type information 00072 TypeName("LESfilter"); 00073 00074 00075 // Declare run-time constructor selection table 00076 00077 declareRunTimeSelectionTable 00078 ( 00079 autoPtr, 00080 LESfilter, 00081 dictionary, 00082 ( 00083 const fvMesh& mesh, 00084 const dictionary& LESfilterDict 00085 ), 00086 (mesh, LESfilterDict) 00087 ); 00088 00089 00090 // Constructors 00091 00092 //- Construct from components 00093 LESfilter(const fvMesh& mesh) 00094 : 00095 mesh_(mesh) 00096 {} 00097 00098 00099 // Selectors 00100 00101 //- Return a reference to the selected LES filter 00102 static autoPtr<LESfilter> New 00103 ( 00104 const fvMesh& mesh, 00105 const dictionary& LESfilterDict 00106 ); 00107 00108 00109 // Destructor 00110 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<volTensorField> operator() 00140 ( 00141 const tmp<volTensorField>& 00142 ) const = 0; 00143 }; 00144 00145 00146 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00147 00148 } // End namespace Foam 00149 00150 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00151 00152 #endif 00153 00154 // ************************************************************************* //