How to directly measure the mean flow velocity in square cross-section pipes