Modelling microstructural changes in pulsed weldments