ubDWEA.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::ubDWEA
26 
27 Description
28  Calculates and writes the density weighted ensemble unburnt, burnt gas
29  phase average of a field
30 
31 See also
32  Foam::functionObjects::fieldExpression
33  Foam::functionObjects::fvMeshFunctionObject
34 
35 SourceFiles
36  ubDWEA.C
37 
38 \*---------------------------------------------------------------------------*/
39 
40 #ifndef ubDWEA_functionObject_H
41 #define ubDWEA_functionObject_H
42 
43 #include "fieldExpression.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 namespace functionObjects
50 {
51 
52 /*---------------------------------------------------------------------------*\
53  Class ubDWEA Declaration
54 \*---------------------------------------------------------------------------*/
55 
56 class ubDWEA
57 :
58  public fieldExpression
59 {
60  // Private Member Functions
61 
62  //- Calculate the unburnt/burnt gas phase average of the field
63  // and return true if successful
64  virtual bool calc();
65 
66 
67 public:
68 
69  //- Runtime type information
70  TypeName("ubDWEA");
71 
72 
73  // Constructors
74 
75  //- Construct for given objectRegistry and dictionary.
76  // Allow the possibility to load fields from files
77  ubDWEA
78  (
79  const word& name,
80  const Time& runTime,
81  const dictionary& dict
82  );
83 
84 
85  //- Destructor
86  virtual ~ubDWEA();
87 
88 
89  // Member Functions
90 
91  //- Return the unburnt and burnt gas fields required
92  virtual wordList fields() const;
93 };
94 
95 
96 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
97 
98 } // End namespace functionObjects
99 } // End namespace Foam
100 
101 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
102 
103 #endif
104 
105 // ************************************************************************* //
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 writes the density weighted ensemble unburnt, burnt gas phase average of a field.
Definition: ubDWEA.H:58
TypeName("ubDWEA")
Runtime type information.
virtual wordList fields() const
Return the unburnt and burnt gas fields required.
Definition: ubDWEA.C:122
virtual ~ubDWEA()
Destructor.
Definition: ubDWEA.C:116
ubDWEA(const word &name, const Time &runTime, const dictionary &dict)
Construct for given objectRegistry and dictionary.
Definition: ubDWEA.C:104
A class for handling words, derived from string.
Definition: word.H:63
Namespace for OpenFOAM.
dictionary dict