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
lagrangian
intermediate
submodels
Kinematic
DispersionModel
DispersionRASModel
DispersionRASModel.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::DispersionRASModel
26
27
Description
28
29
\*---------------------------------------------------------------------------*/
30
31
#ifndef DispersionRASModel_H
32
#define DispersionRASModel_H
33
34
#include <
lagrangianIntermediate/DispersionModel.H
>
35
#include <
compressibleRASModels/RASModel.H
>
36
37
38
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
39
40
namespace
Foam
41
{
42
43
/*---------------------------------------------------------------------------*\
44
Class DispersionRASModel Declaration
45
\*---------------------------------------------------------------------------*/
46
47
template
<
class
CloudType>
48
class
DispersionRASModel
49
:
50
public
DispersionModel
<CloudType>
51
{
52
protected
:
53
54
// Protected data
55
56
//- Reference to the compressible turbulence model
57
const
compressible::RASModel
&
turbulence_
;
58
59
// Locally cached turbulence fields
60
61
//- Turbulence k
62
const
volScalarField
*
kPtr_
;
63
64
//- Take ownership of the k field
65
bool
ownK_
;
66
67
//- Turbulence epsilon
68
const
volScalarField
*
epsilonPtr_
;
69
70
//- Take ownership of the epsilon field
71
bool
ownEpsilon_
;
72
73
74
public
:
75
76
//- Runtime type information
77
TypeName
(
"DispersionRASModel"
);
78
79
80
// Constructors
81
82
//- Construct from components
83
DispersionRASModel
84
(
85
const
dictionary
&
dict
,
86
CloudType&
owner
87
);
88
89
90
//- Destructor
91
virtual
~DispersionRASModel
();
92
93
94
// Member Functions
95
96
//- Cache carrier fields
97
virtual
void
cacheFields
(
const
bool
store);
98
99
//- Return const access to the turbulence model
100
const
compressible::RASModel
&
turbulence
()
const
101
{
102
return
turbulence_
;
103
}
104
};
105
106
107
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108
109
}
// End namespace Foam
110
111
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112
113
#ifdef NoRepository
114
# include <
lagrangianIntermediate/DispersionRASModel.C
>
115
#endif
116
117
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118
119
#endif
120
121
// ************************ vim: set sw=4 sts=4 et: ************************ //