A methodology for material design applied to porous media with flow