kernelShape.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-2025 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::kernelShape
26 
27 Description
28  Base class for ignition kernel flame wrinkling \c Xi correction
29 
30 Usage
31  Example usage:
32  \verbatim
33  kernelShape
34  {
35  type <type>;
36  }
37  \endverbatim
38 
39 SourceFiles
40  kernelShape.C
41 
42 \*---------------------------------------------------------------------------*/
43 
44 #ifndef kernelShape_H
45 #define kernelShape_H
46 
47 #include "dimensionedTypes.H"
48 #include "fvMesh.H"
49 #include "runTimeSelectionTables.H"
50 
51 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52 
53 namespace Foam
54 {
55 
56 /*---------------------------------------------------------------------------*\
57  Class kernelShape Declaration
58 \*---------------------------------------------------------------------------*/
59 
60 class kernelShape
61 {
62 
63 protected:
64 
65  //- Update coefficients from given dictionary
66  virtual bool readCoeffs(const dictionary& dict);
67 
68 
69 public:
70 
71  //- Runtime type information
72  TypeName("kernelShape");
73 
74 
75  // Declare run-time constructor selection table
76 
78  (
79  autoPtr,
81  dictionary,
82  (const fvMesh& mesh, const dictionary& dict),
83  (mesh, dict)
84  );
85 
86 
87  // Constructors
88 
89  //- Construct from mesh and dictionary
90  kernelShape(const fvMesh& mesh, const dictionary& dict);
91 
92  //- Disallow default bitwise copy construction
93  kernelShape(const kernelShape&) = delete;
94 
95 
96  // Selectors
97 
98  //- Return a reference to the selected kernelShape model
100  (
101  const fvMesh& mesh,
102  const dictionary& dict
103  );
104 
105 
106  //- Destructor
107  virtual ~kernelShape();
108 
109 
110  // Member Functions
111 
112  //- Return ignition kernel dimensionality correction to 3D
113  virtual dimensionedScalar Dcorr() const = 0;
114 
115  //- Return the area of the ignition kernel
116  // calculated from the given kernel volume
117  virtual dimensionedScalar Ak(const dimensionedScalar& Vk) const = 0;
118 
119 
120  // IO
121 
122  //- Update properties from the given XiProperties dictionary
123  bool read(const dictionary& XiProperties);
124 
125 
126  // Member Operators
127 
128  //- Disallow default bitwise assignment
129  void operator=(const kernelShape&) = delete;
130 };
131 
132 
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 
135 } // End namespace Foam
136 
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 
139 #endif
140 
141 // ************************************************************************* //
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
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:98
Base class for ignition kernel flame wrinkling Xi correction.
Definition: kernelShape.H:60
void operator=(const kernelShape &)=delete
Disallow default bitwise assignment.
virtual dimensionedScalar Ak(const dimensionedScalar &Vk) const =0
Return the area of the ignition kernel.
virtual ~kernelShape()
Destructor.
Definition: kernelShape.C:59
virtual bool readCoeffs(const dictionary &dict)
Update coefficients from given dictionary.
Definition: kernelShape.C:39
declareRunTimeSelectionTable(autoPtr, kernelShape, dictionary,(const fvMesh &mesh, const dictionary &dict),(mesh, dict))
kernelShape(const fvMesh &mesh, const dictionary &dict)
Construct from mesh and dictionary.
Definition: kernelShape.C:48
virtual dimensionedScalar Dcorr() const =0
Return ignition kernel dimensionality correction to 3D.
bool read(const dictionary &XiProperties)
Update properties from the given XiProperties dictionary.
Definition: kernelShape.C:65
TypeName("kernelShape")
Runtime type information.
static autoPtr< kernelShape > New(const fvMesh &mesh, const dictionary &dict)
Return a reference to the selected kernelShape model.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
Namespace for OpenFOAM.
Macros to ease declaration of run-time selection tables.
dictionary dict