in the channel flow you have three directions: streamwise, spanwise and lateral. The idea is to set streamwise and spanwise to periodic boundaries. In lateral direction you should set a no slip condition (bounce back or derivates). If you want to check how to set periodic boundaries see the poiseuille example. In the case of periodic boundaries we have to add a force (see also the poiseuille example).