bXiQdot.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) 2026 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::functionObjects::bXiQdot
26 
27 Description
28  Calculates and caches the heat release rate bXiQdot
29  of the Weller b-Xi combustion model.
30 
31  Example of function object specification:
32  \verbatim
33  bXiQdot
34  {
35  type bXiQdot;
36  }
37  \endverbatim
38 
39 Usage
40  \table
41  Property | Description | Required | Default value
42  type | type name: bXiQdot | yes |
43  \endtable
44 
45  Or, using the standard configuration:
46  \verbatim
47  #includeFunc bXiQdot
48  \endverbatim
49 
50 See also
51  Foam::functionObjects::fvMeshFunctionObject
52 
53 SourceFiles
54  bXiQdot.C
55 
56 \*---------------------------------------------------------------------------*/
57 
58 #ifndef bXiQdot_functionObject_H
59 #define bXiQdot_functionObject_H
60 
61 #include "fvMeshFunctionObject.H"
62 #include "writeLocalObjects.H"
63 
64 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
65 
66 namespace Foam
67 {
68 namespace functionObjects
69 {
70 
71 /*---------------------------------------------------------------------------*\
72  Class bXiQdot Declaration
73 \*---------------------------------------------------------------------------*/
74 
75 class bXiQdot
76 :
77  public fvMeshFunctionObject,
78  public writeLocalObjects
79 {
80 
81 public:
82 
83  //- Runtime type information
84  TypeName("bXiQdot");
85 
86 
87  // Constructors
88 
89  //- Construct from Time and dictionary
90  bXiQdot
91  (
92  const word& name,
93  const Time& runTime,
94  const dictionary& dict
95  );
96 
97  //- Disallow default bitwise copy construction
98  bXiQdot(const bXiQdot&) = delete;
99 
100 
101  //- Destructor
102  virtual ~bXiQdot();
103 
104 
105  // Member Functions
106 
107  //- Read the controls
108  virtual bool read(const dictionary&);
109 
110  //- Return the list of fields required
111  virtual wordList fields() const
112  {
113  return wordList::null();
114  }
115 
116  //- Do not execute at the start of the run
117  virtual bool executeAtStart() const
118  {
119  return false;
120  }
121 
122  //- Do nothing
123  virtual bool execute();
124 
125  //- Write the cell-centre fields
126  virtual bool write();
127 };
128 
129 
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 
132 } // End namespace functionObjects
133 } // End namespace Foam
134 
135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 
137 #endif
138 
139 // ************************************************************************* //
static const List< word > & null()
Return a null List.
Definition: ListI.H:118
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Definition: Time.H:76
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
const word & name() const
Return the name of this functionObject.
Calculates and caches the heat release rate bXiQdot of the Weller b-Xi combustion model.
Definition: bXiQdot.H:88
virtual wordList fields() const
Return the list of fields required.
Definition: bXiQdot.H:120
TypeName("bXiQdot")
Runtime type information.
bXiQdot(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
Definition: bXiQdot.C:47
virtual bool executeAtStart() const
Do not execute at the start of the run.
Definition: bXiQdot.H:126
virtual ~bXiQdot()
Destructor.
Definition: bXiQdot.C:66
virtual bool execute()
Do nothing.
Definition: bXiQdot.C:81
virtual bool write()
Write the cell-centre fields.
Definition: bXiQdot.C:139
virtual bool read(const dictionary &)
Read the controls.
Definition: bXiQdot.C:72
A class for handling words, derived from string.
Definition: word.H:63
Namespace for OpenFOAM.
dictionary dict