infinitelyFastChemistry.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) 2011-2016 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::infinitelyFastChemistry
26 
27 Description
28  Simple infinitely fast chemistry combustion model based on the principle
29  mixed is burnt. Additional parameter C is used to distribute the heat
30  release rate.in time
31 
32 SourceFiles
33  infinitelyFastChemistry.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef infinitelyFastChemistry_H
38 #define infinitelyFastChemistry_H
39 
40 #include "singleStepCombustion.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 namespace combustionModels
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class infinitelyFastChemistry Declaration
51 \*---------------------------------------------------------------------------*/
52 
53 template<class CombThermoType, class ThermoType>
55 :
56  public singleStepCombustion<CombThermoType, ThermoType>
57 {
58  // Private data
59 
60  //- Model constant
61  scalar C_;
62 
63 
64  // Private Member Functions
65 
66  //- Disallow copy construct
68 
69  //- Disallow default bitwise assignment
70  void operator=(const infinitelyFastChemistry&);
71 
72 
73 public:
74 
75  //- Runtime type information
76  TypeName("infinitelyFastChemistry");
77 
78 
79  // Constructors
80 
81  //- Construct from components
83  (
84  const word& modelType,
85  const fvMesh& mesh,
86  const word& phaseName
87  );
88 
89 
90  //- Destructor
91  virtual ~infinitelyFastChemistry();
92 
93 
94  // Member Functions
95 
96  // Evolution
97 
98  //- Correct combustion rate
99  virtual void correct();
100 
101 
102  // IO
103 
104  //- Update properties
105  virtual bool read();
106 };
107 
108 
109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
110 
111 } // End namespace combustionModels
112 } // End namespace Foam
113 
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 #ifdef NoRepository
118  #include "infinitelyFastChemistry.C"
119 #endif
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 #endif
124 
125 // ************************************************************************* //
Simple infinitely fast chemistry combustion model based on the principle mixed is burnt...
TypeName("infinitelyFastChemistry")
Runtime type information.
dynamicFvMesh & mesh
A class for handling words, derived from string.
Definition: word.H:59
virtual void correct()
Correct combustion rate.
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
Base class for combustion models using singleStepReactingMixture.
Namespace for OpenFOAM.