planarKernelShape.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::planar
26 
27 Description
28  Planar ignition kernel flame-wrinkling correction model
29 
30 Usage
31  Example usage:
32  \verbatim
33  kernelShape
34  {
35  type planar;
36  area 1e-4;
37  }
38  \endverbatim
39 
40  Where:
41  \table
42  Property | Description | Required | Default value
43  area | Cross-sectional area of the 1D mesh | yes |
44  \endtable
45 
46 SourceFiles
47  planar.C
48 
49 \*---------------------------------------------------------------------------*/
50 
51 #ifndef planarKernelShape_H
52 #define planarKernelShape_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 planar Declaration
66 \*---------------------------------------------------------------------------*/
67 
68 class planar
69 :
70  public kernelShape
71 {
72  // Private Data
73 
74  //- Cross-sectional area of the 1D mesh
75  dimensionedScalar area_;
76 
77  //- Update coefficients from given dictionary
78  virtual bool readCoeffs(const dictionary& dict);
79 
80 
81 public:
82 
83  //- Runtime type information
84  TypeName("planar");
85 
86 
87  // Constructors
88 
89  //- Construct from mesh and dictionary
90  planar(const fvMesh& mesh, const dictionary& dict);
91 
92  //- Disallow default bitwise copy construction
93  planar(const planar&) = delete;
94 
95 
96  //- Destructor
97  virtual ~planar();
98 
99 
100  // Member Functions
101 
102  //- Return ignition kernel dimensionality correction to 3D
103  virtual dimensionedScalar Dcorr() const;
104 
105  //- Return the area of the ignition kernel
106  // calculated from the given kernel volume
107  virtual dimensionedScalar Ak(const dimensionedScalar& Vk) const;
108 
109 
110  // Member Operators
111 
112  //- Disallow default bitwise assignment
113  void operator=(const planar&) = delete;
114 };
115 
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 } // End namespace kernelShapes
120 } // End namespace Foam
121 
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 
124 #endif
125 
126 // ************************************************************************* //
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
Planar ignition kernel flame-wrinkling correction model.
virtual dimensionedScalar Ak(const dimensionedScalar &Vk) const
Return the area of the ignition kernel.
TypeName("planar")
Runtime type information.
virtual ~planar()
Destructor.
void operator=(const planar &)=delete
Disallow default bitwise assignment.
planar(const fvMesh &mesh, const dictionary &dict)
Construct from mesh and dictionary.
virtual dimensionedScalar Dcorr() const
Return ignition kernel dimensionality correction to 3D.
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