Cantera  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EdgeKinetics.h
Go to the documentation of this file.
1 /**
2  * @file EdgeKinetics.h
3  *
4  * @ingroup chemkinetics
5  * @ingroup electrochem
6  */
7 // Copyright 2001 California Institute of Technology
8 
9 #ifndef CT_EDGEKINETICS_H
10 #define CT_EDGEKINETICS_H
11 
12 #include "InterfaceKinetics.h"
13 
14 namespace Cantera
15 {
16 /**
17  * Heterogeneous reactions at one-dimensional interfaces between
18  * multiple adjacent two-dimensional surfaces.
19  */
21 {
22 public:
23  //! Constructor
25 
26  EdgeKinetics(const EdgeKinetics& right) :
27  InterfaceKinetics(right) {
28  *this=right;
29  }
30 
31  EdgeKinetics& operator=(const EdgeKinetics& right) {
32  if (this != &right) {
34  }
35  return *this;
36  }
37 
38  virtual Kinetics* duplMyselfAsKinetics(const std::vector<thermo_t*> & tpVector) const {
39  EdgeKinetics* iK = new EdgeKinetics(*this);
40  iK->assignShallowPointers(tpVector);
41  return iK;
42  }
43 
44  virtual int type() const {
45  return cEdgeKinetics;
46  }
47 
48  virtual void finalize();
49 };
50 }
51 
52 #endif
virtual void assignShallowPointers(const std::vector< thermo_t * > &tpVector)
Reassign the pointers within the Kinetics object.
Definition: Kinetics.cpp:140
virtual Kinetics * duplMyselfAsKinetics(const std::vector< thermo_t * > &tpVector) const
Duplication routine for objects which inherit from Kinetics.
Definition: EdgeKinetics.h:38
EdgeKinetics()
Constructor.
Definition: EdgeKinetics.h:24
A kinetics manager for heterogeneous reaction mechanisms.
Public interface for kinetics managers.
Definition: Kinetics.h:128
Heterogeneous reactions at one-dimensional interfaces between multiple adjacent two-dimensional surfa...
Definition: EdgeKinetics.h:20
virtual int type() const
Identifies the kinetics manager type.
Definition: EdgeKinetics.h:44
InterfaceKinetics & operator=(const InterfaceKinetics &right)
Assignment operator.
virtual void finalize()
Finish adding reactions and prepare for use.