GaussianbXiIgnition.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) 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::fv::GaussianbXiIgnition
26 
27 Description
28  Gaussian profile time dependent rate ignition model for the Weller b-Xi
29  combustion model
30 
31 Usage
32  Example usage:
33  \verbatim
34  GaussianbXiIgnition1
35  {
36  type GaussianbXiIgnition;
37 
38  cellZone ignition;
39 
40  position (0 0 0);
41  diameter 1e-3;
42 
43  kernelShape
44  {
45  type spherical;
46  }
47 
48  start 0;
49  duration 0.003;
50  rate 1e3;
51  }
52  \endverbatim
53 
54  Where:
55  \table
56  Property | Description | Required | Default value
57  cellZone | Correction cellZone | yes |
58  position | Ignition centre | yes |
59  diameter | Diameter of the ignition kernel | yes |
60  kernelShape | Kernel shape | yes |
61  start | Ignition start time | yes |
62  duration | Ignition duration | yes |
63  rate | Burning rate coefficient Function1 of time [1/s] | yes |
64  \endtable
65 
66 See also
67  Foam::fv::constantbXiIgnition
68  Foam::fv::bXiKernelCorr
69  Foam::kernelShape
70  Foam::kernelShapes::planar
71  Foam::kernelShapes::cylindrical
72  Foam::kernelShapes::spherical
73 
74 SourceFiles
75  GaussianbXiIgnition.C
76 
77 \*---------------------------------------------------------------------------*/
78 
79 #ifndef GaussianbXiIgnition_H
80 #define GaussianbXiIgnition_H
81 
82 #include "bXiTimedIgnition.H"
83 #include "kernelShape.H"
84 #include "Function1.H"
85 
86 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
87 
88 namespace Foam
89 {
90 namespace fv
91 {
92 
93 /*---------------------------------------------------------------------------*\
94  Class GaussianbXiIgnition Declaration
95 \*---------------------------------------------------------------------------*/
96 
97 class GaussianbXiIgnition
98 :
99  public bXiTimedIgnition
100 {
101 
102 protected:
103 
104  // Protected Data
105 
106  //- The ignition cellZone
107  fvCellZone zone_;
108 
109  autoPtr<kernelShape> kernelShape_;
110 
112 
114 
115  //- Ignition burning rate [1/t]
116  autoPtr<Function1<scalar>> rate_;
117 
118  //- Kernel volume correction factor
119  scalarList Vk_;
120 
121 
122 private:
123 
124  // Private Member Functions
125 
126  //- Calculate the kernel volume correction factor
127  void calcVk();
128 
129  //- Non-virtual read
130  void readCoeffs(const dictionary& dict);
131 
132 
133 public:
134 
135  //- Runtime type information
136  TypeName("GaussianbXiIgnition");
137 
138 
139  // Constructors
140 
141  //- Construct from explicit source name and mesh
143  (
144  const word& name,
145  const word& modelType,
146  const fvMesh& mesh,
147  const dictionary& dict
148  );
149 
150  //- Disallow default bitwise copy construction
152  (
153  const GaussianbXiIgnition&
154  ) = delete;
155 
156 
157  // Member Functions
158 
159  // Add explicit and implicit contributions to compressible equation
160 
161  //- Add ignition contribution to b equation
162  virtual void addSup
163  (
164  const volScalarField& rho,
165  const volScalarField& b,
166  fvMatrix<scalar>& eqn
167  ) const;
168 
169 
170  // Mesh motion
171 
172  //- Update topology using the given map
173  virtual void topoChange(const polyTopoChangeMap&);
174 
175  //- Update from another mesh using the given map
176  virtual void mapMesh(const polyMeshMap&);
177 
178  //- Redistribute or update using the given distribution map
179  virtual void distribute(const polyDistributionMap&);
180 
181  //- Update for mesh motion
182  virtual bool movePoints();
183 
184 
185  // IO
186 
187  //- Read source dictionary
188  virtual bool read(const dictionary& dict);
189 
190 
191  // Member Operators
192 
193  //- Disallow default bitwise assignment
194  void operator=(const GaussianbXiIgnition&) = delete;
195 };
196 
197 
198 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
199 
200 } // End namespace fv
201 } // End namespace Foam
202 
203 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
204 
205 #endif
206 
207 // ************************************************************************* //
Generic GeometricField class.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Definition: fvMatrix.H:118
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:98
const fvMesh & mesh() const
Return const access to the mesh database.
Definition: fvModelI.H:69
const word & name() const
Return const access to the source name.
Definition: fvModelI.H:57
Gaussian profile time dependent rate ignition model for the Weller b-Xi combustion model.
virtual bool movePoints()
Update for mesh motion.
TypeName("GaussianbXiIgnition")
Runtime type information.
scalarList Vk_
Kernel volume correction factor.
autoPtr< Function1< scalar > > rate_
Ignition burning rate [1/t].
fvCellZone zone_
The ignition cellZone.
void operator=(const GaussianbXiIgnition &)=delete
Disallow default bitwise assignment.
virtual void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
virtual bool read(const dictionary &dict)
Read source dictionary.
autoPtr< kernelShape > kernelShape_
GaussianbXiIgnition(const word &name, const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from explicit source name and mesh.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
virtual void addSup(const volScalarField &rho, const volScalarField &b, fvMatrix< scalar > &eqn) const
Add ignition contribution to b equation.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Definition: polyMeshMap.H:51
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
A class for handling words, derived from string.
Definition: word.H:63
volScalarField & b
Definition: createFields.H:27
rho
Definition: pEqn.H:1
Namespace for OpenFOAM.
List< scalar > scalarList
A List of scalars.
Definition: scalarList.H:50
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
labelList fv(nPoints)
dictionary dict