Finite-element analysis of flows of non-Newtonian fluids in three-dimensional enclosures