Shaping of the flow path in the vicinity of the flap