Microstructure simulation during the welding process