Cantera  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RxnMolChange.h
1 /**
2  * @file RxnMolChange.cpp
3  *
4  */
5 /*
6  * Copyright (2005) Sandia Corporation. Under the terms of
7  * Contract DE-AC04-94AL85000 with Sandia Corporation, the
8  * U.S. Government retains certain rights in this software.
9  */
10 
11 #ifndef RXNMOLCHANGE_H
12 #define RXNMOLCHANGE_H
13 
14 
15 #include <vector>
16 
17 namespace Cantera
18 {
19 class ExtraGlobalRxn;
20 class Kinetics;
21 
22 
23 //! Class that includes some bookeeping entries for a reaction or a global reaction defined on a surface
24 /*!
25  * Note that all indexes refer to a specific interfacial or homogeneous kinetics object. It does not
26  * refer to the Phase list indexes.
27  * @deprecated Unfinished implementation to be removed after Cantera 2.2.
28  */
30 {
31 public:
32  //! Main constructor for the class
33  /*!
34  * @param kinPtr Pointer to the kinetics base class
35  * @param irxn Specific reaction index.
36  */
37  RxnMolChange(Cantera::Kinetics* kinPtr, int irxn);
38 
39  //! Destructor
41 
42  //! Constructor for the object if the object refers to a global reaction
43  /*!
44  * @param kinPtr Pointer to the kinetics base class
45  * @param egr Specific reaction index.
46  */
48 
49  //! Vector of mole changes for each phase in the Kinetics object due to the current reaction
50  /*!
51  * This is the sum of the product stoichiometric coefficient minum the reactant stoichioemtric coefficient
52  * for all the species in a phase.
53  * The index is over all the phases listed in the Kinetics object.
54  */
55  std::vector<double> m_phaseMoleChange;
56 
57  std::vector<double> m_phaseReactantMoles;
58 
59  std::vector<double> m_phaseProductMoles;
60 
61  //! Vector of mass changes for each phase in the Kinetics object due to the current reaction
62  /*!
63  * This is the sum of the product stoichiometric coefficient minum the reactant stoichioemtric coefficient
64  * index multiplied by the molecular weight for all species in a phase.
65  * The index is over all of the phases listed in the Kinetics object.
66  */
67  std::vector<double> m_phaseMassChange;
68 
69  //! Vector of mass changes for each phase in the Kinetics object due to the current reaction
70  /*!
71  * This is the sum of the product stoichiometric coefficient minum the reactant stoichioemtric coefficient
72  * index multiplied by the charg for all species in a phase.
73  * The index is over all of the phases listed in the Kinetics object.
74  */
75  std::vector<double> m_phaseChargeChange;
76 
77  //! Vector of phase types in the reaction
78  /*!
79  * Collection of eosTypes for all phases in the kinetics object
80  * The index is over all of the phases listed in the Kinetics object.
81  */
82  std::vector<int> m_phaseTypes;
83 
84  //! Vector of phase dimensions for the reaction
85  /*!
86  * Collection of nDims for all phases in the kinetics object
87  * The index is over all of the phases listed in the Kinetics object.
88  */
89  std::vector<int> m_phaseDims;
90 
91  //! Number of phases in the kientics object
92  int m_nPhases;
93 
94  //! Shallow pointer pointing to the kinetics object
96 
97  //! Reaction number within the kinetics object
98  /*!
99  * If this is neg 1, then this reaction refers to a global reaction
100  * specified by the m_egr pointer.
101  */
102  int m_iRxn;
103 
104  //! Maximum change in charge of any phase due to this reaction
106 
107  //! Electrochemical beta parameter for the reaction
108  double m_beta;
109 
110  //! Pointer to the specification of the global reaction
111  /*!
112  * This is 0, if the class refers to a single reaction in the kinetics object
113  */
115 };
116 }
117 
118 #endif
~RxnMolChange()
Destructor.
Definition: RxnMolChange.h:40
Cantera::Kinetics * m_kinBase
Shallow pointer pointing to the kinetics object.
Definition: RxnMolChange.h:95
double m_ChargeTransferInRxn
Maximum change in charge of any phase due to this reaction.
Definition: RxnMolChange.h:105
std::vector< double > m_phaseMassChange
Vector of mass changes for each phase in the Kinetics object due to the current reaction.
Definition: RxnMolChange.h:67
std::vector< double > m_phaseChargeChange
Vector of mass changes for each phase in the Kinetics object due to the current reaction.
Definition: RxnMolChange.h:75
int m_iRxn
Reaction number within the kinetics object.
Definition: RxnMolChange.h:102
Public interface for kinetics managers.
Definition: Kinetics.h:128
Class describing an extra global reaction, which is defined as a linear combination of actuals reacti...
RxnMolChange(Cantera::Kinetics *kinPtr, int irxn)
Main constructor for the class.
std::vector< int > m_phaseDims
Vector of phase dimensions for the reaction.
Definition: RxnMolChange.h:89
Cantera::ExtraGlobalRxn * m_egr
Pointer to the specification of the global reaction.
Definition: RxnMolChange.h:114
std::vector< double > m_phaseMoleChange
Vector of mole changes for each phase in the Kinetics object due to the current reaction.
Definition: RxnMolChange.h:55
std::vector< int > m_phaseTypes
Vector of phase types in the reaction.
Definition: RxnMolChange.h:82
Class that includes some bookeeping entries for a reaction or a global reaction defined on a surface...
Definition: RxnMolChange.h:29
int m_nPhases
Number of phases in the kientics object.
Definition: RxnMolChange.h:92
double m_beta
Electrochemical beta parameter for the reaction.
Definition: RxnMolChange.h:108