Pump.pump_statistics#

property Pump.pump_statistics#

Pump Stats. The stats returned are rolling/cumulative. Indeces are as follows:

percent_utilized

min_flowrate

average_flowrate

max_flowrate

total_volume

energy_consumed

off_curve_low

off_curve_high

number_startups

total_periods

Returns:

Group of Stats

Return type:

dict

Examples:

>>> from pyswmm import Simulation, Links
>>> import pprint
>>> pp = pprint.PrettyPrinter(indent=4)
>>>        
>>> with Simulation('tests/data/model_pump_setting.inp') as sim:        
...     c3 = Links(sim)["C3"]
...     for step in sim:
...         pass
...     pp.pprint(c3.pump_statistics)        
o  Retrieving project data
{   'average_flowrate': 20.0,
    'energy_consumed': 2792.5975765384896,
    'max_flowrate': 20.0,
    'min_flowrate': 0.0,
    'number_startups': 1,
    'off_curve_high': 0.0,
    'off_curve_low': 0.0,
    'percent_utilized': 208800.0,
    'total_periods': 208801,
    'total_volume': 4176000.0
}