Cantera  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Reservoir.h
Go to the documentation of this file.
1 /**
2  * @file Reservoir.h
3  */
4 // Copyright 2001 California Institute of Technology
5 
6 #ifndef CT_RESERVOIR_H
7 #define CT_RESERVOIR_H
8 
9 #include "ReactorBase.h"
10 
11 namespace Cantera
12 {
13 
14 class Reservoir : public ReactorBase
15 {
16 public:
17  Reservoir() {}
18  virtual int type() const {
19  return ReservoirType;
20  }
21  virtual void initialize(doublereal t0 = 0.0) {}
22 
23  void insert(Cantera::ThermoPhase& contents) {
24  setThermoMgr(contents);
25  }
26 };
27 
28 }
29 
30 #endif
Base class for a phase with thermodynamic properties.
Definition: ThermoPhase.h:97
virtual void setThermoMgr(thermo_t &thermo)
Specify the mixture contained in the reactor.
Definition: ReactorBase.cpp:26