piecewise_hazen_williams_headloss_constraint#
module wntr.sim.models.constraint
- class piecewise_hazen_williams_headloss_constraint[source]#
Bases:
Definition
- classmethod build(m, wn, updater, index_over=None)[source]#
Adds a mass balance to the model for the specified junctions.
- Parameters:
m (wntr.aml.aml.aml.Model)
updater (ModelUpdater)
index_over (list of str) – list of pipe names; default is all pipes in wn
- classmethod update(m, wn, updater, obj, attr)#