Modeling temperature and residual stress fields in selective laser melting. (February 2018)