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-2018 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 
48 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 
50 namespace Foam
51 {
52 namespace functionObjects
53 {
54 
55 /*---------------------------------------------------------------------------*\
56  Class specieReactionRates Declaration
57 \*---------------------------------------------------------------------------*/
58 
59 template<class ChemistryModelType>
61 :
62  public fvMeshFunctionObject,
63  public volRegion,
64  public logFiles
65 {
66  // Private Member Data
67 
68  const ChemistryModelType& chemistryModel_;
69 
70 
71  // Private Member Functions
72 
73  //- File header information
74  virtual void writeFileHeader(const label i);
75 
76  //- Disallow default bitwise copy construct
78 
79  //- Disallow default bitwise assignment
80  void operator=(const specieReactionRates&);
81 
82 
83 public:
84 
85  //- Runtime type information
86  TypeName("specieReactionRates");
87 
88 
89  // Constructors
90 
91  //- Construct from Time and dictionary
93  (
94  const word& name,
95  const Time& runTime,
96  const dictionary& dict
97  );
98 
99 
100  //- Destructor
101  virtual ~specieReactionRates();
102 
103 
104  // Member Functions
105 
106  //- Read the specieReactionRates data
107  virtual bool read(const dictionary&);
108 
109  //- Do nothing
110  virtual bool execute();
111 
112  //- Write the specie reaction rates
113  virtual bool write();
114 };
115 
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 } // End namespace functionObjects
120 } // End namespace Foam
121 
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 
124 #endif
125 
126 // ************************************************************************* //
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.
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...
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