Viscous flow calculations in turbomachinery channels