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