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 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  //- Thermo-physical transport
77 
78  //- Turbulence
80 
81  //- Laminar flame speed
83 
84  //- Update coefficients from given dictionary
85  virtual bool readCoeffs(const dictionary& dict) = 0;
86 
87 
88 public:
89 
90  //- Runtime type information
91  TypeName("SuModel");
92 
93 
94  // Declare run-time constructor selection table
95 
97  (
98  autoPtr,
99  SuModel,
100  dictionary,
101  (
102  const dictionary& dict,
105  ),
106  (
107  dict,
108  thermo,
109  turbulence
110  )
111  );
112 
113 
114  // Constructors
115 
116  //- Construct from components
117  SuModel
118  (
121  );
122 
123  //- Disallow default bitwise copy construction
124  SuModel(const SuModel&) = delete;
125 
126 
127  // Selectors
128 
129  //- Return a reference to the selected Su model
130  static autoPtr<SuModel> New
131  (
132  const dictionary& combustionProperties,
135  );
136 
137 
138  //- Destructor
139  virtual ~SuModel();
140 
141 
142  // Member Functions
143 
144  //- Return the laminar flame speed
145  virtual const volScalarField& Su() const
146  {
147  return Su_;
148  }
149 
150  //- Reset Su to the unburnt state
151  virtual void reset()
152  {}
153 
154  //- Correct the laminar flame speed
155  virtual void correct() = 0;
156 
157  //- Update properties from the given combustionProperties dictionary
158  bool read(const dictionary& combustionProperties);
159 
160 
161  // Member Operators
162 
163  //- Disallow default bitwise assignment
164  void operator=(const SuModel&) = delete;
165 };
166 
167 
168 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
169 
170 } // End namespace Foam
171 
172 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
173 
174 #endif
175 
176 // ************************************************************************* //
Generic GeometricField class.
Base-class for all Su models used by the b-Xi combustion model.
Definition: SuModel.H:65
volScalarField Su_
Laminar flame speed.
Definition: SuModel.H:81
void operator=(const SuModel &)=delete
Disallow default bitwise assignment.
bool read(const dictionary &combustionProperties)
Update properties from the given combustionProperties dictionary.
Definition: SuModel.C:80
virtual void reset()
Reset Su to the unburnt state.
Definition: SuModel.H:150
virtual void correct()=0
Correct the laminar flame speed.
TypeName("SuModel")
Runtime type information.
const compressibleMomentumTransportModel & turbulence_
Turbulence.
Definition: SuModel.H:78
const psiuMulticomponentThermo & thermo_
Thermo.
Definition: SuModel.H:72
virtual ~SuModel()
Destructor.
Definition: SuModel.C:74
virtual const volScalarField & Su() const
Return the laminar flame speed.
Definition: SuModel.H:144
const fluidThermoThermophysicalTransportModel & thermoTransport_
Thermo-physical transport.
Definition: SuModel.H:75
declareRunTimeSelectionTable(autoPtr, SuModel, dictionary,(const dictionary &dict, const psiuMulticomponentThermo &thermo, const fluidThermoThermophysicalTransportModel &turbulence),(dict, thermo, turbulence))
static autoPtr< SuModel > New(const dictionary &combustionProperties, const psiuMulticomponentThermo &thermo, const fluidThermoThermophysicalTransportModel &turbulence)
Return a reference to the selected Su model.
Definition: SuModelNew.C:31
virtual bool readCoeffs(const dictionary &dict)=0
Update coefficients from given dictionary.
Definition: SuModel.C:39
SuModel(const psiuMulticomponentThermo &thermo, const fluidThermoThermophysicalTransportModel &turbulence)
Construct from components.
Definition: SuModel.C:48
Templated abstract base class for thermophysical transport models.
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 turbulence 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
autoPtr< incompressible::momentumTransportModel > turbulence(incompressible::momentumTransportModel::New(U, phi, viscosity))
fluidMulticomponentThermo & thermo
Definition: createFields.H:31