reactionRateFlameArea.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-2013 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::reactionRateFlameArea
26 
27 Description
28  Abstract class for reaction rate per flame area unit
29 
30 SourceFiles
31  reactionRateFlameArea.C
32  reactionRateFlameAreaNew.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef reactionRateFlameArea_H
37 #define reactionRateFlameArea_H
38 
39 #include "runTimeSelectionTables.H"
40 #include "dictionary.H"
41 #include "autoPtr.H"
42 #include "volFields.H"
43 #include "combustionModel.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 class fvMesh;
50 
51 /*---------------------------------------------------------------------------*\
52  Class reactionRateFlameArea Declaration
53 \*---------------------------------------------------------------------------*/
54 
56 {
57 
58 protected:
59 
60  // Protected data
61 
62  //- Dictionary
64 
65  //- Mesh reference
66  const fvMesh& mesh_;
67 
68  //- Combstion model owner
70 
71  //- Fuel name
72  word fuel_;
73 
74  //- Fuel consumption rate per unit of flame area
76 
77 
78 private:
79 
80  // Private member functions
81 
82  //- Disallow copy construct
84 
85  //- Disallow default bitwise assignment
86  void operator=(const reactionRateFlameArea&);
87 
88 
89 public:
90 
91  //- Runtime type information
92  TypeName("reactionRateFlameArea");
93 
94 
95  // Declare run-time constructor selection table
96 
98  (
99  autoPtr,
101  dictionary,
102  (
103  const word modelType,
104  const dictionary& dict,
105  const fvMesh& mesh,
106  const combustionModel& combModel
107  ),
108  (modelType, dict, mesh, combModel)
109  );
110 
111 
112  // Constructors
113 
114  //- Construct from dictionary and psiReactionThermo
116  (
117  const dictionary& dict,
118  const fvMesh& mesh,
119  const combustionModel& combModel
120  );
121 
122  //- Construct from components
124  (
125  const word& modelType,
126  const dictionary& dict,
127  const fvMesh& mesh,
128  const combustionModel& combModel
129  );
130 
131 
132  // Selector
133 
135  (
136  const dictionary& dict,
137  const fvMesh& mesh,
138  const combustionModel& combModel
139  );
140 
141 
142  // Destructor
143 
144  virtual ~reactionRateFlameArea();
145 
146 
147  // Member functions
148 
149  //- Access functions
150 
151  //- Return omega
152  const volScalarField& omega() const
153  {
154  return omega_;
155  }
156 
157 
158  //- Correct omega
159  virtual void correct(const volScalarField& sigma) = 0;
160 
161  //- Update from dictionary
162  virtual bool read(const dictionary& dictProperties);
163 
164 };
165 
166 
167 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
168 
169 } // End namespace Foam
170 
171 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
172 
173 #endif
174 
175 // ************************************************************************* //
dictionary dict
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m2/K4].
Abstract class for reaction rate per flame area unit.
virtual bool read(const dictionary &dictProperties)
Update from dictionary.
const combustionModel & combModel_
Combstion model owner.
declareRunTimeSelectionTable(autoPtr, reactionRateFlameArea, dictionary,(const word modelType, const dictionary &dict, const fvMesh &mesh, const combustionModel &combModel),(modelType, dict, mesh, combModel))
dynamicFvMesh & mesh
A class for handling words, derived from string.
Definition: word.H:59
volScalarField omega_
Fuel consumption rate per unit of flame area.
Base class for combustion models.
dictionary coeffDict_
Dictionary.
virtual void correct(const volScalarField &sigma)=0
Correct omega.
TypeName("reactionRateFlameArea")
Runtime type information.
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:53
Macros to ease declaration of run-time selection tables.
const fvMesh & mesh_
Mesh reference.
const volScalarField & omega() const
Access functions.
static autoPtr< reactionRateFlameArea > New(const dictionary &dict, const fvMesh &mesh, const combustionModel &combModel)
Namespace for OpenFOAM.