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
ReactingMultiphase
DevolatilisationModel
ConstantRateDevolatilisation
ConstantRateDevolatilisation.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) 2008-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::ConstantRateDevolatilisation
26
27
Description
28
Constant rate devolatisation model
29
- need to set vapourisation temperature to 600 K
30
31
\*---------------------------------------------------------------------------*/
32
33
#ifndef ConstantRateDevolatilisation_H
34
#define ConstantRateDevolatilisation_H
35
36
#include <
lagrangianIntermediate/DevolatilisationModel.H
>
37
38
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
39
40
namespace
Foam
41
{
42
/*---------------------------------------------------------------------------*\
43
Class ConstantRateDevolatilisation Declaration
44
\*---------------------------------------------------------------------------*/
45
46
template
<
class
CloudType>
47
class
ConstantRateDevolatilisation
48
:
49
public
DevolatilisationModel
<CloudType>
50
{
51
// Private data
52
53
// Model constants
54
55
//- Rate constant (suggested default = 12) [1/s]
56
const
scalar A0_;
57
58
//- Volatile residual coefficient (0-1)
59
// When the fraction of volatiles are depleted below this
60
// threshold, combustion can occur
61
const
scalar volatileResidualCoeff_;
62
63
64
public
:
65
66
//- Runtime type information
67
TypeName
(
"ConstantRateDevolatilisation"
);
68
69
70
// Constructors
71
72
//- Construct from dictionary
73
ConstantRateDevolatilisation
74
(
75
const
dictionary
&
dict
,
76
CloudType&
owner
77
);
78
79
80
//- Destructor
81
virtual
~ConstantRateDevolatilisation
();
82
83
84
// Member Functions
85
86
//- Flag to indicate whether model activates devolatilisation model
87
virtual
bool
active
()
const
;
88
89
//- Update model
90
virtual
scalar
calculate
91
(
92
const
scalar dt,
93
const
scalar mass0,
94
const
scalar mass,
95
const
scalar
T
,
96
const
scalar YVolatile0,
97
const
scalar YVolatile,
98
bool
& canCombust
99
)
const
;
100
};
101
102
103
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
104
105
}
// End namespace Foam
106
107
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108
109
#ifdef NoRepository
110
# include <
lagrangianIntermediate/ConstantRateDevolatilisation.C
>
111
#endif
112
113
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114
115
#endif
116
117
// ************************ vim: set sw=4 sts=4 et: ************************ //