pump_power#

module wntr.metrics.economic

pump_power(flowrate, head, wn)[source]#

Compute pump power.

The computation uses pump flow rate, node head (used to compute headloss at each pump), and pump efficiency. Pump efficiency is defined in wn.options.energy.global_efficiency. Pump efficiency curves are currently not supported.

wn.options.energy.global_efficiency = 75 # This means 75% or 0.75

Parameters:
  • flowrate (pandas DataFrame) – A pandas DataFrame containing pump flowrates (index = times, columns = pump names).

  • head (pandas DataFrame) – A pandas DataFrame containing node head (index = times, columns = node names).

  • wn (wntr WaterNetworkModel) – Water network model. The water network model is needed to define energy efficiency.

Return type:

A DataFrame that contains pump power in W (index = times, columns = pump names).