Loading [MathJax]/extensions/tex2jax.js
Cantera  3.2.0a1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 https://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"
11
12namespace Cantera
13{
14
15//! A source or sink whose state remains constant regardless of any flows or other
16//! interactions with other Reactor objects.
17//! @ingroup reactorGroup
18class Reservoir : public ReactorBase
19{
20public:
21 using ReactorBase::ReactorBase; // inherit constructors
22
23 string type() const override {
24 return "Reservoir";
25 }
26
27 void initialize(double t0=0.0) override {}
28};
29
30}
31
32#endif
Base class for stirred reactors.
Definition ReactorBase.h:49
A source or sink whose state remains constant regardless of any flows or other interactions with othe...
Definition Reservoir.h:19
string type() const override
String indicating the reactor model implemented.
Definition Reservoir.h:23
void initialize(double t0=0.0) override
Initialize the reactor.
Definition Reservoir.h:27
Namespace for the Cantera kernel.
Definition AnyMap.cpp:595