All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
laplaceFilter.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::laplaceFilter
26 
27 Description
28  Laplace filter for LES
29 
30  \verbatim
31  Kernel as filter as Test filter with ratio 2
32  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33  Box filter: g = delta2/24 -> g = delta2/6
34  Spherical box filter: g = delta2/64 -> g = delta2/16
35  Gaussian filter: g = delta2/24 -> g = delta2/6
36  \endverbatim
37 
38 SourceFiles
39  laplaceFilter.C
40 
41 \*---------------------------------------------------------------------------*/
42 
43 #ifndef laplaceFilter_H
44 #define laplaceFilter_H
45 
46 #include "LESfilter.H"
47 
48 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 
50 namespace Foam
51 {
52 
53 /*---------------------------------------------------------------------------*\
54  Class laplaceFilter Declaration
55 \*---------------------------------------------------------------------------*/
56 
57 class laplaceFilter
58 :
59  public LESfilter
60 {
61  // Private Data
62 
63  scalar widthCoeff_;
64  volScalarField coeff_;
65 
66 
67 public:
68 
69  //- Runtime type information
70  TypeName("laplace");
71 
72 
73  // Constructors
74 
75  //- Construct from components
76  laplaceFilter(const fvMesh& mesh, scalar widthCoeff);
77 
78  //- Construct from IOdictionary
79  laplaceFilter(const fvMesh& mesh, const dictionary&);
80 
81  //- Disallow default bitwise copy construction
82  laplaceFilter(const laplaceFilter&) = delete;
83 
84 
85  //- Destructor
86  virtual ~laplaceFilter()
87  {}
88 
89 
90  // Member Functions
91 
92  //- Read the LESfilter dictionary
93  virtual void read(const dictionary&);
94 
95 
96  // Member Operators
97 
98  virtual tmp<volScalarField> operator()
99  (
100  const tmp<volScalarField>&
101  ) const;
102 
103  virtual tmp<volVectorField> operator()
104  (
105  const tmp<volVectorField>&
106  ) const;
107 
108  virtual tmp<volSymmTensorField> operator()
109  (
111  ) const;
112 
113  virtual tmp<volTensorField> operator()
114  (
115  const tmp<volTensorField>&
116  ) const;
117 
118 
119  // Member Operators
120 
121  //- Disallow default bitwise assignment
122  void operator=(const laplaceFilter&) = delete;
123 };
124 
125 
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 
128 } // End namespace Foam
129 
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 
132 #endif
133 
134 // ************************************************************************* //
Abstract class for LES filters.
Definition: LESfilter.H:54
virtual ~laplaceFilter()
Destructor.
Definition: laplaceFilter.H:85
virtual void read(const dictionary &)
Read the LESfilter dictionary.
Definition: laplaceFilter.C:90
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
const fvMesh & mesh() const
Return mesh reference.
Definition: LESfilter.H:130
laplaceFilter(const fvMesh &mesh, scalar widthCoeff)
Construct from components.
Definition: laplaceFilter.C:43
TypeName("laplace")
Runtime type information.
void operator=(const laplaceFilter &)=delete
Disallow default bitwise assignment.
Laplace filter for LES.
Definition: laplaceFilter.H:56
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
A class for managing temporary objects.
Definition: PtrList.H:53
Namespace for OpenFOAM.