Design of pressure and flow control valves, e.g. in loops