Cantera  2.0
ConstPressureReactor.h
1 /**
2  * @file Reactor.h
3  */
4 
5 // Copyright 2001 California Institute of Technology
6 
7 #ifndef CT_CONSTP_REACTOR_H
8 #define CT_CONSTP_REACTOR_H
9 
10 #include "Reactor.h"
11 
12 namespace Cantera
13 {
14 
15 /**
16  * Class ConstPressureReactor is a class for constant-pressure
17  * reactors. The reactor may have an arbitrary number of inlets
18  * and outlets, each of which may be connected to a "flow device"
19  * such as a mass flow controller, a pressure regulator,
20  * etc. Additional reactors may be connected to the other end of
21  * the flow device, allowing construction of arbitrary reactor
22  * networks.
23  *
24  */
26 {
27 
28 public:
29 
30  /**
31  * Default constructor.
32  */
34 
35  /**
36  * Destructor. Deletes the integrator.
37  */
38  virtual ~ConstPressureReactor() {}
39 
40 
41  virtual int type() const {
42  return ConstPressureReactorType;
43  }
44 
45  //-----------------------------------------------------
46 
47  //virtual int neq() { return m_nv; }
48 
49  virtual void getInitialConditions(doublereal t0, size_t leny,
50  doublereal* y);
51 
52  virtual void initialize(doublereal t0 = 0.0);
53  virtual void evalEqs(doublereal t, doublereal* y,
54  doublereal* ydot, doublereal* params);
55 
56  virtual void updateState(doublereal* y);
57 
58  virtual size_t componentIndex(std::string nm) const;
59 
60 protected:
61 
62 private:
63 
64 };
65 }
66 
67 #endif
68