On the pumping effect in a pipe/tank flow configuration with friction