Numerical modelling of mass transfer in an autoclave