A geometrical model for fluid flow in porous structures