Pressure changes during diffusion with chemical reaction in a porous pellet