Modeling the deposition process of thermal barrier coatings