Modelling Of The Thermal History During Submerged Arc Welding And Wire And Arc Additive Manufacturing