Cantera  2.4.0
AqueousKinetics.h
Go to the documentation of this file.
1 /**
2  * @file AqueousKinetics.h
3  * @ingroup chemkinetics
4  */
5 
6 // This file is part of Cantera. See License.txt in the top-level directory or
7 // at http://www.cantera.org/license.txt for license and copyright information.
8 
9 #ifndef CT_AQUEOUSKINETICS_H
10 #define CT_AQUEOUSKINETICS_H
11 
12 #include "BulkKinetics.h"
13 
14 namespace Cantera
15 {
16 
17 /**
18  * Kinetics manager for elementary aqueous-phase chemistry. This kinetics
19  * manager implements standard mass-action reaction rate expressions for liquids
20  *
21  * @attention This class currently does not have any test cases or examples. Its
22  * implementation may be incomplete, and future changes to Cantera may
23  * unexpectedly cause this class to stop working. If you use this class,
24  * please consider contributing examples or test cases. In the absence of
25  * new tests or examples, this class may be deprecated and removed in a
26  * future version of Cantera. See
27  * https://github.com/Cantera/cantera/issues/267 for additional information.
28  *
29  * @deprecated To be removed after Cantera 2.4
30  *
31  * @ingroup kinetics
32  */
34 {
35 public:
36  /// Constructor. Creates an empty reaction mechanism.
38 
39  virtual std::string kineticsType() const {
40  return "Aqueous";
41  }
42 
43  virtual void getEquilibriumConstants(doublereal* kc);
44  virtual void getFwdRateConstants(doublereal* kfwd);
45  void updateROP();
46 
47  //! Update temperature-dependent portions of reaction rates
48  void _update_rates_T();
49 
50  //! Update properties that depend on concentrations.
51  void _update_rates_C();
52 
53  //! Update the equilibrium constants in molar units.
54  void updateKc();
55 
56  virtual bool addReaction(shared_ptr<Reaction> r);
57  virtual void modifyReaction(size_t i, shared_ptr<Reaction> rNew);
58 };
59 }
60 
61 #endif
Kinetics manager for elementary aqueous-phase chemistry.
thermo_t & thermo(size_t n=0)
This method returns a reference to the nth ThermoPhase object defined in this kinetics mechanism...
Definition: Kinetics.h:227
virtual void modifyReaction(size_t i, shared_ptr< Reaction > rNew)
Modify the rate expression associated with a reaction.
AqueousKinetics(thermo_t *thermo=0)
Constructor. Creates an empty reaction mechanism.
virtual void getEquilibriumConstants(doublereal *kc)
Return a vector of Equilibrium constants.
Base class for a phase with thermodynamic properties.
Definition: ThermoPhase.h:93
Partial specialization of Kinetics for chemistry in a single bulk phase.
Definition: BulkKinetics.h:21
void _update_rates_T()
Update temperature-dependent portions of reaction rates.
virtual bool addReaction(shared_ptr< Reaction > r)
Add a single reaction to the mechanism.
void updateKc()
Update the equilibrium constants in molar units.
void _update_rates_C()
Update properties that depend on concentrations.
virtual void getFwdRateConstants(doublereal *kfwd)
Return the forward rate constants.
Namespace for the Cantera kernel.
Definition: AnyMap.cpp:8
virtual std::string kineticsType() const
Identifies the Kinetics manager type.