Variable-speed pumps and minimum flow control valves: Design