constantbXiIgnition.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::constantbXiIgnition
26 
27 Description
28  Simple constant rate ignition model for the Weller b-Xi combustion model
29 
30 Usage
31  Example usage:
32  \verbatim
33  constantbXiIgnition1
34  {
35  type constantbXiIgnition;
36 
37  cellZone ignition;
38 
39  start 0;
40  duration 0.003;
41  strength 2;
42  }
43  \endverbatim
44 
45  Where:
46  \table
47  Property | Description | Required | Default value
48  cellZone | Correction cellZone | yes |
49  start | Ignition start time | yes |
50  duration | Ignition duration | yes |
51  strength | Ignition strength [1/s] | yes |
52  \endtable
53 
54 SourceFiles
55  constantbXiIgnition.C
56 
57 \*---------------------------------------------------------------------------*/
58 
59 #ifndef constantbXiIgnition_H
60 #define constantbXiIgnition_H
61 
62 #include "bXiTimedIgnition.H"
63 
64 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
65 
66 namespace Foam
67 {
68 namespace fv
69 {
70 
71 /*---------------------------------------------------------------------------*\
72  Class constantbXiIgnition Declaration
73 \*---------------------------------------------------------------------------*/
74 
75 class constantbXiIgnition
76 :
77  public bXiTimedIgnition
78 {
79 
80 protected:
81 
82  // Protected Data
83 
84  //- The ignition cellZone
85  fvCellZone zone_;
86 
87  //- Ignition strength
89 
90 
91 private:
92 
93  // Private Member Functions
94 
95  //- Non-virtual read
96  void readCoeffs(const dictionary& dict);
97 
98 
99 public:
100 
101  //- Runtime type information
102  TypeName("constantbXiIgnition");
103 
104 
105  // Constructors
106 
107  //- Construct from explicit source name and mesh
109  (
110  const word& name,
111  const word& modelType,
112  const fvMesh& mesh,
113  const dictionary& dict
114  );
115 
116  //- Disallow default bitwise copy construction
118  (
119  const constantbXiIgnition&
120  ) = delete;
121 
122 
123  // Member Functions
124 
125  // Add explicit and implicit contributions to compressible equation
126 
127  //- Add ignition contribution to b equation
128  virtual void addSup
129  (
130  const volScalarField& rho,
131  const volScalarField& b,
132  fvMatrix<scalar>& eqn
133  ) const;
134 
135 
136  // Mesh motion
137 
138  //- Update topology using the given map
139  virtual void topoChange(const polyTopoChangeMap&);
140 
141  //- Update from another mesh using the given map
142  virtual void mapMesh(const polyMeshMap&);
143 
144  //- Redistribute or update using the given distribution map
145  virtual void distribute(const polyDistributionMap&);
146 
147  //- Update for mesh motion
148  virtual bool movePoints();
149 
150 
151  // IO
152 
153  //- Read source dictionary
154  virtual bool read(const dictionary& dict);
155 
156 
157  // Member Operators
158 
159  //- Disallow default bitwise assignment
160  void operator=(const constantbXiIgnition&) = delete;
161 };
162 
163 
164 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
165 
166 } // End namespace fv
167 } // End namespace Foam
168 
169 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
170 
171 #endif
172 
173 // ************************************************************************* //
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
Simple constant rate ignition model for the Weller b-Xi combustion model.
virtual bool movePoints()
Update for mesh motion.
dimensionedScalar strength_
Ignition strength.
TypeName("constantbXiIgnition")
Runtime type information.
fvCellZone zone_
The ignition cellZone.
virtual void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
constantbXiIgnition(const word &name, const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from explicit source name and mesh.
virtual bool read(const dictionary &dict)
Read source dictionary.
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.
void operator=(const constantbXiIgnition &)=delete
Disallow default bitwise assignment.
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.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
labelList fv(nPoints)
dictionary dict