Analysing materials by measuring the pressure or volume of a gas or vapour by allowing diffusion of components through a porous wall and measuring a pressure or volume difference