Boundary effects in fluid flow. Application to quantum liquids