create_hydraulic_model#
module wntr.sim.hydraulics
- create_hydraulic_model(wn, HW_approx='default')[source]#
- Parameters:
wn (WaterNetworkModel)
mode (str)
HW_approx (str) – Specifies which Hazen-Williams headloss approximation to use. Options are ‘default’ and ‘piecewise’. Please see the WNTR documentation on hydraulics for details.
- Returns:
m (wntr.aml.Model)
model_updater (wntr.models.utils.ModelUpdater)