Cantera  2.0
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 
10 #ifndef CT_EDGEKINETICS_H
11 #define CT_EDGEKINETICS_H
12 
13 #include "InterfaceKinetics.h"
14 
15 namespace Cantera
16 {
17 
18 /**
19  * Heterogeneous reactions at one-dimensional interfaces between
20  * multiple adjacent two-dimensional surfaces.
21  */
23 {
24 
25 public:
26 
27  /**
28  * Constructor
29  *
30  */
32 
33  /// Destructor.
34  virtual ~EdgeKinetics() {}
35 
36  EdgeKinetics(const EdgeKinetics& right) :
37  InterfaceKinetics(right) {
38  *this=right;
39  }
40 
41  EdgeKinetics& operator=(const EdgeKinetics& right) {
42  if (this != &right) {
44  }
45  return *this;
46  }
47 
48  //! Duplication routine for objects which inherit from Kinetics
49  /*!
50  * This virtual routine can be used to duplicate %Kinetics objects
51  * inherited from %Kinetics even if the application only has
52  * a pointer to %Kinetics to work with.
53  *
54  * These routines are basically wrappers around the derived copy constructor.
55  *
56  * @param tpVector Vector of shallow pointers to ThermoPhase objects. this is the
57  * m_thermo vector within this object
58  */
59  virtual Kinetics* duplMyselfAsKinetics(const std::vector<thermo_t*> & tpVector) const {
60  EdgeKinetics* iK = new EdgeKinetics(*this);
61  iK->assignShallowPointers(tpVector);
62  return dynamic_cast<Kinetics*>(iK);
63  }
64 
65  /**
66  * Identifies the subclass of the Kinetics manager type.
67  * These are listed in mix_defs.h.
68  * @deprecated use type() instead.
69  */
70  DEPRECATED(virtual int ID() const) {
71  return cEdgeKinetics;
72  }
73 
74  /**
75  * Identifies the subclass of the Kinetics manager type.
76  * These are listed in mix_defs.h.
77  */
78  virtual int type() const {
79  return cEdgeKinetics;
80  }
81 
82  // defined in InterfaceKinetics.cpp
83  virtual void finalize();
84 };
85 }
86 
87 #endif