specieReactionRates.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 | Copyright (C) 2016 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 Group
28  grpFieldFunctionObjects
29 
30 Description
31  Writes the domain averaged reaction rates for each specie for each reaction
32  into the file <timeDir>/specieReactionRates.dat
33 
34 See also
35  Foam::functionObjects::fvMeshFunctionObject
36  Foam::functionObjects::volRegion
37  Foam::functionObjects::logFiles
38 
39 SourceFiles
40  specieReactionRates.C
41 
42 \*---------------------------------------------------------------------------*/
43 
44 #ifndef functionObjects_specieReactionRates_H
45 #define functionObjects_specieReactionRates_H
46 
47 #include "fvMeshFunctionObject.H"
48 #include "volRegion.H"
49 #include "logFiles.H"
50 
51 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52 
53 namespace Foam
54 {
55 namespace functionObjects
56 {
57 
58 /*---------------------------------------------------------------------------*\
59  Class specieReactionRates Declaration
60 \*---------------------------------------------------------------------------*/
61 
62 template<class ChemistryModelType>
64 :
65  public fvMeshFunctionObject,
66  public volRegion,
67  public logFiles
68 {
69  // Private Member Data
70 
71  const ChemistryModelType& chemistryModel_;
72 
73 
74  // Private Member Functions
75 
76  //- File header information
77  virtual void writeFileHeader(const label i);
78 
79  //- Disallow default bitwise copy construct
81 
82  //- Disallow default bitwise assignment
83  void operator=(const specieReactionRates&);
84 
85 
86 public:
87 
88  //- Runtime type information
89  TypeName("specieReactionRates");
90 
91 
92  // Constructors
93 
94  //- Construct from Time and dictionary
96  (
97  const word& name,
98  const Time& runTime,
99  const dictionary& dict
100  );
101 
102 
103  //- Destructor
104  virtual ~specieReactionRates();
105 
106 
107  // Member Functions
108 
109  //- Read the specieReactionRates data
110  virtual bool read(const dictionary&);
111 
112  //- Do nothing
113  virtual bool execute();
114 
115  //- Write the specie reaction rates
116  virtual bool write();
117 };
118 
119 
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 
122 } // End namespace functionObjects
123 } // End namespace Foam
124 
125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126 
127 #endif
128 
129 // ************************************************************************* //
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:137
virtual bool write()
Write the specie reaction rates.
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:105
Writes the domain averaged reaction rates for each specie for each reaction into the file <timeDir>/s...
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
Namespace for OpenFOAM.
functionObject base class for creating, maintaining and writing log files e.g. integrated of averaged...
Definition: logFiles.H:57