A Navier-Stokes solver for cascade flows