When molecules of fluid collide with wall of the pipe (or duct through which it is flowing) then I understand that it undergoes elastic collision and rebounds back. However, when there are large number of molecules, say in case of liquid, then near the wall also there are molecules present, the molecule which is about to collide with the wall now transfers momentum to molecules near wall and undergoes inelastic collision and hence is assumed to be at rest. (I am not sure how this process takes place.)
In case it get rebound back after some momentum loss then we have slip condition.
Correct me if I am wrong,by providing appropriate explanation for the same.