Dark energy perturbations in $N$-body simulations
Jeppe Dakin, Steen Hannestad, Thomas Tram, Mischa Knabenhans, Joachim, Stadel

TL;DR
This paper develops fully relativistic $N$-body simulations incorporating dark energy perturbations, demonstrating their significance at large scales and ensuring consistency with linear theory predictions from the CLASS Boltzmann solver.
Contribution
It introduces a method to include dark energy perturbations in $N$-body simulations compatible with general relativity, tested with both fluid and PPF formalisms.
Findings
Dark energy perturbations can cause up to tens of percent differences at large scales.
Simulations match linear theory results from CLASS for all linear scales.
Including relativistic effects is crucial for upcoming large scale structure surveys.
Abstract
We present -body simulations which are fully compatible with general relativity, with dark energy consistently included at both the background and perturbation level. We test our approach for dark energy parameterised as both a fluid, and using the parameterised post-Friedmann (PPF) formalism. In most cases, dark energy is very smooth relative to dark matter so that its leading effect on structure formation is the change to the background expansion rate. This can be easily incorporated into Newtonian -body simulations by changing the Friedmann equation. However, dark energy perturbations and relativistic corrections can lead to differences relative to Newtonian -body simulations at the tens of percent level for scales , and given the accuracy of upcoming large scale structure surveys such effects must be included. In…
| Parameter | Value |
|---|---|
| Simulation | note | |||
|---|---|---|---|---|
| A | (cosmological constant) | |||
| B | ||||
| C | ||||
| D | ||||
| E | ||||
| F | ||||
| G | ||||
| H | ||||
| I | (smooth dark energy) |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Dark energy perturbations in -body simulations
Jeppe Dakin
Steen Hannestad
Thomas Tram
Mischa Knabenhans
Joachim Stadel
Abstract
We present -body simulations which are fully compatible with general relativity, with dark energy consistently included at both the background and perturbation level. We test our approach for dark energy parameterised as both a fluid, and using the parameterised post-Friedmann (PPF) formalism. In most cases, dark energy is very smooth relative to dark matter so that its leading effect on structure formation is the change to the background expansion rate. This can be easily incorporated into Newtonian -body simulations by changing the Friedmann equation. However, dark energy perturbations and relativistic corrections can lead to differences relative to Newtonian -body simulations at the tens of percent level for scales – , and given the accuracy of upcoming large scale structure surveys such effects must be included. In this paper we will study both effects in detail and highlight the conditions under which they are important. We also show that our -body simulations exactly reproduce the results of the Boltzmann solver class for all scales which remain linear.
1 Introduction
In the coming few years, new, large galaxy surveys such as those from LSST [1] and EUCLID [2] will provide extremely precise measurements of the large scale structure of our Universe. While such surveys will allow probing of e.g. the dark energy component and the mass of neutrinos with unprecedented precision they also put stringent requirements on numerical simulations of large scale structure (see e.g. [3] for a detailed discussion of this subject).
Among the effects which need to be included are massive neutrinos and photons, as well as effects from general relativity. In a series of papers we have discussed and developed a framework for incorporating this into -body simulations (see [4, 5, 6, 7, 8]). This involves treating massive (but light) neutrinos, as well as photons and effects on the metric in linear perturbation theory using the class [9] code and subsequently add them as source terms in the dark matter equations of motion in the simulation.
Given that most models of dark energy predict that it is at most moderately inhomogeneous on scales below the horizon we can utilize the same approach for this component, and the purpose of this paper is indeed to demonstrate that our approach works extremely well for two standard parameterisations of dark energy; dark energy as a fluid and dark energy in the parameterised post-Friedmann approach111The approach should generalize to other types of dark energy which obey the conditions that: 1) Dark energy couples only gravitationally to other species, 2) dark energy perturbations remain linear at all times so that they can be adequately treated using linear perturbation theory. [10, 11].
In models where dark energy only has gravitational coupling to the matter fields, its effect on structure formation can basically be separated into two components: 1) The presence of dark energy changes the expansion of the background, leading to different growth rates of fluctuations in other species. 2) Unless dark energy is in the form of a cosmological constant, , it contains perturbations, and these act as a source term for gravitational clustering.
Given that dark energy is very smooth relative to dark matter, in most cases the leading effect is the change to the background expansion rate. This can be easily incorporated into Newtonian -body simulations by simply changing the Friedmann equation. However, for simulations with percent-level accuracy the second effect must also be taken into account, in particular in models where the effective dark energy sound speed is small. In this paper we will study both effects in detail and highlight the conditions under which they are important using the numerical framework presented in [4].
The paper is structured as follows: In Section 2 we discuss the theoretical set-up needed to include dark energy in both the fluid and PPF approaches. In Section 3 we present our numerical results, and finally Section 4 contains a discussion and our conclusions.
2 Method and implementation
Our treatment closely follows that of [4] (see also [5, 6, 7, 8]), but for clarity we briefly reiterate the needed steps here.
For pure matter (i.e. a pressureless component) the continuity and Euler equations for the density contrast and peculiar velocity can be written as
[TABLE]
where a dot denotes differentiation with respect to conformal time and is the conformal Hubble parameter with being the cosmic scale factor. The superscript ‘Nb’ denotes quantities in the -body gauge. The quantity is a correction to the Euler equation that originates in perturbed non-dust components such as relativistic species and dark energy. The gauge-invariant potential satisfies a Newtonian Poisson equation in the -body gauge, but with contributions from all species, i.e.
[TABLE]
with running over all species.
From [12], the Fourier space equation for can be written as
[TABLE]
where is the total anisotropic stress of all species and is the trace-free component of the spatial part of the metric in -body gauge (see e.g. [8]). For species other than dark energy the calculation of can be found outlined in e.g. the appendix of [4]. For the dark energy component (as for the other components) the quantities we shall need are , and . In the next subsection we will discuss how to extract these quantities in two different formulations of dark energy; dark energy as a fluid and dark energy in the parameterised post-Friedmann (PPF) approach.
Following the same steps as in [4] we split the total “force-potential” experienced by particles in the actual simulation into a contribution coming from the matter itself (calculable using standard techniques in the -body simulation), , and contributions coming from other species (neutrinos, photons and dark energy) and the GR correction , :
[TABLE]
with given by
[TABLE]
Here is a fictitious density perturbation which amounts to the GR potential correction ;
[TABLE]
Following the same prescription as in [7], at each time step in the simulation we realise222Note that we assume adiabatic initial conditions so that the set of random numbers used for the realisation is the same for all species, including the metric term . in Fourier space, solve its Poisson equation (2.6), transform to real space and apply the force from to the matter particles, in addition to the usual force from the matter particles themselves (corresponding to ).
As described in [4], to compute in linear perturbation theory, a class computation has been run in advance, providing us with , and in either synchronous or conformal Newtonian gauge, as well as and , all as functions of and . From these we can calculate for all species (including the metric) in -body gauge. All of these are subsequently realised on a grid in real space using the formalism outlined in [13].
In conclusion, all that is needed in order to run simulations with dark energy perturbations consistent with GR is to calculate , , and . These depend crucially on the way in which the dark energy component is parameterised, as we will now discuss.
2.1 Dark energy parameterisation
While the true nature of the dark energy component responsible for the current acceleration of the expansion is unknown, a vast number of models for it exist. Possible realisations of dark energy can be in the form of scalar fields evolving in very flat potentials, i.e. quintessence-like models.
From an “effective theory” point of view, two parameterisations are particularly popular, and have been implemented in both class [9] and camb [14]: Dark energy as a fluid, and dark energy in the parameterised post-Friedmann approach. These two models are representative of a wide range of different physical models, including quintessence and many modified gravity models. We therefore restrict our treatment to these two models. However, as noted before, any dark energy model in which the dark energy couples only gravitationally to other fields, and where the dark energy remains linear at all times and on all scales should be treatable using our prescription.
2.1.1 Dark energy as a fluid
A simple and often used parameterisation of dark energy is to describe it as a fluid with equation of state and constant rest-frame sound speed (see e.g. [15] for a detailed description). In this paper we make use of the parameterisation , though none of the equations presented rely on this choice.
In synchronous gauge (superscript ‘s’) the continuity and Euler equations of a dark energy fluid take the form
[TABLE]
where is the adiabatic sound speed squared. The standard assumption is to take , i.e. to have no anisotropic stress for the dark energy. These equations are implemented in standard versions of codes like camb and class, and adequately describe a range of dark energy models.
We shall need the pressure perturbation from the dark energy fluid in order to calculate its contribution to . This is given by
[TABLE]
As seen from (2.9), models in which there are phantom crossings (i.e. crosses 0) become pathological in this description. In that case a simple extension of the fluid concept is to use what is commonly referred to as the parameterised post-Friedmann approach.
2.1.2 Parameterised Post-Friedmann dark energy
The Parameterised Post-Friedmann (PPF) description of dark energy [16, 11] is the standard implementation of phantom crossing dark energy models in both class and camb. We will now sketch the derivation of the PPF formalism, but we refer the reader to the references above for a more complete derivation. We start by defining the dark energy (DE) perturbation in the DE rest frame,
[TABLE]
where we have assumed spatial flatness for simplicity (the generalisation to non-flat space is straightforward, however). We now consider the Poisson equation in conformal Newtonian gauge (superscript ‘N’),
[TABLE]
where we have separated the DE contribution from all other species (subscript ‘t’). The requirement that we recover the usual Newtonian Poisson equation in the small-scale limit forces to vanish in this limit. More precisely, we define an effective “sound speed” that specifies the scale below which the dark energy fluid is smooth. On super-horizon scales, energy conservation requires to satisfy the equation
[TABLE]
where is defined as
[TABLE]
In the opposite limit, the differential equation must drive to zero, i.e. we should have . Interpolating between these two limits provides the differential equation for ,
[TABLE]
We can now control the transition scale by choosing , and in practice the value has been found to mimic quintessence dark energy quite well [11]. This is the standard setting used in class and camb, and we shall use the same value in the present work. Details regarding the computation of can be found in e.g. [17]. For the implementation in -body simulations we shall again also need the pressure perturbation for the PPF dark energy component. However, this is somewhat more cumbersome to derive than in the fluid model, and therefore we provide a detailed description in Appendix A and B.
Numerical considerations
Note that in the limit where , (2.17) becomes extremely stiff and therefore numerically challenging for any explicit integrator to solve. However, we also note that in this limit is driven to zero and therefore we can simply enforce the condition for values of above some threshold. In camb this threshold is set to 30. However, we have found that this threshold may be safely increased well beyond this value, allowing for slightly increased accuracy of the solution without affecting the numerical stability or the computation time in any noticeable way. In particular, we set for , while additionally scaling and with a smoothly varying factor between and [math] for , as to not introduce discontinuities into the system.
In order to obtain precise values for and as needed for (2.6) from class, for the photons and neutrinos has to be increased well beyond their standard values. This increases the number of simultaneous differential equations to solve, and so class has to be run using the explicit Runge-Kutta integrator. Thus, introducing the cut-off is vital to keeping the number of time steps required by the code at an acceptable level.
2.1.3 Dark energy pressure perturbations
In Fig. 1 we show the dark energy pressure perturbation, , for a model with , , for both the fluid and the PPF parameterisations. The thin vertical lines show where the term , i.e. about where the solution starts to become damped for both the fluid and the PPF solutions. At late times these damped fluid and PPF solutions are very close to identical, though for the largest scales shown this is not the case yet at .
As a third option, Fig. 1 also shows the case where the PPF equations are solved to find and thus , but the pressure perturbation is calculated using the fluid prescription from (2.10). As can be seen, using this prescription successfully yields good approximate values for the fluid (at least at early times) even though the dark energy differential equations solved are those of PPF. At later times, the computed is typically off by a factor of compared to the real fluid solution.
On scales beyond the effective sound horizon of the dark energy component, differences between the fluid and PPF pressure perturbation are much larger. For the cases and the fluid and PPF prescriptions can yield pressure perturbations which are different by orders of magnitude. Though (2.10) can then somewhat successfully be used to obtain the fluid pressure perturbation from the solved PPF system, this is very far from the actual (PPF) pressure perturbation needed. We note that swapping out the much more involved PPF calculations of presented in Appendices A and B for the fluid (2.10) is inconsistent with the Einstein equations and that this inconsistency will show up prominently in the general relativistic correction potential , which in turn leads to large errors in the matter power spectrum on large scales.
In Fig. 2 we again show the time evolution of the dark energy pressure perturbation. However, in this case we also include a model with phantom crossing (lower panel). As can be seen, the full PPF expression for shows no divergence at the phantom crossing point at , while from (2.10) shows the expected pathology. One might consider regularizing the phantom crossing in the fluid case by introducing a small dimensionless parameter, , such that (see (59) of [18])
[TABLE]
where reduces (2.18) to the usual . As seen from Fig. 2, taking does indeed regularize the fluid of (2.10). Though the regularization (2.18) leads to a well behaved fluid even during phantom crossing, this should not be used instead of the properly calculated PPF , as already noted333We note that the regularization (2.18) of [18] was not proposed in connection with the PPF parameterisation..
3 Numerical setup and results
In order to test the formalism outlined above we perform a range of -body simulations using the publicly available concept -body solver [13]. All concept simulations in this work use cosmological parameters as listed in table 1. We use a neutrino sector of three massless neutrinos. The concept simulations all begin at , use matter particles and the potential grids (both and ) are of size . All concept simulations are carried out in box sizes of , and , the power spectra from which are patched together to give the ones presented.
3.1 Main results
In Fig. 3 we show the various individual contributions to . As expected, we see that the relativistic species (neutrinos and photons) provide the largest contribution to the potential at early times. Later, when dark energy becomes important, the DE perturbations and the DE contribution to the metric potential dominate completely. This behaviour is seen in all models, regardless of the specific values of , and . Though at late times , what really dominates is the dark energy contribution to . Worth noting here is also that dark energy in the fluid and PPF descriptions, while almost identical for moderate and large , can exhibit very different behaviour for small values of . In particular, the potential contribution for the PPF dark energy tend to switch sign at a given , as seen around in the two middle columns of Fig. 3. This sign change is accompanied with a simultaneous change in , which nullifies and even reverses the overall effect.
In Fig. 4 we show relative matter power spectra between models with time-varying DE and a CDM reference model, corresponding to simulation B–G and A in table 2, respectively. For reference we have also included the prediction calculated from the difference in the Newtonian growth factor , which comes solely from the change in the background expansion rate. As can be seen from the figure, essentially all models follow the Newtonian linear theory prediction for until the point where they go non-linear at higher -values. However, surveys with a volume sufficient to probe the region will be able to probe differences due to the GR corrections, which can be very large (tens of percent). This will be of particular interest to surveys such as EUCLID and possible future 21-cm surveys with even larger effective volumes [19, 20, 21, 22].
In the left panel of Fig. 5 we show a case where the sound speed is smaller than 1, corresponding to simulation H in table 2. In this case a difference relative to the Newtonian prediction arises around the sound horizon of the dark energy component which is now well inside the current horizon. In the particular case we show, the difference between the Newtonian prediction and the correct result is a few percent already close to , within the range which can be probed by e.g. EUCLID. Finally, for completeness, the right panel of Fig. 5 shows a simulation which has all components other than DE correctly implemented, but DE perturbations (including their contributions to ) ignored, corresponding to simulation I in table 2. In that case, we can clearly see that the simulation fails to match the correct linear theory prediction on large scales, but instead continues to follow the prediction of the linear Newtonian growth factor for all linear scales.
3.2 Comparison to PKDGRAV3
As demonstrated in [4], the full framework for adding general relativistic linear theory corrections to the -body particles of otherwise Newtonian simulations has been successfully implemented into the pkdgrav3 code [23, 24, 25] as well. Fig. 6 shows the same PPF concept relative matter power spectra as the middle row of Fig. 4, now with the corresponding spectra computed using pkdgrav3 added. The agreement is striking for both models, especially considering that concept and pkdgrav3 are very different codes, the first relying on particle-mesh methods and the latter on tree techniques, for computing the Newtonian matter gravity.
At non-linear scales (), Fig. 6 do show a difference between concept and pkdgrav3. This has nothing to do with dark energy or the linear corrections in general, as these are completely irrelevant on these scales, as demonstrated by e.g. the right panel of Fig. 5. Instead, the difference is produced by the lack of proper small-scale resolution of gravity in concept.
Now looking to the other end of the spectrum, at the very largest scales (), the pkdgrav3 results start to deviate from their concept (and class, see Fig. 4) counterparts. Here the pkdgrav3 simulations fail to obtain convergence of the matter gravity, which is to be expected for a pure tree code444Due to the very low absolute power at very large scales, the tree has to be crawled extremely deep in order to get these scales correct, essentially converting the tree operation into a direct summation operation.. As demonstrated by the right panel of Fig. 5, the interesting region regarding dark energy perturbations is , and so the pkdgrav3 lines cover about one decade within this region of interest, before convergence is no longer obtainable. During this decade however, exactly the correct behavior is observed. As an aside then, Fig. 6 in addition demonstrates clearly how pure mesh and pure tree codes have opposite strength/weakness regarding scale resolution.
4 Discussion
We have, for the first time, included non-cosmological constant dark energy into -body simulations, not just at the background level, but including perturbations, and fully consistent with GR.
It was shown that these simulations match the solution provided by class exactly in the linear regime, when the potentially highly non-trivial dark energy pressure perturbations are consistently included as a metric source term.
As expected we find that the dark energy perturbations and their contribution to the metric terms are important on very large scales, and that they become very sub-dominant on smaller scales. We highlight that dark energy in the fluid and PPF descriptions, while almost identical on scales below the dark energy sound horizon, are in general very different on larger scales. In most cases the difference is at scales beyond the reach of currently planned surveys such as EUCLID. However, future 21-cm surveys might be able to reach an effective survey volume large enough to make it detectable (see e.g. [19, 20, 21, 22]).
We find that for models with and scales smaller than the effect of dark energy is well described solely by its contribution to the background expansion rate. However, for models with smaller dark energy sound speed the dark energy perturbations themselves become important at the percent level already at , and therefore it might be possible to detect the effect in future surveys (see e.g. [26, 27] for a more detailed discussion).
It is worth noting that even though the effects studied here are mainly relevant on large scales, statistics which correlate short and long wavelengths are susceptible to errors even in the linear regime at small . Examples of this include weak lensing statistics where full lightcones must be properly constructed, as well as statistics used to probe non-Gaussianity in the squeezed limit.
Finally, we note that even though our current implementation has been done for the fluid and PPF dark energy descriptions, it should work equally well for any dark energy model which couples only gravitationally to other sectors and which contains no non-linear inhomogeneities (e.g. quintessence).
Acknowledgements
JD, SH, and TT are supported by the Villum Foundation. MK is supported by Swiss National Science Foundation grant 200021_182748 “The Euclid Emulator Project”. We would like to thank Doug Potter and Hugues de Laroussilhe for implementing the linear species mesh force in pkdgrav3.
Appendix A Computing in the PPF formalism using numerical differentiation
The dark energy pressure perturbation in the PPF formalism can be computed from the dark energy continuity equation. Following class, we define and . The continuity equation can then be written uniformly in Newtonian and synchronous gauge as
[TABLE]
from where it follows that
[TABLE]
As is not solved for by class, this has to be found through numerical differentiation. Though doable, superior accuracy can be obtained by writing as a purely algebraic expression in terms of known quantities. For this, see Appendix B.
Appendix B Computing in the PPF formalism algebraically
Without relying on numerical differentiation as in Appendix A, the dark energy pressure perturbation in the PPF formalism is highly non-trivial to compute. To ease the notation, we start by defining some quantities:
[TABLE]
where is the Hubble parameter.
In terms of , and we can write the PPF formulae as
[TABLE]
where in synchronous gauge and in Newtonian gauge. We can write the Euler equation in both gauges as
[TABLE]
where, as in class, and . Since , the PPF pressure perturbation can be written as
[TABLE]
All quantities in (B.7) are readily available in class, except for the time derivative which we shall now construct by taking the derivative of (B.5):
[TABLE]
To evaluate (B.8) we must compute :
[TABLE]
All that remains is to evaluate through the Euler equation:
[TABLE]
Note that is the total anisotropic stress , since anisotropic stress is absent for the PPF fluid. In synchronous gauge we also need which we can evaluate from the Einstein equation involving as
[TABLE]
In Newtonian gauge we can construct from the evolution variable and the total anisotropic stress as
[TABLE]
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] P. A. Abell et al. [LSST Science and LSST Project Collaborations], “LSST Science Book, Version 2.0,” ar Xiv:0912.0201 [astro-ph.IM].
- 2[2] R. Laureijs et al. [EUCLID Collaboration], “Euclid Definition Study Report,” ar Xiv:1110.3193 [astro-ph.CO].
- 3[3] A. Schneider et al. , JCAP 1604 (2016) no.04, 047 [ar Xiv:1503.05920 [astro-ph.CO]].
- 4[4] T. Tram, J. Brandbyge, J. Dakin and S. Hannestad, ar Xiv:1811.00904 [astro-ph.CO].
- 5[5] C. Fidler, C. Rampf, T. Tram, R. Crittenden, K. Koyama and D. Wands, Phys. Rev. D 92 (2015) no.12, 123517 [ar Xiv:1505.04756 [astro-ph.CO]].
- 6[6] C. Fidler, T. Tram, C. Rampf, R. Crittenden, K. Koyama and D. Wands, JCAP 1609 (2016) no.09, 031 [ar Xiv:1606.05588 [astro-ph.CO]].
- 7[7] J. Brandbyge, C. Rampf, T. Tram, F. Leclercq, C. Fidler and S. Hannestad, Mon. Not. Roy. Astron. Soc. 466 (2017) L 68 [ar Xiv:1610.04236 [astro-ph.CO]].
- 8[8] J. Adamek, J. Brandbyge, C. Fidler, S. Hannestad, C. Rampf and T. Tram, Mon. Not. Roy. Astron. Soc. 470 (2017) no.1, 303 [ar Xiv:1703.08585 [astro-ph.CO]].
