reactionRateFlameArea.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) 2011-2024 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  //- Mesh reference
63  const fvMesh& mesh_;
64 
65  //- Combustion model owner
67 
68  //- Fuel name
69  word fuel_;
70 
71  //- Fuel consumption rate per unit of flame area
73 
74 
75 public:
76 
77  //- Runtime type information
78  TypeName("reactionRateFlameArea");
79 
80 
81  // Declare run-time constructor selection table
82 
84  (
85  autoPtr,
87  dictionary,
88  (
89  const word modelType,
90  const dictionary& dict,
91  const dictionary& coeffDict,
92  const fvMesh& mesh,
93  const combustionModel& combModel
94  ),
95  (modelType, dict, coeffDict, mesh, combModel)
96  );
97 
98 
99  // Constructors
100 
101  //- Construct from components
103  (
104  const word& modelType,
105  const dictionary& dict,
106  const fvMesh& mesh,
107  const combustionModel& combModel
108  );
109 
110  //- Disallow default bitwise copy construction
112 
113 
114  // Selector
115 
117  (
118  const dictionary& dict,
119  const fvMesh& mesh,
120  const combustionModel& combModel
121  );
122 
123 
124  // Destructor
125 
126  virtual ~reactionRateFlameArea();
127 
128 
129  // Member Functions
130 
131  //- Access functions
132 
133  //- Return omega
134  const volScalarField& omega() const
135  {
136  return omega_;
137  }
138 
139 
140  //- Correct omega
141  virtual void correct(const volScalarField& sigma) = 0;
142 
143  //- Update from dictionary
144  virtual bool read(const dictionary& dictProperties);
145 
146 
147  // Member Operators
148 
149  //- Disallow default bitwise assignment
150  void operator=(const reactionRateFlameArea&) = delete;
151 };
152 
153 
154 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
155 
156 } // End namespace Foam
157 
158 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
159 
160 #endif
161 
162 // ************************************************************************* //
Generic GeometricField class.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
Base class for combustion models.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:96
Abstract class for reaction rate per flame area unit.
const combustionModel & combModel_
Combustion model owner.
const fvMesh & mesh_
Mesh reference.
declareRunTimeSelectionTable(autoPtr, reactionRateFlameArea, dictionary,(const word modelType, const dictionary &dict, const dictionary &coeffDict, const fvMesh &mesh, const combustionModel &combModel),(modelType, dict, coeffDict, mesh, combModel))
reactionRateFlameArea(const word &modelType, const dictionary &dict, const fvMesh &mesh, const combustionModel &combModel)
Construct from components.
const volScalarField & omega() const
Access functions.
void operator=(const reactionRateFlameArea &)=delete
Disallow default bitwise assignment.
TypeName("reactionRateFlameArea")
Runtime type information.
volScalarField omega_
Fuel consumption rate per unit of flame area.
virtual void correct(const volScalarField &sigma)=0
Correct omega.
static autoPtr< reactionRateFlameArea > New(const dictionary &dict, const fvMesh &mesh, const combustionModel &combModel)
virtual bool read(const dictionary &dictProperties)
Update from dictionary.
A class for handling words, derived from string.
Definition: word.H:62
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m^2/K^4].
Namespace for OpenFOAM.
Macros to ease declaration of run-time selection tables.
dictionary dict