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::laplaceFilter 00026 00027 Description 00028 Laplace filter for LES 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 laplaceFilter.C 00040 00041 \*---------------------------------------------------------------------------*/ 00042 00043 #ifndef laplaceFilter_H 00044 #define laplaceFilter_H 00045 00046 #include <LESfilters/LESfilter.H> 00047 00048 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00049 00050 namespace Foam 00051 { 00052 00053 /*---------------------------------------------------------------------------*\ 00054 Class laplaceFilter Declaration 00055 \*---------------------------------------------------------------------------*/ 00056 00057 class laplaceFilter 00058 : 00059 public LESfilter 00060 { 00061 // Private data 00062 00063 scalar widthCoeff_; 00064 volScalarField coeff_; 00065 00066 00067 // Private Member Functions 00068 00069 //- Disallow default bitwise copy construct and assignment 00070 laplaceFilter(const laplaceFilter&); 00071 void operator=(const laplaceFilter&); 00072 00073 00074 public: 00075 00076 //- Runtime type information 00077 TypeName("laplace"); 00078 00079 00080 // Constructors 00081 00082 //- Construct from components 00083 laplaceFilter(const fvMesh& mesh, scalar widthCoeff); 00084 00085 //- Construct from IOdictionary 00086 laplaceFilter(const fvMesh& mesh, const dictionary&); 00087 00088 00089 //- Destructor 00090 virtual ~laplaceFilter() 00091 {} 00092 00093 00094 // Member Functions 00095 00096 //- Read the LESfilter dictionary 00097 virtual void read(const dictionary&); 00098 00099 00100 // Member Operators 00101 00102 virtual tmp<volScalarField> operator()(const tmp<volScalarField>&) const; 00103 00104 virtual tmp<volVectorField> operator()(const tmp<volVectorField>&) const; 00105 00106 virtual tmp<volSymmTensorField> operator() 00107 ( 00108 const tmp<volSymmTensorField>& 00109 ) const; 00110 00111 virtual tmp<volTensorField> operator()(const tmp<volTensorField>&) const; 00112 }; 00113 00114 00115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00116 00117 } // End namespace Foam 00118 00119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00120 00121 #endif 00122 00123 // ************************ vim: set sw=4 sts=4 et: ************************ //