Subcatchment.connection#
- property Subcatchment.connection#
Get Subcatchment Outlet Connection.
This function return the type of loading surface and the ID. The two load to objects are nodes and other subcatchments.
Node
2
Subcatchment
1
- Returns:
(Loading Surface Type, ID)
- Return type:
Examples:
>>> from pyswmm import Simulation, Subcatchments >>> >>> with Simulation('tests/data/model_weir_setting.inp') as sim: ... s1 = Subcatchments(sim)["S1"] ... print(s1.connection) (2, 'J2')