Computational methods for plasticity