Many types of dense suspensions are complex materials exhibiting both solid-like and fluid-like behavior. These suspensions are usually considered to behave as non-Newtonian fluids and the rheological characteristics such as yield stress, thixotropy and shear-thinning/thickening can have significant impact on the flow and the engineering applications of these materials. Therefore, it is important to understand the rheological features of these fluids. In this paper, we study the flow of a nonlinear fluid which exhibits yield stress and shear-thinning effects. The geometries of interests are a straight channel, a channel with a crevice and a pipe with a contraction; we assume the fluid behaves as a Herschel-Bulkley fluid. The numerical simulations indicate that for flows with low Reynolds number and high Bingham number an unyielded plug may form in the center of the channel. In the case of a channel with a crevice, the fluid in the deep portion of the crevice is at an extremely high level of viscosity, forming a plug which is hard to yield. For the pipe with a contraction, near the pipe neck the unyielded region is smaller due to the enhanced flow disturbance.