uniformConstant.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::XiModels::uniformConstant
26 
27 Description
28  Simple uniform constant flame wrinkling \c Xi model
29 
30  See Foam::XiModel for more details on flame wrinkling modelling.
31 
32  Reference:
33  \verbatim
34  Weller, H. G. (1993).
35  The development of a new flame area combustion model
36  using conditional averaging.
37  Thermo-fluids section report TF 9307.
38  \endverbatim
39 
40 SourceFiles
41  uniformConstant.C
42 
43 \*---------------------------------------------------------------------------*/
44 
45 #ifndef uniformConstant_H
46 #define uniformConstant_H
47 
48 #include "XiModel.H"
49 
50 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51 
52 namespace Foam
53 {
54 namespace XiModels
55 {
56 
57 /*---------------------------------------------------------------------------*\
58  Class uniformConstant Declaration
59 \*---------------------------------------------------------------------------*/
60 
61 class uniformConstant
62 :
63  public XiModel
64 {
65  // Private Data
66 
67  //- Specified flame-wrinkling value
69 
70 
71 protected:
72 
73  //- Update coefficients from given dictionary
74  virtual bool readCoeffs(const dictionary& dict);
75 
76 
77 public:
78 
79  //- Runtime type information
80  TypeName("uniformConstant");
81 
82 
83  // Constructors
84 
85  //- Construct from components
87  (
88  const dictionary& dict,
89  const ubRhoThermo& thermo,
91  const volScalarField& Su
92  );
93 
94  //- Disallow default bitwise copy construction
95  uniformConstant(const uniformConstant&) = delete;
96 
97 
98  //- Destructor
99  virtual ~uniformConstant();
100 
101 
102  // Member Functions
103 
104  //- Return the flame diffusivity
105  virtual tmp<volScalarField> Db() const
106  {
107  return volScalarField::New
108  (
109  "Db",
111  );
112  }
113 
114  //- Correct the flame-wrinkling Xi
115  virtual void correct()
116  {}
117 
118 
119  // Member Operators
120 
121  //- Disallow default bitwise assignment
122  void operator=(const uniformConstant&) = delete;
123 };
124 
125 
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 
128 } // End namespace XiModels
129 } // End namespace Foam
130 
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 
133 #endif
134 
135 // ************************************************************************* //
Generic GeometricField class.
static tmp< GeometricField< Type, GeoMesh, PrimitiveField > > New(const word &name, const Internal &, const PtrList< Patch > &, const HashPtrTable< Source > &=HashPtrTable< Source >())
Return a temporary field constructed from name,.
Base-class for all Xi models used by the b-Xi combustion model.
Definition: XiModel.H:117
const compressibleMomentumTransportModel & momentumTransport_
Turbulence.
Definition: XiModel.H:127
const volScalarField & rho_
Definition: XiModel.H:131
Simple uniform constant flame wrinkling Xi model.
virtual ~uniformConstant()
Destructor.
void operator=(const uniformConstant &)=delete
Disallow default bitwise assignment.
virtual tmp< volScalarField > Db() const
Return the flame diffusivity.
uniformConstant(const dictionary &dict, const ubRhoThermo &thermo, const compressibleMomentumTransportModel &turbulence, const volScalarField &Su)
Construct from components.
virtual bool readCoeffs(const dictionary &dict)
Update coefficients from given dictionary.
TypeName("uniformConstant")
Runtime type information.
virtual void correct()
Correct the flame-wrinkling Xi.
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
virtual tmp< volScalarField > nut() const =0
Return the turbulence viscosity.
A class for managing temporary objects.
Definition: tmp.H:55
tmp< VolField< Type > > Su(const VolField< Type > &su, const VolField< Type > &vf)
Definition: fvcSup.C:44
Namespace for OpenFOAM.
dictionary dict
autoPtr< incompressible::momentumTransportModel > turbulence(incompressible::momentumTransportModel::New(U, phi, viscosity))
fluidMulticomponentThermo & thermo
Definition: createFields.H:15