bXiIgnition.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::fv::bXiIgnition
26 
27 Description
28  Abstract base-class for ignition models
29  for the Weller b-Xi combustion models
30 
31 SourceFiles
32  bXiIgnition.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef bXiIgnition_H
37 #define bXiIgnition_H
38 
39 #include "fvModel.H"
40 #include "XiFluid.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 namespace fv
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class bXiIgnition Declaration
51 \*---------------------------------------------------------------------------*/
52 
53 class bXiIgnition
54 :
55  public fvModel
56 {
57 protected:
58 
59  // Protected Data
60 
61  //- The XiFluid solver
63 
64 
65 public:
66 
67  //- Runtime type information
68  TypeName("bXiIgnition");
69 
70 
71  // Constructors
72 
73  //- Construct from explicit source name and mesh
75  (
76  const word& name,
77  const word& modelType,
78  const fvMesh& mesh,
79  const dictionary& dict
80  );
81 
82  //- Disallow default bitwise copy construction
84  (
85  const bXiIgnition&
86  ) = delete;
87 
88 
89  // Member Functions
90 
91  // Checks
92 
93  //- Return the list of fields for which the option adds source term
94  // to the transport equation
95  virtual wordList addSupFields() const;
96 
97  //- Return true during the specified ignition duration
98  virtual bool igniting(const dimensionedScalar duration) const = 0;
99 
100  //- Return true during the ignition duration
101  virtual bool igniting() const = 0;
102 
103  //- Return true during the combustion duration
104  virtual bool ignited() const = 0;
105 
106 
107  // Member Operators
108 
109  //- Disallow default bitwise assignment
110  void operator=(const bXiIgnition&) = delete;
111 };
112 
113 
114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115 
116 } // End namespace fv
117 } // End namespace Foam
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 #endif
122 
123 // ************************************************************************* //
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
Finite volume model abstract base class.
Definition: fvModel.H:60
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
Abstract base-class for ignition models for the Weller b-Xi combustion models.
Definition: bXiIgnition.H:55
virtual wordList addSupFields() const
Return the list of fields for which the option adds source term.
Definition: bXiIgnition.C:56
TypeName("bXiIgnition")
Runtime type information.
void operator=(const bXiIgnition &)=delete
Disallow default bitwise assignment.
virtual bool ignited() const =0
Return true during the combustion duration.
bXiIgnition(const word &name, const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from explicit source name and mesh.
Definition: bXiIgnition.C:42
virtual bool igniting() const =0
Return true during the ignition duration.
const solvers::XiFluid & XiFluid_
The XiFluid solver.
Definition: bXiIgnition.H:61
Solver module for compressible premixed/partially-premixed combustion with turbulence modelling.
Definition: XiFluid.H:144
A class for handling words, derived from string.
Definition: word.H:63
Namespace for OpenFOAM.
labelList fv(nPoints)
dictionary dict