cylindricalXiCorr.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::XiCorrModels::cylindrical
26 
27 Description
28  Cylindrical ignition kernel flame-wrinkling correction model
29 
30 Usage
31  Example usage:
32  \verbatim
33  XiCorr
34  {
35  type cylindrical;
36  cellZone all;
37  thickness 0.001;
38  cylinderFraction 0.25;
39  }
40  \endverbatim
41 
42  Where:
43  \table
44  Property | Description | Required | Default value
45  cellZone | Correction cellZone | yes |
46  thickness | Thickness of the 2D mesh | yes |
47  cylinderFraction | Kernel cylinder fraction | no | 1
48  bMin | Min b below which no correction | no | 0.01
49  \endtable
50 
51 SourceFiles
52  cylindrical.C
53 
54 \*---------------------------------------------------------------------------*/
55 
56 #ifndef cylindricalXiCorr_H
57 #define cylindricalXiCorr_H
58 
59 #include "XiCorrModel.H"
60 #include "dimensionedTypes.H"
61 
62 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
63 
64 namespace Foam
65 {
66 namespace XiCorrModels
67 {
68 
69 /*---------------------------------------------------------------------------*\
70  Class cylindrical Declaration
71 \*---------------------------------------------------------------------------*/
72 
73 class cylindrical
74 :
75  public XiCorrModel
76 {
77  // Private Data
78 
79  //- Thickness of the 2D mesh
80  dimensionedScalar thickness_;
81 
82  //- Kernel cylinder fraction
83  // If the ignition is adjacent to n symmetry planes: 1/2^n
84  dimensionedScalar cylinderFraction_;
85 
86 
87 protected:
88 
89  //- Update coefficients from given dictionary
90  virtual bool readCoeffs(const dictionary& dict);
91 
92 
93 public:
94 
95  //- Runtime type information
96  TypeName("cylindrical");
97 
98 
99  // Constructors
100 
101  //- Construct from mesh and dictionary
102  cylindrical(const fvMesh& mesh, const dictionary& dict);
103 
104  //- Disallow default bitwise copy construction
105  cylindrical(const cylindrical&) = delete;
106 
107 
108  //- Destructor
109  virtual ~cylindrical();
110 
111 
112  // Member Functions
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 XiCorrModels
129 } // End namespace Foam
130 
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 
133 #endif
134 
135 // ************************************************************************* //
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 ~cylindrical()
Destructor.
void operator=(const cylindrical &)=delete
Disallow default bitwise assignment.
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:96
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