Transient flow in water distribution system