A finite element formulation to solve a non-local constitutive model with stresses and strains due to slip gradients