simpleFilter.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-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
14 under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26Class
27 Foam::simpleFilter
28
29Description
30 Simple top-hat filter used in dynamic LES models.
31
32 Implemented as a surface integral of the face interpolate of the field.
33
34SourceFiles
35 simpleFilter.C
36
37\*---------------------------------------------------------------------------*/
38
39#ifndef simpleFilter_H
40#define simpleFilter_H
41
42#include "LESfilter.H"
43
44// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45
46namespace Foam
47{
48
49/*---------------------------------------------------------------------------*\
50 Class simpleFilter Declaration
51\*---------------------------------------------------------------------------*/
53class simpleFilter
54:
55 public LESfilter
56
57{
58 // Private Member Functions
59
60 //- No copy construct
61 simpleFilter(const simpleFilter&) = delete;
62
63 //- No copy assignment
64 void operator=(const simpleFilter&) = delete;
65
66
67public:
68
69 //- Runtime type information
70 TypeName("simple");
71
72
73 // Constructors
74
75 //- Construct from components
76 simpleFilter(const fvMesh& mesh);
77
78 //- Construct from IOdictionary
79 simpleFilter(const fvMesh& mesh, const dictionary&);
80
81
82 //- Destructor
83 virtual ~simpleFilter() = default;
84
85
86 // Member Functions
87
88 //- Read the LESfilter dictionary
89 virtual void read(const dictionary&);
90
91
92 // Member Operators
93
94 virtual tmp<volScalarField> operator()
95 (
97 ) const;
98
99 virtual tmp<volVectorField> operator()
100 (
102 ) const;
103
104 virtual tmp<volSymmTensorField> operator()
105 (
107 ) const;
108
109 virtual tmp<volTensorField> operator()
110 (
112 ) const;
113};
114
115
116// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117
118} // End namespace Foam
119
120// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121
122#endif
123
124// ************************************************************************* //
Abstract class for LES filters.
Definition: LESfilter.H:58
const fvMesh & mesh() const
Return mesh reference.
Definition: LESfilter.H:138
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
Simple top-hat filter used in dynamic LES models.
Definition: simpleFilter.H:56
TypeName("simple")
Runtime type information.
virtual void read(const dictionary &)
Read the LESfilter dictionary.
Definition: simpleFilter.C:60
virtual ~simpleFilter()=default
Destructor.
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