Modeling of thin films for self-cleaning purposes