Cantera  2.4.0
Reservoir.h
Go to the documentation of this file.
1 //! @file Reservoir.h
2 
3 // This file is part of Cantera. See License.txt in the top-level directory or
4 // at http://www.cantera.org/license.txt for license and copyright information.
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(ThermoPhase& contents) {
24  setThermoMgr(contents);
25  }
26 };
27 
28 }
29 
30 #endif
virtual void setThermoMgr(thermo_t &thermo)
Specify the mixture contained in the reactor.
Definition: ReactorBase.cpp:26
Namespace for the Cantera kernel.
Definition: AnyMap.cpp:8