Subcatchment.pollut_quality#

property Subcatchment.pollut_quality#

Get Current Pollutant Water Quality Results from Subcatchment Runoff.

If Simulation is not running this method will raise a warning and return 0.

Returns:

Group of Subcatchment Runoff Pollutant Quality Values.

Return type:

dict

Examples:

>>> from pyswmm import Simulation, Subcatchments
>>>
>>> with Simulation('tests/buildup-test.inp') as sim:
...     s1 = Subcatchments(sim)["S1"]
...     for step in sim:
...         print(s1.pollut_quality)
{'TSS': 0.0, 'Lead': 0.0}
{'TSS': 0.0, 'Lead': 0.0}
{'TSS': 0.0, 'Lead': 0.0}