Pressure drop through structured porous media. Inlet and outlet effects