Multi-physical simulation of selective laser melting