Finite Element Modeling of Multi-Pass Welding and Shaped Metal Deposition Processes