Model for heap leaching of gold ores by cyanidation