Numerical study of the thermal processes in a furnace