Self-consistent N-body simulations of modified gravity models are a key ingredient to obtain rigorous constraints on deviations from general relativity using large-scale structure observations. This paper provides the first detailed comparison of the results of different N-body codes for the f (R), Dvali–Gabadadze–Porrati and Symmetron models, starting from the same initial conditions. We find that the fractional deviation of the matter power spectrum from Λ cold dark matter agrees to better than 1 per cent up to k ∼ 5–10 h Mpc−1 between the different codes. These codes are thus able to meet the stringent accuracy requirements of upcoming observational surveys. All codes are also in good agreement in their results for the velocity divergence power spectrum, halo abundances and halo profiles. We also test the quasi-static limit, which is employed in most modified gravity N-body codes, for the Symmetron model for which the most significant non-static effects among the models considered are expected. We conclude that this limit is a very good approximation for all of the observables considered here.
- large-scale structure of Universe