cylindricalKernelShape.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::kernelShapes::cylindrical
26 
27 Description
28  Cylindrical ignition kernel flame-wrinkling correction model
29 
30 Usage
31  Example usage:
32  \verbatim
33  kernelShape
34  {
35  type cylindrical;
36  thickness 0.001;
37  cylinderFraction 0.25;
38  }
39  \endverbatim
40 
41  Where:
42  \table
43  Property | Description | Required | Default value
44  thickness | Thickness of the 2D mesh | yes |
45  cylinderFraction | Kernel cylinder fraction | no | 1
46  \endtable
47 
48 SourceFiles
49  cylindrical.C
50 
51 \*---------------------------------------------------------------------------*/
52 
53 #ifndef cylindricalKernelShape_H
54 #define cylindricalKernelShape_H
55 
56 #include "kernelShape.H"
57 #include "dimensionedTypes.H"
58 
59 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
60 
61 namespace Foam
62 {
63 namespace kernelShapes
64 {
65 
66 /*---------------------------------------------------------------------------*\
67  Class cylindrical Declaration
68 \*---------------------------------------------------------------------------*/
69 
70 class cylindrical
71 :
72  public kernelShape
73 {
74  // Private Data
75 
76  //- Thickness of the 2D mesh
77  dimensionedScalar thickness_;
78 
79  //- Kernel cylinder fraction
80  // If the ignition is adjacent to n symmetry planes: 1/2^n
81  dimensionedScalar cylinderFraction_;
82 
83 
84 protected:
85 
86  //- Update coefficients from given dictionary
87  virtual bool readCoeffs(const dictionary& dict);
88 
89 
90 public:
91 
92  //- Runtime type information
93  TypeName("cylindrical");
94 
95 
96  // Constructors
97 
98  //- Construct from mesh and dictionary
99  cylindrical(const fvMesh& mesh, const dictionary& dict);
100 
101  //- Disallow default bitwise copy construction
102  cylindrical(const cylindrical&) = delete;
103 
104 
105  //- Destructor
106  virtual ~cylindrical();
107 
108 
109  // Member Functions
110 
111  //- Return ignition kernel dimensionality correction to 3D
112  virtual dimensionedScalar Dcorr() const;
113 
114  //- Return the area of the ignition kernel
115  // calculated from the given kernel volume
116  virtual dimensionedScalar Ak(const dimensionedScalar& Vk) const;
117 
118 
119  // Member Operators
120 
121  //- Disallow default bitwise assignment
122  void operator=(const cylindrical&) = delete;
123 };
124 
125 
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 
128 } // End namespace kernelShapes
129 } // End namespace Foam
130 
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 
133 #endif
134 
135 // ************************************************************************* //
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
Cylindrical ignition kernel flame-wrinkling correction model.
virtual dimensionedScalar Ak(const dimensionedScalar &Vk) const
Return the area of the ignition kernel.
TypeName("cylindrical")
Runtime type information.
virtual bool readCoeffs(const dictionary &dict)
Update coefficients from given dictionary.
cylindrical(const fvMesh &mesh, const dictionary &dict)
Construct from mesh and dictionary.
virtual dimensionedScalar Dcorr() const
Return ignition kernel dimensionality correction to 3D.
void operator=(const cylindrical &)=delete
Disallow default bitwise assignment.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
Namespace for OpenFOAM.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
dictionary dict