Node#

class Node(model, nodeid)[source]#

Node Methods.

Parameters:
  • model (object) – Open Model Instance

  • nodeid (str) – Node ID

Examples:

>>> from pyswmm import Simulation, Nodes
>>>
>>> with Simulation('tests/data/model_weir_setting.inp') as sim:
...     j1 = Nodes(sim)["J1"]
...     print(j1.invert_el)
...     for step in sim:
...         print(j1.depth)
0.0

Methods

generated_inflow

Generate and Set a Node Inflow Rate.

is_divider

Check if node is a Divider Type.

is_junction

Check if node is a Junction Type.

is_outfall

Check if node is a Outfall Type.

is_storage

Check if node is a Storage Type.

Attributes

cumulative_inflow

Get Cumulative Node Loading.

depth

Get Node Results for Depth.

flooding

Get Node Results for Flooding Rate.

full_depth

Get node full depth (Physical Depth of manhole).

head

Get Node Results for Head.

hydraulic_retention_time

Get Node Results for hydraulic retention time.

inflow_quality

Get Current Inflow Water Quality Values for a Node.

initial_depth

Get/set node initial depth.

invert_elevation

Get/set node invert elevation.

lateral_inflow

Get Node Results for lateral Inflow rate.

losses

Get Node Results for Losses Rate (Evap and Exfiltration).

nodeid

Get Node ID.

pollut_quality

Get Current Water Quality Values for a Node.

ponding_area

Get/set node ponding area.

reactor_quality

Get Current Water Quality Values for the mixed reactor inside a Node.

statistics

Node Statistics.

surcharge_depth

Get/set node surcharge depth.

total_inflow

Get Node Results for Total Inflow Rate.

total_outflow

Get Node Results for Total Outflow Rate.

volume

Get Node Results for Volume.