reactingMixture.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) 2011-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::reactingMixture
26 
27 Description
28  Foam::reactingMixture
29 
30 SourceFiles
31  reactingMixture.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef reactingMixture_H
36 #define reactingMixture_H
37 
38 #include "speciesTable.H"
39 #include "chemistryReader.H"
40 #include "multiComponentMixture.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class reactingMixture Declaration
49 \*---------------------------------------------------------------------------*/
50 
51 template<class ThermoType>
52 class reactingMixture
53 :
54  public speciesTable,
55  public autoPtr<chemistryReader<ThermoType>>,
56  public multiComponentMixture<ThermoType>,
57  public PtrList<Reaction<ThermoType>>
58 {
59  // Private member data
60 
61  //- Table of species composition
62  speciesCompositionTable speciesComposition_;
63 
64 
65  // Private Member Functions
66 
67  //- Disallow default bitwise copy construct
69 
70  //- Disallow default bitwise assignment
71  void operator=(const reactingMixture&);
72 
73 
74 public:
75 
76  //- The type of thermo package this mixture is instantiated for
77  typedef ThermoType thermoType;
78 
79 
80  // Constructors
81 
82  //- Construct from dictionary, mesh and phase name
83  reactingMixture(const dictionary&, const fvMesh&, const word&);
84 
85 
86  //- Destructor
87  virtual ~reactingMixture()
88  {}
89 
90 
91  // Member functions
92 
93  //- Read dictionary
94  void read(const dictionary&);
95 
96  label size() const
97  {
99  }
102  {
104  }
106  const Reaction<ThermoType>& operator[](const label i) const
107  {
109  }
110 
111  //- Table of species composition
113  {
114  return speciesComposition_;
115  }
116 };
117 
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 } // End namespace Foam
122 
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 
125 #ifdef NoRepository
126  #include "reactingMixture.C"
127 #endif
128 
129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130 
131 #endif
132 
133 // ************************************************************************* //
const speciesCompositionTable & specieComposition() const
Table of species composition.
Foam::reactingMixture.
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
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
virtual ~reactingMixture()
Destructor.
Simple extension of ReactionThermo to handle reaction kinetics in addition to the equilibrium thermod...
Definition: Reaction.H:53
friend Ostream & operator(Ostream &, const UPtrList< T > &)
Write UPtrList to Ostream.
A class for handling words, derived from string.
Definition: word.H:59
Foam::multiComponentMixture.
Reaction< ThermoType > & operator[](const label i)
A wordList with hashed indices for faster lookup by name.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Definition: List.H:63
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
ThermoType thermoType
The type of thermo package this mixture is instantiated for.
void read(const dictionary &)
Read dictionary.
Namespace for OpenFOAM.