Reservoir#
module wntr.network.elements
- class Reservoir[source]#
Bases:
Node
Reservoir class, inherited from Node
Constructor
This class is intended to be instantiated through the
add_reservoir()
method. Direct creation through the constructor is highly discouraged.- Parameters:
name (string) – Name of the reservoir.
wn (
WaterNetworkModel
) – The water network model this reservoir will belong to.base_head (float, optional) – Base head at the reservoir. Internal units must be meters (m).
head_pattern (str, optional) – Head pattern name
Attributes
The name of the node (read only)
"Reservoir"
(read only)The constant head (elevation) for the reservoir, or the base value for a head timeseries
Name of the head pattern to use
The head timeseries for the reservoir (read only)
The node coordinates, (x,y)
The initial quality (concentration) at the node
A tag or label for the node
Read-only simulation results
(read-only) the current simulation demand at the node (actual demand)
(read-only) the current simulation head at the node (total head)
(read-only) the current simulation pressure (0.0 for reservoirs)
(read-only) the current simulation quality at the node
- to_dict()#
Dictionary representation of the node
- to_ref()#
- property base_head#
The constant head (elevation) for the reservoir, or the base value for a head timeseries
- property head_timeseries#
The head timeseries for the reservoir (read only)
- property leak_discharge_coeff#
(read-only) the current simulation leak discharge coefficient
- Type:
- property node_type#
"Reservoir"
(read only)