Thermal And Residual Stress Modeling Of Functionally Graded Deposits Using The Ptaam