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-------------------------------------------------------------------------------
11License
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
27Class
28 Foam::functionObjects::XiReactionRate
29
30Group
31 grpFieldFunctionObjects
32
33Description
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
45Usage
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
71See also
72 - Foam::functionObject
73 - Foam::functionObjects::fvMeshFunctionObject
74 - ExtendedCodeGuide::functionObjects::field::XiReactionRate
75
76SourceFiles
77 XiReactionRate.C
78
79\*---------------------------------------------------------------------------*/
80
81#ifndef functionObjects_XiReactionRate_H
82#define functionObjects_XiReactionRate_H
83
85
86// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
87
88namespace Foam
89{
90namespace functionObjects
91{
92
93/*---------------------------------------------------------------------------*\
94 Class XiReactionRate Declaration
95\*---------------------------------------------------------------------------*/
96
97class XiReactionRate
98:
99 public fvMeshFunctionObject
100{
101public:
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// ************************************************************************* //
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Definition: Time.H:80
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
const word & name() const noexcept
Return the name of this functionObject.
Writes the turbulent flame-speed and reaction-rate volScalarFields for the Xi-based combustion models...
void operator=(const XiReactionRate &)=delete
No copy assignment.
XiReactionRate(const XiReactionRate &)=delete
No copy construct.
virtual ~XiReactionRate()=default
Destructor.
XiReactionRate(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
virtual bool execute()
Do nothing.
virtual bool write()
Write the reaction rate fields.
TypeName("XiReactionRate")
Runtime type information.
virtual bool read(const dictionary &)
Read the reaction rate data.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
A class for handling words, derived from Foam::string.
Definition: word.H:68
engineTime & runTime
Namespace for OpenFOAM.
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73