diffusion.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2012-2022 OpenFOAM Foundation
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::combustionModels::diffusion
26 
27 Description
28  Simple diffusion-based combustion model based on the principle mixed is
29  burnt. Additional parameter C is used to distribute the heat release rate
30  in time.
31 
32 SourceFiles
33  diffusion.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef diffusion_H
38 #define diffusion_H
39 
40 #include "singleStepCombustion.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 namespace combustionModels
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class diffusion Declaration
51 \*---------------------------------------------------------------------------*/
52 
53 class diffusion
54 :
56 {
57  // Private Data
58 
59  //- Model constant
60  scalar C_;
61 
62  //- Name of oxidant - default is "O2"
63  word oxidantName_;
64 
65 
66 public:
67 
68  //- Runtime type information
69  TypeName("diffusion");
70 
71 
72  // Constructors
73 
74  //- Construct from components
75  diffusion
76  (
77  const word& modelType,
80  const word& combustionProperties
81  );
82 
83  //- Disallow default bitwise copy construction
84  diffusion(const diffusion&) = delete;
85 
86 
87  //- Destructor
88  virtual ~diffusion();
89 
90 
91  // Member Functions
92 
93  //- Correct combustion rate
94  virtual void correct();
95 
96  //- Update properties
97  virtual bool read();
98 
99 
100  // Member Operators
101 
102  //- Disallow default bitwise assignment
103  void operator=(const diffusion&) = delete;
104 };
105 
106 
107 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108 
109 } // End namespace combustionModels
110 } // End namespace Foam
111 
112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 
114 #endif
115 
116 // ************************************************************************* //
const fluidMulticomponentThermo & thermo() const
Return const access to the thermo.
Simple diffusion-based combustion model based on the principle mixed is burnt. Additional parameter C...
Definition: diffusion.H:55
virtual void correct()
Correct combustion rate.
Definition: diffusion.C:73
virtual ~diffusion()
Destructor.
Definition: diffusion.C:67
TypeName("diffusion")
Runtime type information.
void operator=(const diffusion &)=delete
Disallow default bitwise assignment.
diffusion(const word &modelType, const fluidMulticomponentThermo &thermo, const compressibleMomentumTransportModel &turb, const word &combustionProperties)
Construct from components.
Definition: diffusion.C:46
virtual bool read()
Update properties.
Definition: diffusion.C:96
Base class for single-step combustion models.
Base class for single-phase compressible turbulence models.
Base-class for multi-component fluid thermodynamic properties.
A class for handling words, derived from string.
Definition: word.H:62
Namespace for OpenFOAM.