Cantera  3.1.0b1
Loading...
Searching...
No Matches
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 //! @deprecated Unused; to be removed after %Cantera 3.1.
31 warn_deprecated("Reservoir::insert",
32 "Unused; to be removed after Cantera 3.1.");
34 }
35
37};
38
39}
40
41#endif
Base class for stirred reactors.
Definition ReactorBase.h:49
virtual void setThermo(ThermoPhase &thermo)
Specify the mixture contained in the reactor.
void insert(shared_ptr< Solution > sol)
ThermoPhase & contents()
return a reference to the contents.
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
void insert(ThermoPhase &contents)
Definition Reservoir.h:30
Base class for a phase with thermodynamic properties.
Namespace for the Cantera kernel.
Definition AnyMap.cpp:595
void warn_deprecated(const string &source, const AnyBase &node, const string &message)
A deprecation warning for syntax in an input file.
Definition AnyMap.cpp:1997