The particle simulation code