I am doing welding analysis with phase transformation effects in Abaqus. For the developed UEXPAN subroutine, I have to make the system understand whether heating/cooling is taking place. To flag the elements, I used the USDFLD and GETVRM. But I have to calculate the temp difference (TEMP(1)-Temp_old) so that if the difference is negative, I can mark it as cooling, and if positive, I can mark it as Heating. It will help to give the EXPAN(1) at the right time. How can we get the old temperature for the same?