pump_cost#

module wntr.metrics.economic

pump_cost(energy, wn)[source]#

Compute the pump cost over time.

Energy cost is defined in wn.options.energy.global_price. Pump energy price and price patterns are currently not supported.

wn.options.energy.global_price = 3.61e-8 # $/J; equal to $0.13/kW-h

Parameters:
  • energy (pandas DataFrame) – A pandas DataFrame containing pump energy (J), computed from wntr.metrics.pump_energy (index = times, columns = pump names).

  • wn (wntr WaterNetworkModel) – Water network model. The water network model is needed to define pump enery prices and patterns.

Return type:

A DataFrame that contains pump cost in $ (index = times, columns = pump names).