planarXiCorr.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::planar
26 
27 Description
28  Planar ignition kernel flame-wrinkling correction model
29 
30 Usage
31  Example usage:
32  \verbatim
33  XiCorr
34  {
35  type planar;
36  cellZone all;
37  area 1e-4;
38  }
39  \endverbatim
40 
41  Where:
42  \table
43  Property | Description | Required | Default value
44  cellZone | Correction cellZone | yes |
45  area | Cross-sectional area of the 1D mesh | yes |
46  bMin | Min b below which no correction | no | 0.01
47  \endtable
48 
49 SourceFiles
50  planar.C
51 
52 \*---------------------------------------------------------------------------*/
53 
54 #ifndef planarXiCorr_H
55 #define planarXiCorr_H
56 
57 #include "XiCorrModel.H"
58 #include "dimensionedTypes.H"
59 
60 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
61 
62 namespace Foam
63 {
64 namespace XiCorrModels
65 {
66 
67 /*---------------------------------------------------------------------------*\
68  Class planar Declaration
69 \*---------------------------------------------------------------------------*/
70 
71 class planar
72 :
73  public XiCorrModel
74 {
75  // Private Data
76 
77  //- Cross-sectional area of the 1D mesh
78  dimensionedScalar area_;
79 
80  //- Update coefficients from given dictionary
81  virtual bool readCoeffs(const dictionary& dict);
82 
83 
84 public:
85 
86  //- Runtime type information
87  TypeName("planar");
88 
89 
90  // Constructors
91 
92  //- Construct from mesh and dictionary
93  planar(const fvMesh& mesh, const dictionary& dict);
94 
95  //- Disallow default bitwise copy construction
96  planar(const planar&) = delete;
97 
98 
99  //- Destructor
100  virtual ~planar();
101 
102 
103  // Member Functions
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 XiCorrModels
120 } // End namespace Foam
121 
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 
124 #endif
125 
126 // ************************************************************************* //
Planar ignition kernel flame-wrinkling correction model.
Definition: planarXiCorr.H:93
virtual dimensionedScalar Ak(const dimensionedScalar &Vk) const
Return the area of the ignition kernel.
Definition: planarXiCorr.C:74
TypeName("planar")
Runtime type information.
virtual ~planar()
Destructor.
Definition: planarXiCorr.C:67
void operator=(const planar &)=delete
Disallow default bitwise assignment.
planar(const fvMesh &mesh, const dictionary &dict)
Construct from mesh and dictionary.
Definition: planarXiCorr.C:54
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