A numerical study of thermocapillary flow in a rectangular cavity during laser melting