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-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::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 components
116  (
117  const word& modelType,
118  const dictionary& dict,
119  const fvMesh& mesh,
120  const combustionModel& combModel
121  );
122 
123 
124  // Selector
125 
127  (
128  const dictionary& dict,
129  const fvMesh& mesh,
130  const combustionModel& combModel
131  );
132 
133 
134  // Destructor
135 
136  virtual ~reactionRateFlameArea();
137 
138 
139  // Member functions
140 
141  //- Access functions
142 
143  //- Return omega
144  const volScalarField& omega() const
145  {
146  return omega_;
147  }
148 
149 
150  //- Correct omega
151  virtual void correct(const volScalarField& sigma) = 0;
152 
153  //- Update from dictionary
154  virtual bool read(const dictionary& dictProperties);
155 };
156 
157 
158 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
159 
160 } // End namespace Foam
161 
162 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
163 
164 #endif
165 
166 // ************************************************************************* //
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.
const volScalarField & omega() const
Access functions.
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:52
Macros to ease declaration of run-time selection tables.
const fvMesh & mesh_
Mesh reference.
static autoPtr< reactionRateFlameArea > New(const dictionary &dict, const fvMesh &mesh, const combustionModel &combModel)
Namespace for OpenFOAM.