Home
Downloads
Documentation
Installation
User Guide
man-pages
API Documentation
README
Release Notes
Changes
License
Support
SourceForge Project
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
turbulenceModels
LES
LESdeltas
LESdelta
LESdelta.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 | Copyright (C) 1991-2010 OpenCFD Ltd.
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::LESdelta
26
27
Description
28
Abstract base class for LES deltas
29
30
SourceFiles
31
LESdelta.C
32
newDelta.C
33
34
\*---------------------------------------------------------------------------*/
35
36
#ifndef LESdelta_H
37
#define LESdelta_H
38
39
#include <
finiteVolume/volFields.H
>
40
#include <
OpenFOAM/typeInfo.H
>
41
#include <
OpenFOAM/autoPtr.H
>
42
#include <
OpenFOAM/runTimeSelectionTables.H
>
43
44
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45
46
namespace
Foam
47
{
48
49
class
fvMesh;
50
51
/*---------------------------------------------------------------------------*\
52
Class LESdelta Declaration
53
\*---------------------------------------------------------------------------*/
54
55
class
LESdelta
56
{
57
58
protected
:
59
60
// Protected data
61
62
const
fvMesh
&
mesh_
;
63
64
volScalarField
delta_
;
65
66
67
private
:
68
69
// Private Member Functions
70
71
// Disallow default bitwise copy construct and assignment
72
LESdelta
(
const
LESdelta
&);
73
void
operator=(
const
LESdelta
&);
74
75
76
public
:
77
78
//- Runtime type information
79
TypeName
(
"LESdelta"
);
80
81
82
// Declare run-time constructor selection table
83
84
declareRunTimeSelectionTable
85
(
86
autoPtr
,
87
LESdelta
,
88
dictionary
,
89
(
90
const
word
&
name
,
91
const
fvMesh
&
mesh
,
92
const
dictionary
& LESdeltaDict
93
),
94
(name, mesh, LESdeltaDict)
95
);
96
97
98
// Constructors
99
100
//- Construct from name and mesh
101
LESdelta
(
const
word
& name,
const
fvMesh
&);
102
103
104
// Selectors
105
106
//- Return a reference to the selected LES delta
107
static
autoPtr<LESdelta>
New
108
(
109
const
word
& name,
110
const
fvMesh
&,
111
const
dictionary
&
112
);
113
114
115
//- Destructor
116
virtual
~LESdelta
()
117
{}
118
119
120
// Member Functions
121
122
//- Return mesh reference
123
const
fvMesh
&
mesh
()
const
124
{
125
return
mesh_
;
126
}
127
128
//- Read the LESdelta dictionary
129
virtual
void
read
(
const
dictionary
&) = 0;
130
131
// Correct values
132
virtual
void
correct
() = 0;
133
134
135
// Member Operators
136
137
virtual
operator
const
volScalarField
&()
const
138
{
139
return
delta_
;
140
}
141
};
142
143
144
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
145
146
}
// End namespace Foam
147
148
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
149
150
#endif
151
152
// ************************ vim: set sw=4 sts=4 et: ************************ //