Changes of geometry and properties of porous media