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 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  // Private Data
58 
59  //- The XiFluid solver
60  const solvers::XiFluid& XiFluid_;
61 
62 
63 public:
64 
65  //- Runtime type information
66  TypeName("bXiIgnition");
67 
68 
69  // Constructors
70 
71  //- Construct from explicit source name and mesh
73  (
74  const word& name,
75  const word& modelType,
76  const fvMesh& mesh,
77  const dictionary& dict
78  );
79 
80  //- Disallow default bitwise copy construction
82  (
83  const bXiIgnition&
84  ) = delete;
85 
86 
87  // Member Functions
88 
89  // Checks
90 
91  //- Return the list of fields for which the option adds source term
92  // to the transport equation
93  virtual wordList addSupFields() const;
94 
95  //- Return true during the ignition duration
96  virtual bool igniting() const = 0;
97 
98  //- Return true during the combustion duration
99  virtual bool ignited() const = 0;
100 
101 
102  // Add explicit and implicit contributions to compressible equation
103 
104  virtual void XiCorr
105  (
106  volScalarField& Xi,
107  const volScalarField& b,
108  const volScalarField& mgb
109  ) const = 0;
110 
111 
112  // Member Operators
113 
114  //- Disallow default bitwise assignment
115  void operator=(const bXiIgnition&) = delete;
116 };
117 
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 } // End namespace fv
122 } // End namespace Foam
123 
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 
126 #endif
127 
128 // ************************************************************************* //
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
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:96
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
virtual void XiCorr(volScalarField &Xi, const volScalarField &b, const volScalarField &mgb) const =0
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.
Solver module for compressible premixed/partially-premixed combustion with turbulence modelling.
Definition: XiFluid.H:143
A class for handling words, derived from string.
Definition: word.H:62
volScalarField & b
Definition: createFields.H:27
Namespace for OpenFOAM.
labelList fv(nPoints)
dictionary dict