Variational analysis of diffusion in a catalyst pore