bXiIgnited.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::bXiIgnited
26 
27 Description
28  Simple ignited model for the Weller b-Xi combustion models
29 
30  which sets ignited true and ignition false so that the combustion model
31  executes continuously.
32 
33 Usage
34  Example usage:
35  \verbatim
36  bXiIgnited
37  {
38  type bXiIgnited;
39  }
40  \endverbatim
41 
42 SourceFiles
43  bXiIgnited.C
44 
45 \*---------------------------------------------------------------------------*/
46 
47 #ifndef bXiIgnited_H
48 #define bXiIgnited_H
49 
50 #include "bXiIgnition.H"
51 
52 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
53 
54 namespace Foam
55 {
56 namespace fv
57 {
58 
59 /*---------------------------------------------------------------------------*\
60  Class bXiIgnited Declaration
61 \*---------------------------------------------------------------------------*/
62 
63 class bXiIgnited
64 :
65  public bXiIgnition
66 {
67 
68 public:
69 
70  //- Runtime type information
71  TypeName("bXiIgnited");
72 
73 
74  // Constructors
75 
76  //- Construct from explicit source name and mesh
78  (
79  const word& name,
80  const word& modelType,
81  const fvMesh& mesh,
82  const dictionary& dict
83  );
84 
85  //- Disallow default bitwise copy construction
87  (
88  const bXiIgnited&
89  ) = delete;
90 
91 
92  // Member Functions
93 
94  // Checks
95 
96  //- Return true during the ignition duration
97  virtual bool igniting() const;
98 
99  //- Return true during the combustion duration
100  virtual bool ignited() const;
101 
102 
103  // Add explicit and implicit contributions to compressible equation
104 
105  //- Add ignition contribution to b equation
106  virtual void addSup
107  (
108  const volScalarField& rho,
109  const volScalarField& b,
110  fvMatrix<scalar>& eqn
111  ) const;
112 
113  virtual void XiCorr
114  (
115  volScalarField& Xi,
116  const volScalarField& b,
117  const volScalarField& mgb
118  ) const;
119 
120 
121  // Mesh motion
122 
123  //- Update topology using the given map
124  virtual void topoChange(const polyTopoChangeMap&)
125  {}
126 
127  //- Update from another mesh using the given map
128  virtual void mapMesh(const polyMeshMap&)
129  {}
130 
131  //- Redistribute or update using the given distribution map
132  virtual void distribute(const polyDistributionMap&)
133  {}
134 
135  //- Update for mesh motion
136  virtual bool movePoints()
137  {
138  return true;
139  }
140 
141 
142  // Member Operators
143 
144  //- Disallow default bitwise assignment
145  void operator=(const bXiIgnited&) = delete;
146 };
147 
148 
149 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
150 
151 } // End namespace fv
152 } // End namespace Foam
153 
154 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
155 
156 #endif
157 
158 // ************************************************************************* //
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:96
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
Simple ignited model for the Weller b-Xi combustion models.
Definition: bXiIgnited.H:65
virtual void XiCorr(volScalarField &Xi, const volScalarField &b, const volScalarField &mgb) const
Definition: bXiIgnited.C:84
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
Definition: bXiIgnited.H:127
virtual void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
Definition: bXiIgnited.H:123
TypeName("bXiIgnited")
Runtime type information.
virtual bool movePoints()
Update for mesh motion.
Definition: bXiIgnited.H:135
virtual bool ignited() const
Return true during the combustion duration.
Definition: bXiIgnited.C:68
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
Definition: bXiIgnited.H:131
bXiIgnited(const word &name, const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from explicit source name and mesh.
Definition: bXiIgnited.C:49
void operator=(const bXiIgnited &)=delete
Disallow default bitwise assignment.
virtual void addSup(const volScalarField &rho, const volScalarField &b, fvMatrix< scalar > &eqn) const
Add ignition contribution to b equation.
Definition: bXiIgnited.C:75
virtual bool igniting() const
Return true during the ignition duration.
Definition: bXiIgnited.C:62
Abstract base-class for ignition models for the Weller b-Xi combustion models.
Definition: bXiIgnition.H:55
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:62
volScalarField & b
Definition: createFields.H:27
Namespace for OpenFOAM.
labelList fv(nPoints)
dictionary dict