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-2019 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 template<class ReactionThermo, class ThermoType>
54 class diffusion
55 :
56  public singleStepCombustion<ReactionThermo, ThermoType>
57 {
58  // Private Data
59 
60  //- Model constant
61  scalar C_;
62 
63  //- Name of oxidant - default is "O2"
64  word oxidantName_;
65 
66 
67 public:
68 
69  //- Runtime type information
70  TypeName("diffusion");
71 
72 
73  // Constructors
74 
75  //- Construct from components
76  diffusion
77  (
78  const word& modelType,
79  ReactionThermo& thermo,
80  const compressibleTurbulenceModel& turb,
81  const word& combustionProperties
82  );
83 
84  //- Disallow default bitwise copy construction
85  diffusion(const diffusion&);
86 
87 
88  //- Destructor
89  virtual ~diffusion();
90 
91 
92  // Member Functions
93 
94  //- Correct combustion rate
95  virtual void correct();
96 
97  //- Update properties
98  virtual bool read();
99 
100 
101  // Member Operators
102 
103  //- Disallow default bitwise assignment
104  void operator=(const diffusion&) = delete;
105 };
106 
107 
108 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
109 
110 } // End namespace combustionModels
111 } // End namespace Foam
112 
113 
114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115 
116 #ifdef NoRepository
117  #include "diffusion.C"
118 #endif
119 
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 
122 #endif
123 
124 // ************************************************************************* //
diffusion(const word &modelType, ReactionThermo &thermo, const compressibleTurbulenceModel &turb, const word &combustionProperties)
Construct from components.
Definition: diffusion.C:38
virtual void correct()
Correct combustion rate.
Definition: diffusion.C:67
virtual bool read()
Update properties.
Definition: diffusion.C:92
A class for handling words, derived from string.
Definition: word.H:59
virtual ReactionThermo & thermo()
Return access to the thermo package.
Abstract base class for turbulence models (RAS, LES and laminar).
TypeName("diffusion")
Runtime type information.
virtual ~diffusion()
Destructor.
Definition: diffusion.C:60
Base class for combustion models using singleStepReactingMixture.
Simple diffusion-based combustion model based on the principle mixed is burnt. Additional parameter C...
Definition: diffusion.H:53
void operator=(const diffusion &)=delete
Disallow default bitwise assignment.
Namespace for OpenFOAM.