00001 /*---------------------------------------------------------------------------*\ 00002 ========= | 00003 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 00004 \\ / O peration | 00005 \\ / A nd | Copyright (C) 1991-2010 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 00013 the Free Software Foundation, either version 3 of the License, or 00014 (at your 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, see <http://www.gnu.org/licenses/>. 00023 00024 Class 00025 Foam::anisotropicFilter 00026 00027 Description 00028 anisotropic filter 00029 00030 @verbatim 00031 Kernel as filter as Test filter with ratio 2 00032 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 00033 Box filter: g = delta2/24 -> g = delta2/6 00034 Spherical box filter: g = delta2/64 -> g = delta2/16 00035 Gaussian filter: g = delta2/24 -> g = delta2/6 00036 @endverbatim 00037 00038 SourceFiles 00039 anisotropicFilter.C 00040 00041 \*---------------------------------------------------------------------------*/ 00042 00043 #ifndef anisotropicFilter_H 00044 #define anisotropicFilter_H 00045 00046 #include <LESfilters/LESfilter.H> 00047 00048 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00049 00050 namespace Foam 00051 { 00052 00053 /*---------------------------------------------------------------------------*\ 00054 Class anisotropicFilter Declaration 00055 \*---------------------------------------------------------------------------*/ 00056 00057 class anisotropicFilter 00058 : 00059 public LESfilter 00060 { 00061 // Private data 00062 00063 scalar widthCoeff_; 00064 volVectorField coeff_; 00065 00066 00067 // Private Member Functions 00068 00069 // Disallow default bitwise copy construct and assignment 00070 anisotropicFilter(const anisotropicFilter&); 00071 void operator=(const anisotropicFilter&); 00072 00073 00074 public: 00075 00076 //- Runtime type information 00077 TypeName("anisotropic"); 00078 00079 // Constructors 00080 00081 //- Construct from components 00082 anisotropicFilter(const fvMesh& mesh, scalar widthCoeff); 00083 00084 //- Construct from IOdictionary 00085 anisotropicFilter(const fvMesh& mesh, const dictionary&); 00086 00087 00088 //- Destructor 00089 virtual ~anisotropicFilter() 00090 {} 00091 00092 00093 // Member Functions 00094 00095 //- Read the LESfilter dictionary 00096 virtual void read(const dictionary&); 00097 00098 00099 // Member Operators 00100 00101 virtual tmp<volScalarField> operator()(const tmp<volScalarField>&) const; 00102 00103 virtual tmp<volVectorField> operator()(const tmp<volVectorField>&) const; 00104 00105 virtual tmp<volSymmTensorField> operator() 00106 ( 00107 const tmp<volSymmTensorField>& 00108 ) const; 00109 00110 virtual tmp<volTensorField> operator()(const tmp<volTensorField>&) const; 00111 }; 00112 00113 00114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00115 00116 } // End namespace Foam 00117 00118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00119 00120 #endif 00121 00122 // ************************ vim: set sw=4 sts=4 et: ************************ //