First, let us imagine a control valve installed at the base of a dam, releasing water from the reservoir. Given…