Coupled Thermoelectric Model and Effects of Current Fluctuation on Thermal Balance in Magnesium Electrolysis Cell