A mathematical model for isothermal heap and column leaching