Modeling the formation of porphyry-copper ores (Q245556)