Fundamentals of Simulation of Metallurgical Processes