Pipe#
module wntr.network.elements
- class Pipe[source]#
Bases:
Link
Pipe class, inherited from Link.
Constructor
This class is intended to be instantiated through the
add_pipe()
method. Direct creation through the constructor is highly discouraged.- Parameters:
name (string) – Name of the pipe
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 pipe will belong to.
Attributes
The link name (read-only)
returns
"Pipe"
The start node object.
The name of the start node (read only)
The end node object.
The name of the end node (read only)
length of the pipe
diameter of the pipe
pipe roughness
minor loss coefficient
The initial status (Opened, Closed, Active) of the Link
does this pipe have a check valve
if not None, then a pipe specific bulk reaction coefficient
if not None, then a pipe specific wall reaction coefficient
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 velocity through the link
(read-only) current simulated headloss
(read-only) the current simulation friction factor in the pipe
(read-only) the current simulation reaction rate in the pipe
(read-only) current simulated average link quality
the current status of the pipe
- to_dict()#
Dictionary representation of the link
- to_ref()#
- property bulk_coeff#
if not None, then a pipe specific bulk reaction coefficient
- Type:
float or None
- property friction_factor#
(read-only) the current simulation friction factor in the pipe
- Type:
- property initial_status#
The initial status (Opened, Closed, Active) of the Link
- Type:
- property link_type#
returns
"Pipe"
- property status#
the current status of the pipe
- 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.