Energy separation in a channel with permeable wall