XiReactionRate.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2016 OpenFOAM Foundation
9  Copyright (C) 2016-2020 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 Class
28  Foam::functionObjects::XiReactionRate
29 
30 Group
31  grpFieldFunctionObjects
32 
33 Description
34  Writes the turbulent flame-speed and reaction-rate volScalarFields for the
35  Xi-based combustion models.
36 
37  Operands:
38  \table
39  Operand | Type | Location
40  input | - | -
41  output file | - | -
42  output field | volScalarField | $FOAM_CASE/<time>/{St,wdot}
43  \endtable
44 
45 Usage
46  Minimal example by using \c system/controlDict.functions:
47  \verbatim
48  XiReactionRate1
49  {
50  // Mandatory entries (unmodifiable)
51  type XiReactionRate;
52  libs (fieldFunctionObjects);
53 
54  // Optional (inherited) entries
55  ...
56  }
57  \endverbatim
58 
59  where the entries mean:
60  \table
61  Property | Description | Type | Req'd | Dflt
62  type | Type name: XiReactionRate | word | yes | -
63  libs | Library name: fieldFunctionObjects | word | yes | -
64  \endtable
65 
66  The inherited entries are elaborated in:
67  - \link functionObject.H \endlink
68 
69  Usage by the \c postProcess utility is not available.
70 
71 See also
72  - Foam::functionObject
73  - Foam::functionObjects::fvMeshFunctionObject
74  - ExtendedCodeGuide::functionObjects::field::XiReactionRate
75 
76 SourceFiles
77  XiReactionRate.C
78 
79 \*---------------------------------------------------------------------------*/
80 
81 #ifndef functionObjects_XiReactionRate_H
82 #define functionObjects_XiReactionRate_H
83 
84 #include "fvMeshFunctionObject.H"
85 
86 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
87 
88 namespace Foam
89 {
90 namespace functionObjects
91 {
92 
93 /*---------------------------------------------------------------------------*\
94  Class XiReactionRate Declaration
95 \*---------------------------------------------------------------------------*/
96 
97 class XiReactionRate
98 :
99  public fvMeshFunctionObject
100 {
101 public:
102 
103  //- Runtime type information
104  TypeName("XiReactionRate");
105 
106 
107  // Constructors
108 
109  //- Construct from Time and dictionary
111  (
112  const word& name,
113  const Time& runTime,
114  const dictionary& dict
115  );
116 
117  //- No copy construct
118  XiReactionRate(const XiReactionRate&) = delete;
119 
120  //- No copy assignment
121  void operator=(const XiReactionRate&) = delete;
122 
123 
124  //- Destructor
125  virtual ~XiReactionRate() = default;
126 
127 
128  // Member Functions
129 
130  //- Read the reaction rate data
131  virtual bool read(const dictionary&);
132 
133  //- Do nothing
134  virtual bool execute();
135 
136  //- Write the reaction rate fields
137  virtual bool write();
138 };
139 
140 
141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
142 
143 } // End namespace functionObjects
144 } // End namespace Foam
145 
146 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
147 
148 #endif
149 
150 // ************************************************************************* //
runTime
engineTime & runTime
Definition: createEngineTime.H:13
Foam::Time
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Definition: Time.H:73
Foam::functionObjects::XiReactionRate
Writes the turbulent flame-speed and reaction-rate volScalarFields for the Xi-based combustion models...
Definition: XiReactionRate.H:130
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
fvMeshFunctionObject.H
Foam::functionObjects::XiReactionRate::XiReactionRate
XiReactionRate(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
Definition: XiReactionRate.C:49
Foam::functionObjects::XiReactionRate::TypeName
TypeName("XiReactionRate")
Runtime type information.
Foam::functionObjects::XiReactionRate::operator=
void operator=(const XiReactionRate &)=delete
No copy assignment.
Foam::functionObjects::fvMeshFunctionObject
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
Definition: fvMeshFunctionObject.H:64
Foam::functionObjects::XiReactionRate::~XiReactionRate
virtual ~XiReactionRate()=default
Destructor.
Foam::functionObjects::XiReactionRate::write
virtual bool write()
Write the reaction rate fields.
Definition: XiReactionRate.C:75
Foam::functionObjects::XiReactionRate::execute
virtual bool execute()
Do nothing.
Definition: XiReactionRate.C:69
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::functionObject::name
const word & name() const noexcept
Return the name of this functionObject.
Definition: functionObject.C:143
Foam::functionObjects::XiReactionRate::read
virtual bool read(const dictionary &)
Read the reaction rate data.
Definition: XiReactionRate.C:63