Residual currents and temperature field