Multiscale and multiphysics modeling of metal AM