Numerical solutions of double diffusion in cavities