Pump#
module wntr.network.elements
- class Pump[source]#
Bases:
Link
Pump class, inherited from Link.
For details about the different subclasses, please see one of the following:
HeadPump
andPowerPump
Constructor
This class is intended to be instantiated through the
add_pump
method. Direct creation through the constructor is highly discouraged.- Parameters:
name (string) – Name of the pump
start_node_name (string) – Name of the start node
end_node_name (string) – Name of the end node
wn (
WaterNetworkModel
) – The water network model this pump will belong to.
Attributes
The link name (read-only)
"Pump"
(read only)The start node object.
The name of the start node (read only)
The end node object.
The name of the end node (read only)
base multiplier for a speed timeseries
pattern name for the speed
timeseries of speed values (retrieve only)
The initial status (Opened, Closed, Active) of the Link
The initial setting for the link (if Active)
pump efficiency
energy price surcharge (only used by EPANET)
energy pattern name
A list of curve points, in the direction of start node to end node.
A tag or label for this link
Read-only simulation results
(read-only) current simulated flow through the link
(read-only) current simulated headloss
(read-only) current simulated velocity through the link
(read-only) current simulated average link quality
the current status of the pump
Alias to speed for consistency with other link types
- add_outage(wn, start_time, end_time=None, priority=6, add_after_outage_rule=False)[source]#
Add a pump outage rule to the water network model.
- Parameters:
model (
WaterNetworkModel
) – The water network model this outage will belong to.start_time (int) – The time at which the outage starts.
end_time (int) – The time at which the outage stops.
priority (int) – The outage rule priority, default = 6 (very high)
add_after_outage_rule (bool) – Flag indicating if a rule is added to open the pump after the outage. Pump status after the outage is generally defined by existing controls/rules in the water network model. For example, the pump opens based on the level of a specific tank.
- remove_outage(wn)[source]#
Remove an outage control from the water network model
- Parameters:
wn (
WaterNetworkModel
) – Water network model
- to_dict()#
Dictionary representation of the link
- to_ref()#
- property initial_status#
The initial status (Opened, Closed, Active) of the Link
- Type:
- property setting#
Alias to speed for consistency with other link types
- property speed_timeseries#
timeseries of speed values (retrieve only)
- Type:
- property status#
the current status of the pump
- Type:
- property vertices#
A list of curve points, in the direction of start node to end node.
The vertices should be listed as a list of (x,y) tuples when setting.