Study of flow in porous media with applications