Analysis of a drainage efficiency in stratified porous media