bXiProgress.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::functionObjects::bXiProgress
26 
27 Description
28  Writes the combustion progress of the Weller b-Xi combustion models.
29 
30  Example of function object specification:
31  \verbatim
32  bXiProgress
33  {
34  type bXiProgress;
35  libs ("libfieldFunctionObjects.so");
36  }
37  \endverbatim
38 
39 Usage
40  \table
41  Property | Description | Required | Default value
42  type | type name: bXiProgress | yes |
43  \endtable
44 
45  Or, using the standard configuration:
46  \verbatim
47  #includeFunc bXiProgress
48  \endverbatim
49 
50 See also
51  Foam::functionObjects::fvMeshFunctionObject
52 
53 SourceFiles
54  bXiProgress.C
55 
56 \*---------------------------------------------------------------------------*/
57 
58 #ifndef bXiProgress_functionObject_H
59 #define bXiProgress_functionObject_H
60 
61 #include "fvMeshFunctionObject.H"
62 #include "logFiles.H"
63 
64 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
65 
66 namespace Foam
67 {
68 namespace functionObjects
69 {
70 
71 /*---------------------------------------------------------------------------*\
72  Class bXiProgress Declaration
73 \*---------------------------------------------------------------------------*/
74 
75 class bXiProgress
76 :
77  public fvMeshFunctionObject,
78  public logFiles
79 {
80 protected:
81 
82  // Protected Member Functions
83 
84  //- Output file header information
85  virtual void writeFileHeader(const label i);
86 
87 
88 public:
89 
90  //- Runtime type information
91  TypeName("bXiProgress");
92 
93 
94  // Constructors
95 
96  //- Construct from Time and dictionary
98  (
99  const word& name,
100  const Time& runTime,
101  const dictionary& dict
102  );
103 
104  //- Disallow default bitwise copy construction
105  bXiProgress(const bXiProgress&) = delete;
106 
107 
108  //- Destructor
109  virtual ~bXiProgress();
110 
111 
112  // Member Functions
113 
114  //- Read the controls
115  virtual bool read(const dictionary&);
116 
117  //- Return the list of fields required
118  virtual wordList fields() const;
119 
120  //- Do nothing
121  virtual bool execute();
122 
123  //- Write the cell-centre fields
124  virtual bool write();
125 
126 
127  // Member Operators
128 
129  //- Disallow default bitwise assignment
130  void operator=(const bXiProgress&) = delete;
131 };
132 
133 
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135 
136 } // End namespace functionObjects
137 } // End namespace Foam
138 
139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
140 
141 #endif
142 
143 // ************************************************************************* //
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.
Writes the combustion progress of the Weller b-Xi combustion models.
Definition: bXiProgress.H:88
virtual wordList fields() const
Return the list of fields required.
Definition: bXiProgress.C:93
virtual ~bXiProgress()
Destructor.
Definition: bXiProgress.C:77
void operator=(const bXiProgress &)=delete
Disallow default bitwise assignment.
bXiProgress(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
Definition: bXiProgress.C:62
virtual void writeFileHeader(const label i)
Output file header information.
Definition: bXiProgress.C:45
TypeName("bXiProgress")
Runtime type information.
virtual bool execute()
Do nothing.
Definition: bXiProgress.C:99
virtual bool write()
Write the cell-centre fields.
Definition: bXiProgress.C:105
virtual bool read(const dictionary &)
Read the controls.
Definition: bXiProgress.C:83
A class for handling words, derived from string.
Definition: word.H:62
Namespace for OpenFOAM.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
dictionary dict