Design of two-dimensional channels with prescribed velocity distribution along the channel walls I : relaxation solutions