OpenFOAM: API Guide
v2112
The open source CFD toolbox
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
-------------------------------------------------------------------------------
11
License
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
27
Class
28
Foam::anisotropicFilter
29
30
Description
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
41
SourceFiles
42
anisotropicFilter.C
43
44
\*---------------------------------------------------------------------------*/
45
46
#ifndef anisotropicFilter_H
47
#define anisotropicFilter_H
48
49
#include "
LESfilter.H
"
50
51
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52
53
namespace
Foam
54
{
55
56
/*---------------------------------------------------------------------------*\
57
Class anisotropicFilter Declaration
58
\*---------------------------------------------------------------------------*/
59
60
class
anisotropicFilter
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
79
public
:
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
90
anisotropicFilter
(
const
fvMesh
&
mesh
,
const
dictionary
&);
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
(
107
const
tmp<volScalarField>
&
108
)
const
;
109
110
virtual
tmp<volVectorField>
operator()
111
(
112
const
tmp<volVectorField>
&
113
)
const
;
114
115
virtual
tmp<volSymmTensorField>
operator()
116
(
117
const
tmp<volSymmTensorField>
&
118
)
const
;
119
120
virtual
tmp<volTensorField>
operator()
121
(
122
const
tmp<volTensorField>
&
123
)
const
;
124
};
125
126
127
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128
129
}
// End namespace Foam
130
131
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132
133
#endif
134
135
// ************************************************************************* //
Foam::anisotropicFilter
anisotropic filter
Definition:
anisotropicFilter.H:59
Foam::tmp
A class for managing temporary objects.
Definition:
PtrList.H:61
Foam::anisotropicFilter::TypeName
TypeName("anisotropic")
Runtime type information.
Foam::LESfilter::mesh
const fvMesh & mesh() const
Return mesh reference.
Definition:
LESfilter.H:138
LESfilter.H
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition:
dictionary.H:123
Foam::LESfilter
Abstract class for LES filters.
Definition:
LESfilter.H:57
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition:
fvMesh.H:85
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.C:33
Foam::anisotropicFilter::~anisotropicFilter
virtual ~anisotropicFilter()=default
Destructor.
Foam::GeometricField< vector, fvPatchField, volMesh >
Foam::anisotropicFilter::read
virtual void read(const dictionary &)
Read the LESfilter dictionary.
Definition:
anisotropicFilter.C:124
src
TurbulenceModels
turbulenceModels
LES
LESfilters
anisotropicFilter
anisotropicFilter.H
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.