SuModel.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) 2024-2026 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::SuModel
26 
27 Description
28  Base-class for all Su models used by the b-Xi combustion model
29 
30  References:
31  \verbatim
32  Weller, H. G. (1993).
33  The development of a new flame area combustion model
34  using conditional averaging.
35  Thermo-fluids section report TF 9307.
36 
37  Weller, H. G., Tabor, G., Gosman, A. D., & Fureby, C. (1998, January).
38  Application of a flame-wrinkling LES combustion model
39  to a turbulent mixing layer.
40  In Symposium (International) on combustion
41  (Vol. 27, No. 1, pp. 899-907). Elsevier.
42  \endverbatim
43 
44 SourceFiles
45  SuModel.C
46 
47 \*---------------------------------------------------------------------------*/
48 
49 #ifndef SuModel_H
50 #define SuModel_H
51 
54 #include "runTimeSelectionTables.H"
55 
56 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
57 
58 namespace Foam
59 {
60 
61 /*---------------------------------------------------------------------------*\
62  Class SuModel Declaration
63 \*---------------------------------------------------------------------------*/
64 
65 class SuModel
66 {
67 
68 protected:
69 
70  // Protected data
71 
72  //- Thermo
74 
75  //- Turbulence
77 
78  //- Laminar flame speed
80 
81  //- Update coefficients from given dictionary
82  virtual bool readCoeffs(const dictionary& dict) = 0;
83 
84 
85 public:
86 
87  //- Runtime type information
88  TypeName("SuModel");
89 
90 
91  // Declare run-time constructor selection table
92 
94  (
95  autoPtr,
96  SuModel,
97  dictionary,
98  (
99  const dictionary& dict,
101  const compressibleMomentumTransportModel& momentumTransport
102  ),
103  (
104  dict,
105  thermo,
106  momentumTransport
107  )
108  );
109 
110 
111  // Constructors
112 
113  //- Construct from components
114  SuModel
115  (
117  const compressibleMomentumTransportModel& momentumTransport
118  );
119 
120  //- Disallow default bitwise copy construction
121  SuModel(const SuModel&) = delete;
122 
123 
124  // Selectors
125 
126  //- Return a reference to the selected Su model
127  static autoPtr<SuModel> New
128  (
129  const dictionary& combustionProperties,
131  const compressibleMomentumTransportModel& momentumTransport
132  );
133 
134 
135  //- Destructor
136  virtual ~SuModel();
137 
138 
139  // Member Functions
140 
141  //- Return the laminar flame speed
142  virtual const volScalarField& Su() const
143  {
144  return Su_;
145  }
146 
147  //- Reset Su to the unburnt state
148  virtual void reset()
149  {}
150 
151  //- Correct the laminar flame speed
152  virtual void correct() = 0;
153 
154  //- Update properties from the given combustionProperties dictionary
155  bool read(const dictionary& combustionProperties);
156 
157 
158  // Member Operators
159 
160  //- Disallow default bitwise assignment
161  void operator=(const SuModel&) = delete;
162 };
163 
164 
165 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
166 
167 } // End namespace Foam
168 
169 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
170 
171 #endif
172 
173 // ************************************************************************* //
Generic GeometricField class.
Base-class for all Su models used by the b-Xi combustion model.
Definition: SuModel.H:65
const compressibleMomentumTransportModel & momentumTransport_
Turbulence.
Definition: SuModel.H:75
volScalarField Su_
Laminar flame speed.
Definition: SuModel.H:78
SuModel(const uRhoMulticomponentThermo &thermo, const compressibleMomentumTransportModel &momentumTransport)
Construct from components.
Definition: SuModel.C:48
void operator=(const SuModel &)=delete
Disallow default bitwise assignment.
bool read(const dictionary &combustionProperties)
Update properties from the given combustionProperties dictionary.
Definition: SuModel.C:79
declareRunTimeSelectionTable(autoPtr, SuModel, dictionary,(const dictionary &dict, const uRhoMulticomponentThermo &thermo, const compressibleMomentumTransportModel &momentumTransport),(dict, thermo, momentumTransport))
static autoPtr< SuModel > New(const dictionary &combustionProperties, const uRhoMulticomponentThermo &thermo, const compressibleMomentumTransportModel &momentumTransport)
Return a reference to the selected Su model.
Definition: SuModelNew.C:31
virtual void reset()
Reset Su to the unburnt state.
Definition: SuModel.H:147
virtual void correct()=0
Correct the laminar flame speed.
TypeName("SuModel")
Runtime type information.
virtual ~SuModel()
Destructor.
Definition: SuModel.C:73
virtual const volScalarField & Su() const
Return the laminar flame speed.
Definition: SuModel.H:141
const uRhoMulticomponentThermo & thermo_
Thermo.
Definition: SuModel.H:72
virtual bool readCoeffs(const dictionary &dict)=0
Update coefficients from given dictionary.
Definition: SuModel.C:39
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 single-phase compressible momentum transport models.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
Base-class for combustion fluid thermodynamic properties based on compressibility.
Namespace for OpenFOAM.
Macros to ease declaration of run-time selection tables.
dictionary dict
fluidMulticomponentThermo & thermo
Definition: createFields.H:15