Thermo-Mechanical Modeling of Additive Manufacturing