Cantera
Install
User Guide
Examples
Reference
Develop
Community
4.0.0a2
Toggle main menu visibility
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
"
10
#include "
cantera/base/Solution.h
"
11
12
namespace
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
18
class
Reservoir
:
public
ReactorBase
19
{
20
public
:
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
ReactorBase.h
Solution.h
Cantera::ReactorBase::ReactorBase
ReactorBase(shared_ptr< Solution > sol, const string &name="(none)")
Instantiate a ReactorBase object with Solution contents.
Definition
ReactorBase.cpp:23
Cantera::Reservoir
A source or sink whose state remains constant regardless of any flows or other interactions with othe...
Definition
Reservoir.h:19
Cantera::Reservoir::type
string type() const override
String indicating the reactor model implemented.
Definition
Reservoir.h:23
Cantera::Reservoir::ReactorBase
ReactorBase(shared_ptr< Solution > sol, const string &name="(none)")
Instantiate a ReactorBase object with Solution contents.
Definition
ReactorBase.cpp:23
Cantera::Reservoir::initialize
void initialize(double t0=0.0) override
Initialize the reactor.
Definition
Reservoir.h:27
Cantera
Namespace for the Cantera kernel.
Definition
AnyMap.cpp:595
include
cantera
zeroD
Reservoir.h
Generated by
1.17.0