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