Skip to main content

Research Repository

Advanced Search

Fast full N-body simulations of generic modified gravity: conformal coupling models

Ruan, Cheng-Zong; Hernández-Aguayo, César; Li, Baojiu; Arnold, Christian; Baugh, Carlton M; Klypin, Anatoly; Prada, Francisco

Fast full N-body simulations of generic modified gravity: conformal coupling models Thumbnail


Cheng-Zong Ruan

César Hernández-Aguayo

Christian Arnold

Carlton M Baugh

Anatoly Klypin

Francisco Prada


We present mg-glam, a code developed for the very fast production of full N-body cosmological simulations in modified gravity (MG) models. We describe the implementation, numerical tests and first results of a large suite of cosmological simulations for three classes of MG models with conformal coupling terms: the f(R) gravity, symmetron and coupled quintessence models. Derived from the parallel particle-mesh code glam, mg-glamincorporates an efficient multigrid relaxation technique to solve the characteristic nonlinear partial differential equations of these models. For f(R) gravity, we have included new variants to diversify the model behaviour, and we have tailored the relaxation algorithms to these to maintain high computational efficiency. In a companion paper, we describe versions of this code developed for derivative coupling MG models, including the Vainshtein- and K-mouflage-type models. mg-glam can model the prototypes for most MG models of interest, and is broad and versatile. The code is highly optimised, with a tremendous speedup of a factor of more than a hundred compared with earlier N-body codes, while still giving accurate predictions of the matter power spectrum and dark matter halo abundance. mg-glam is ideal for the generation of large numbers of MG simulations that can be used in the construction of mock galaxy catalogues and the production of accurate emulators for ongoing and future galaxy surveys.

Journal Article Type Article
Acceptance Date Mar 16, 2022
Online Publication Date May 11, 2022
Publication Date 2022
Deposit Date Oct 27, 2021
Publicly Available Date Jul 7, 2022
Journal Journal of Cosmology and Astroparticle Physics
Publisher IOP Publishing
Peer Reviewed Peer Reviewed
Volume 2022
Issue 5
Article Number 18
Public URL


Published Journal Article (5.1 Mb)

Publisher Licence URL

Copyright Statement
2022 The Author(s). Published by IOP Publishing
Ltd on behalf of Sissa Medialab. Original content from
this work may be used under the terms of the Creative Commons
Attribution 4.0 licence. Any further distribution of this work must
maintain attribution to the author(s) and the title of the work,
journal citation and DOI.

You might also like

Downloadable Citations