The simulation of a transient leaching circuit