Mesoscopic simulations of plastic deformation