Modeling particle accelerators with large-scale Particle-In-Cell codes