Knowledge based simulation and diagnosis of metallurgical reactors