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-------------------------------------------------------------------------------
10License
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
26Class
27 Foam::combustionModels::diffusion
28
29Group
30 grpCombustionModels
31
32Description
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
37SourceFiles
38 diffusion.C
39
40\*---------------------------------------------------------------------------*/
41
42#ifndef diffusion_H
43#define diffusion_H
44
46
47// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48
49namespace Foam
50{
51namespace combustionModels
52{
53
54/*---------------------------------------------------------------------------*\
55 Class diffusion Declaration
56\*---------------------------------------------------------------------------*/
57
58template<class ReactionThermo, class ThermoType>
59class 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
81public:
82
83 //- Runtime type information
84 TypeName("diffusion");
85
86
87 // Constructors
88
89 //- Construct from components
91 (
92 const word& modelType,
93 ReactionThermo& thermo,
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// ************************************************************************* //
compressible::turbulenceModel & turb
Simple diffusion-based combustion model based on the principle mixed is burnt. Additional parameter C...
Definition: diffusion.H:61
virtual void correct()
Correct combustion rate.
Definition: diffusion.C:70
virtual ~diffusion()
Destructor.
Definition: diffusion.C:63
TypeName("diffusion")
Runtime type information.
virtual bool read()
Update properties.
Definition: diffusion.C:98
Base class for combustion models using singleStepReactingMixture.
Abstract base class for turbulence models (RAS, LES and laminar).
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
A class for handling words, derived from Foam::string.
Definition: word.H:68
Namespace for OpenFOAM.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73