A Numerical Understanding of Vertical Magnesium Thermal Reduction Processes