If lubricants are mixed with certain additives, a protective layer known as tribofilm forms in the lubricated contact. The project will develop a simulation scheme that simulates both wear and regeneration of the tribofilm for different configurations. The theories of Rabinowicz and Eyring are used for this purpose.