All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
specieReactionRates.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) 2016-2020 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::specieReactionRates
26 
27 Description
28  Writes the domain averaged reaction rates for each specie for each reaction
29  into the file <timeDir>/specieReactionRates.dat
30 
31 See also
32  Foam::functionObjects::fvMeshFunctionObject
33  Foam::functionObjects::volRegion
34  Foam::functionObjects::logFiles
35 
36 SourceFiles
37  specieReactionRates.C
38 
39 \*---------------------------------------------------------------------------*/
40 
41 #ifndef functionObjects_specieReactionRates_H
42 #define functionObjects_specieReactionRates_H
43 
44 #include "fvMeshFunctionObject.H"
45 #include "volRegion.H"
46 #include "logFiles.H"
47 #include "basicChemistryModel.H"
48 
49 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 
51 namespace Foam
52 {
53 namespace functionObjects
54 {
55 
56 /*---------------------------------------------------------------------------*\
57  Class specieReactionRates Declaration
58 \*---------------------------------------------------------------------------*/
59 
61 :
62  public fvMeshFunctionObject,
63  public volRegion,
64  public logFiles
65 {
66  // Private Member Data
67 
68  //- Reference to the chemistry model
69  const basicChemistryModel& chemistryModel_;
70 
71 
72  // Private Member Functions
73 
74  //- File header information
75  virtual void writeFileHeader(const label i);
76 
77 
78 public:
79 
80  //- Runtime type information
81  TypeName("specieReactionRates");
82 
83 
84  // Constructors
85 
86  //- Construct from Time and dictionary
88  (
89  const word& name,
90  const Time& runTime,
91  const dictionary& dict
92  );
93 
94  //- Disallow default bitwise copy construction
96 
97 
98  //- Destructor
99  virtual ~specieReactionRates();
100 
101 
102  // Member Functions
103 
104  //- Read the specieReactionRates data
105  virtual bool read(const dictionary&);
106 
107  //- Do nothing
108  virtual bool execute();
109 
110  //- Write the specie reaction rates
111  virtual bool write();
112 
113 
114  // Member Operators
115 
116  //- Disallow default bitwise assignment
117  void operator=(const specieReactionRates&) = delete;
118 };
119 
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 } // End namespace functionObjects
124 } // End namespace Foam
125 
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 
128 #endif
129 
130 // ************************************************************************* //
dictionary dict
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
const word & name() const
Return the name of this functionObject.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
virtual bool write()
Write the specie reaction rates.
engineTime & runTime
TypeName("specieReactionRates")
Runtime type information.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Definition: Time.H:68
virtual bool read(const dictionary &)
Read the specieReactionRates data.
A class for handling words, derived from string.
Definition: word.H:59
Volume (cell) region selection class.
Definition: volRegion.H:102
Writes the domain averaged reaction rates for each specie for each reaction into the file <timeDir>/s...
void operator=(const specieReactionRates &)=delete
Disallow default bitwise assignment.
Specialisation of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
specieReactionRates(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
Namespace for OpenFOAM.
Base class for chemistry models.
functionObject base class for creating, maintaining and writing log files e.g. integrated of averaged...
Definition: logFiles.H:57