Numerical modeling of interface mechanical problems at the microscopical level