Numerical simulation of indentation with size effect