Modelling of plasma-wall interaction and impurity transport in fusion devices and prompt deposition of tungsten as application. (15th November 2017)