Link#
- class Link(model, linkid)[source]#
Link Methods.
Examples:
>>> from pyswmm import Simulation, Links >>> >>> with Simulation('tests/data/model_weir_setting.inp') as sim: ... c1c2 = Links(sim)["C1:C2"] ... print(c1c2.flow) ... for step in sim: ... print(c1c2.flow) 0.0
Methods
Check if link is a Conduit Type.
Check if link is a Orifice Type.
Check if link is a Outlet Type.
Check if link is a Pump Type.
Check if link is a Weir Type.
Attributes
Get/set Average Conduit Loss.
Get link upstream and downstream node IDs.
Get Link current setting.
Get Link Results for Depth.
Get Link Results for Downstream X-section Flow Area.
Get Link Results for Flow.
Get/set link flow limit.
Get Link Results for Froude.
Get/set Link Initial Flow.
Get/set Inlet Head Loss.
Get link inlet node ID.
Get/set Upstream Offset Depth.
Get Link ID.
Get/set Outlet Head Loss.
Get link outlet node ID.
Get/set Downstream Offset Depth.
Get Current Water Quality Values for a Link.
Get Current Water Quality Values for the mixed reactor inside a Link.
Get/set Conduit Seepage Loss.
Get/set Link Target Setting.
Get Total Pollutant Loading Values for a Link.
Get Link Results for Upstream X-section Flow Area.
Get Link Results for Volume.