OpenFOAM: API Guide
v2112
The open source CFD toolbox
diffusion.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) 2012-2017 OpenFOAM Foundation
9
-------------------------------------------------------------------------------
10
License
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
26
Class
27
Foam::combustionModels::diffusion
28
29
Group
30
grpCombustionModels
31
32
Description
33
Simple diffusion-based combustion model based on the principle mixed is
34
burnt. Additional parameter C is used to distribute the heat release rate
35
in time.
36
37
SourceFiles
38
diffusion.C
39
40
\*---------------------------------------------------------------------------*/
41
42
#ifndef diffusion_H
43
#define diffusion_H
44
45
#include "
singleStepCombustion.H
"
46
47
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48
49
namespace
Foam
50
{
51
namespace
combustionModels
52
{
53
54
/*---------------------------------------------------------------------------*\
55
Class diffusion Declaration
56
\*---------------------------------------------------------------------------*/
57
58
template
<
class
ReactionThermo,
class
ThermoType>
59
class
diffusion
60
:
61
public
singleStepCombustion
<ReactionThermo, ThermoType>
62
{
63
// Private data
64
65
//- Model constant
66
scalar C_;
67
68
//- Name of oxidant - default is "O2"
69
word
oxidantName_;
70
71
72
// Private Member Functions
73
74
//- No copy construct
75
diffusion
(
const
diffusion
&) =
delete
;
76
77
//- No copy assignment
78
void
operator=(
const
diffusion
&) =
delete
;
79
80
81
public
:
82
83
//- Runtime type information
84
TypeName
(
"diffusion"
);
85
86
87
// Constructors
88
89
//- Construct from components
90
diffusion
91
(
92
const
word
& modelType,
93
ReactionThermo&
thermo
,
94
const
compressibleTurbulenceModel
&
turb
,
95
const
word
& combustionProperties
96
);
97
98
99
//- Destructor
100
virtual
~diffusion
();
101
102
103
// Member Functions
104
105
//- Correct combustion rate
106
virtual
void
correct
();
107
108
//- Update properties
109
virtual
bool
read
();
110
};
111
112
113
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114
115
}
// End namespace combustionModels
116
}
// End namespace Foam
117
118
119
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120
121
#ifdef NoRepository
122
#include "
diffusion.C
"
123
#endif
124
125
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126
127
#endif
128
129
// ************************************************************************* //
Foam::word
A class for handling words, derived from Foam::string.
Definition:
word.H:65
Foam::combustionModels::diffusion::TypeName
TypeName("diffusion")
Runtime type information.
Foam::combustionModels::diffusion::read
virtual bool read()
Update properties.
Definition:
diffusion.C:98
singleStepCombustion.H
thermo
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
Foam::combustionModels::singleStepCombustion
Base class for combustion models using singleStepReactingMixture.
Definition:
singleStepCombustion.H:58
Foam::combustionModels::diffusion::~diffusion
virtual ~diffusion()
Destructor.
Definition:
diffusion.C:63
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.C:33
Foam::combustionModels::diffusion
Simple diffusion-based combustion model based on the principle mixed is burnt. Additional parameter C...
Definition:
diffusion.H:58
Foam::combustionModels::diffusion::correct
virtual void correct()
Correct combustion rate.
Definition:
diffusion.C:70
turb
compressible::turbulenceModel & turb
Definition:
setRegionFluidFields.H:10
Foam::compressibleTurbulenceModel
Abstract base class for turbulence models (RAS, LES and laminar).
Definition:
compressibleTurbulenceModel.H:54
diffusion.C
src
combustionModels
diffusion
diffusion.H
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.