laminarFlameSpeed.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 Namespace
25  Foam::laminarFlameSpeedModels
26 
27 Description
28  Namespace for laminar flame speed models
29 
30 
31 Class
32  Foam::laminarFlameSpeed
33 
34 Description
35  Abstract class for laminar flame speed
36 
37 SourceFiles
38  laminarFlameSpeed.C
39  laminarFlameSpeedNew.C
40 
41 \*---------------------------------------------------------------------------*/
42 
43 #ifndef laminarFlameSpeed_H
44 #define laminarFlameSpeed_H
45 
47 #include "runTimeSelectionTables.H"
48 
49 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 
51 namespace Foam
52 {
53 
54 /*---------------------------------------------------------------------------*\
55  Class laminarFlameSpeed Declaration
56 \*---------------------------------------------------------------------------*/
57 
59 {
60 protected:
61 
62  // Protected data
63 
65 
66  //- Equivalence ratio of a homogeneous mixture
67  scalar equivalenceRatio_;
68 
69 
70 public:
71 
72  //- Runtime type information
73  TypeName("laminarFlameSpeed");
74 
75 
76  // Declare run-time constructor selection table
77 
79  (
80  autoPtr,
82  dictionary,
83  (
84  const dictionary& dict,
85  const dictionary& coeffDict,
86  const psiuMulticomponentThermo& ct
87  ),
88  (dict, coeffDict, ct)
89  );
90 
91 
92  // Constructors
93 
94  //- Construct from dictionary and psiuMulticomponentThermo
96  (
97  const dictionary&,
99  );
100 
101  //- Disallow default bitwise copy construction
102  laminarFlameSpeed(const laminarFlameSpeed&) = delete;
103 
104 
105  // Selector
106 
108  (
109  const dictionary&,
111  );
112 
113 
114  //- Destructor
115  virtual ~laminarFlameSpeed();
116 
117 
118  // Member Operators
119 
120  //- Return the laminar flame speed [m/s]
121  virtual tmp<volScalarField> operator()() const = 0;
122 
123  //- Disallow default bitwise assignment
124  void operator=(const laminarFlameSpeed&) = delete;
125 };
126 
127 
128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 
130 } // End namespace Foam
131 
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
133 
134 #endif
135 
136 // ************************************************************************* //
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
Abstract class for laminar flame speed.
laminarFlameSpeed(const dictionary &, const psiuMulticomponentThermo &)
Construct from dictionary and psiuMulticomponentThermo.
declareRunTimeSelectionTable(autoPtr, laminarFlameSpeed, dictionary,(const dictionary &dict, const dictionary &coeffDict, const psiuMulticomponentThermo &ct),(dict, coeffDict, ct))
void operator=(const laminarFlameSpeed &)=delete
Disallow default bitwise assignment.
virtual tmp< volScalarField > operator()() const =0
Return the laminar flame speed [m/s].
const psiuMulticomponentThermo & psiuMulticomponentThermo_
TypeName("laminarFlameSpeed")
Runtime type information.
static autoPtr< laminarFlameSpeed > New(const dictionary &, const psiuMulticomponentThermo &)
virtual ~laminarFlameSpeed()
Destructor.
scalar equivalenceRatio_
Equivalence ratio of a homogeneous mixture.
Base-class for combustion fluid thermodynamic properties based on compressibility.
A class for managing temporary objects.
Definition: tmp.H:55
Namespace for OpenFOAM.
Macros to ease declaration of run-time selection tables.
dictionary dict