Cantera  2.3.0
EdgeKinetics.h
Go to the documentation of this file.
1 /**
2  * @file EdgeKinetics.h
3  *
4  * @ingroup chemkinetics
5  * @ingroup electrochem
6  */
7 
8 // This file is part of Cantera. See License.txt in the top-level directory or
9 // at http://www.cantera.org/license.txt for license and copyright information.
10 
11 #ifndef CT_EDGEKINETICS_H
12 #define CT_EDGEKINETICS_H
13 
14 #include "InterfaceKinetics.h"
15 
16 namespace Cantera
17 {
18 /**
19  * Heterogeneous reactions at one-dimensional interfaces between
20  * multiple adjacent two-dimensional surfaces.
21  */
23 {
24 public:
25  //! Constructor
27  m_nDim = 1;
28  }
29 
30  EdgeKinetics(const EdgeKinetics& right) :
31  InterfaceKinetics(right) {
32  *this=right;
33  }
34 
35  EdgeKinetics& operator=(const EdgeKinetics& right) {
36  if (this != &right) {
37  InterfaceKinetics::operator=(right);
38  }
39  return *this;
40  }
41 
42  virtual Kinetics* duplMyselfAsKinetics(const std::vector<thermo_t*> & tpVector) const {
43  EdgeKinetics* iK = new EdgeKinetics(*this);
44  iK->assignShallowPointers(tpVector);
45  return iK;
46  }
47 
48  virtual int type() const {
49  warn_deprecated("EdgeKinetics::type",
50  "To be removed after Cantera 2.3.");
51  return cEdgeKinetics;
52  }
53 
54  virtual std::string kineticsType() const {
55  return "Edge";
56  }
57 };
58 }
59 
60 #endif
void warn_deprecated(const std::string &method, const std::string &extra)
Print a warning indicating that method is deprecated.
Definition: global.cpp:54
EdgeKinetics()
Constructor.
Definition: EdgeKinetics.h:26
A kinetics manager for heterogeneous reaction mechanisms.
size_t m_nDim
Number of dimensions of reacting phase (2 for InterfaceKinetics, 1 for EdgeKinetics) ...
virtual void assignShallowPointers(const std::vector< thermo_t *> &tpVector)
Reassign the pointers within the Kinetics object.
Definition: Kinetics.cpp:129
Public interface for kinetics managers.
Definition: Kinetics.h:111
Heterogeneous reactions at one-dimensional interfaces between multiple adjacent two-dimensional surfa...
Definition: EdgeKinetics.h:22
virtual int type() const
Identifies the kinetics manager type.
Definition: EdgeKinetics.h:48
Namespace for the Cantera kernel.
Definition: application.cpp:29
virtual std::string kineticsType() const
Identifies the Kinetics manager type.
Definition: EdgeKinetics.h:54
virtual Kinetics * duplMyselfAsKinetics(const std::vector< thermo_t *> &tpVector) const
Duplication routine for objects which inherit from Kinetics.
Definition: EdgeKinetics.h:42