Modelling the chemical evolution of ? Centauri using three-dimensional hydrodynamical simulations