Use of POD in control of flow through porous media