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
applications
solvers
combustion
PDRFoam
XiModels
XiGModels
XiGModel
XiGModel.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::XiGModel
26
27
Description
28
Base-class for all Xi generation models used by the b-Xi combustion model.
29
See Technical Report SH/RE/01R for details on the PDR modelling. For details
30
on the use of XiGModel see \link XiModel.H \endlink. The model available is
31
\link instabilityG.H \endlink
32
33
SourceFiles
34
XiGModel.C
35
36
\*---------------------------------------------------------------------------*/
37
38
#ifndef XiGModel_H
39
#define XiGModel_H
40
41
#include <
OpenFOAM/IOdictionary.H
>
42
#include <
reactionThermophysicalModels/hhuCombustionThermo.H
>
43
#include <
compressibleRASModels/RASModel.H
>
44
#include <
OpenFOAM/runTimeSelectionTables.H
>
45
46
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47
48
namespace
Foam
49
{
50
51
/*---------------------------------------------------------------------------*\
52
Class XiGModel Declaration
53
\*---------------------------------------------------------------------------*/
54
55
class
XiGModel
56
{
57
58
protected
:
59
60
// Protected data
61
62
dictionary
XiGModelCoeffs_
;
63
64
const
hhuCombustionThermo
&
thermo_
;
65
const
compressible::RASModel
&
turbulence_
;
66
const
volScalarField
&
Su_
;
67
68
69
private
:
70
71
// Private Member Functions
72
73
//- Disallow copy construct
74
XiGModel
(
const
XiGModel
&);
75
76
//- Disallow default bitwise assignment
77
void
operator=(
const
XiGModel
&);
78
79
80
public
:
81
82
//- Runtime type information
83
TypeName
(
"XiGModel"
);
84
85
86
// Declare run-time constructor selection table
87
88
declareRunTimeSelectionTable
89
(
90
autoPtr
,
91
XiGModel
,
92
dictionary
,
93
(
94
const
dictionary
& XiGProperties,
95
const
hhuCombustionThermo
&
thermo
,
96
const
compressible::RASModel
&
turbulence
,
97
const
volScalarField
&
Su
98
),
99
(
100
XiGProperties,
101
thermo,
102
turbulence,
103
Su
104
)
105
);
106
107
108
// Selectors
109
110
//- Return a reference to the selected XiG model
111
static
autoPtr<XiGModel>
New
112
(
113
const
dictionary
& XiGProperties,
114
const
hhuCombustionThermo
& thermo,
115
const
compressible::RASModel
& turbulence,
116
const
volScalarField
& Su
117
);
118
119
120
// Constructors
121
122
//- Construct from components
123
XiGModel
124
(
125
const
dictionary
& XiGProperties,
126
const
hhuCombustionThermo
& thermo,
127
const
compressible::RASModel
& turbulence,
128
const
volScalarField
& Su
129
);
130
131
132
// Destructor
133
134
virtual
~XiGModel
();
135
136
137
// Member Functions
138
139
//- Return the flame-wrinking genration rate
140
virtual
tmp<volScalarField>
G
()
const
= 0;
141
142
//- Return the flame diffusivity
143
virtual
tmp<volScalarField>
Db
()
const
144
{
145
return
turbulence_
.muEff();
146
}
147
148
//- Update properties from given dictionary
149
virtual
bool
read
(
const
dictionary
& XiGProperties) = 0;
150
};
151
152
153
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
154
155
}
// End namespace Foam
156
157
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
158
159
#endif
160
161
// ************************ vim: set sw=4 sts=4 et: ************************ //