Cantera  2.3.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  * @ingroup kinetics
30  */
32 {
33 public:
34  /// Constructor. Creates an empty reaction mechanism.
36 
37  //! Duplication routine for objects which inherit from Kinetics
38  /*!
39  * This virtual routine can be used to duplicate Kinetics objects
40  * inherited from Kinetics even if the application only has
41  * a pointer to Kinetics to work with.
42  *
43  * These routines are basically wrappers around the derived copy constructor.
44  *
45  * @param tpVector Vector of shallow pointers to ThermoPhase objects. this is the
46  * m_thermo vector within this object
47  */
48  virtual Kinetics* duplMyselfAsKinetics(const std::vector<thermo_t*> & tpVector) const;
49 
50  virtual int type() const {
51  warn_deprecated("AqueousKinetics::type",
52  "To be removed after Cantera 2.3.");
53  return cAqueousKinetics;
54  }
55 
56  virtual std::string kineticsType() const {
57  return "Aqueous";
58  }
59 
60  virtual void getEquilibriumConstants(doublereal* kc);
61  virtual void getFwdRateConstants(doublereal* kfwd);
62  void updateROP();
63 
64  //! Update temperature-dependent portions of reaction rates
65  void _update_rates_T();
66 
67  //! Update properties that depend on concentrations.
68  void _update_rates_C();
69 
70  //! Update the equilibrium constants in molar units.
71  void updateKc();
72 
73  virtual bool addReaction(shared_ptr<Reaction> r);
74  virtual void modifyReaction(size_t i, shared_ptr<Reaction> rNew);
75 };
76 }
77 
78 #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:276
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.
void warn_deprecated(const std::string &method, const std::string &extra)
Print a warning indicating that method is deprecated.
Definition: global.cpp:54
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
virtual int type() const
Identifies the kinetics manager type.
Public interface for kinetics managers.
Definition: Kinetics.h:111
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.
virtual Kinetics * duplMyselfAsKinetics(const std::vector< thermo_t *> &tpVector) const
Duplication routine for objects which inherit from Kinetics.
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: application.cpp:29
virtual std::string kineticsType() const
Identifies the Kinetics manager type.