wntr.metrics.hydraulic#

The wntr.metrics.hydraulic module contains hydraulic metrics.

Functions

average_expected_demand

Compute average expected demand per day at each junction using base demands and demand patterns along with the demand multiplier

entropy

Compute entropy, equations from [2].

expected_demand

Compute expected demand at each junction and time using base demands and demand patterns along with the demand multiplier

modified_resilience_index

Compute the modified resilience index, equations from [11].

tank_capacity

Compute tank capacity, the ratio of water volume stored in tanks to the maximum volume of water that can be stored.

todini_index

Compute Todini index, equations from [25].

water_service_availability

Compute water service availability (WSA) at junctions, defined as follows: