Comparison of shear flow of hexadecane in a confined geometry and in bulk