Mechanics, Boundary Layers and Function Spaces