A flowfield segmentation method for the numerical solution of viscous flow problems