Abstract
Cosmological simulations involving the fully covariant gravitational dynamics may prove relevant in understanding relativistic/non-linear features and, therefore, in taking better advantage of the upcoming large scale structure survey data. We propose a new 3 + 1 integration scheme for general relativity in the case where the matter sector contains a minimally-coupled perfect fluid field. The original feature is that we completely eliminate the fluid components through the constraint equations, thus remaining with a set of unconstrained evolution equations for the rest of the fields. This procedure does not constrain the lapse function and shift vector, so it holds in arbitrary gauge and also works for arbitrary equation of state. An important advantage of this scheme is that it allows one to define and pass an adaptation of the robustness test to the cosmological context, at least in the case of pressureless perfect fluid matter, which is the relevant one for late-time cosmology.
Export citation and abstract BibTeX RIS
1. Introduction
The upcoming large scale structure observations will provide a powerful probe of relativistic/non-linear effects in cosmology, such as those encountered in alternative descriptions of the dark sector, backreaction, matter-radiation interactions, neutrinos, cosmic defects, the inflationary phase, etc. This motivated some very recent developments in going beyond the standard simulation techniques that are the linear-Boltzmann and Newtonian N-body approaches. These include the first relativistic N-body code [1–4], where the gravitational field is treated through an appropriately truncated second-order perturbation theory [1, 5, 6], Newtonian N-body simulations that include linearized radiation [7, 8] or a more sophisticated estimate of the scale factor [9], and a Boltzmann method for describing non-linear effects of massive neutrinos [10]. At the same time, fully non-linear simulations of general relativity (GR) have been performed to study aspects of both the early and late universe, using well-established schemes of numerical relativity (NR, [11–16] for reviews). There are simulations of the inflationary epoch in [17–20] and [21–23] dimensions, while for late-time cosmology there are spherical collapse simulations [24, 25] and simulations involving a pressureless perfect fluid field [26–31] (see also [32]). The latter are mainly motivated by the issue of cosmic backreaction which, until recently, was addressed numerically only through lattice configurations [33–39]. Finally, there is also a renewal of interest in NR N-body simulations of the collapse dynamics [40], after the earlier work of Shibata [41, 42] and the even earlier, but lower-dimensional, works of Shapiro and Teukolsky using both N-body and Boltzmann approaches [43–48] (see also [49]).
Our interest here lies in NR applied to cosmology. A first observation is that NR has been mostly developed to deal with strong gravity phenomena at astrophysical scales, in which case the scenarios of interest involve localized (if not absent) matter. This is in sharp contrast with cosmology, where gravity is weak and matter is totally delocalized, so there are novel features that need to be taken into account. One such feature is that hydrodynamical matter fields generically contain growing modes around the FLRW background, already at the linear (analytic) level. The prototypical example is the linearly gauge-invariant density contrast , which appears in the Poisson equation for the Bardeen potential . For instance, in the case of a pressureless perfect fluid, contains a growing mode proportional to the scale factor a, corresponding to the growth of structure due to gravitational attraction. At perturbation theory breaks down and the fully non-linear matter dynamics must be taken into account in order to properly describe structure formation.
The presence of such modes in the numerically evolved fields implies that any initial fluctuation will inevitably drive one increasingly away from homogeneity and isotropy, already in the linear regime, in contrast with linear perturbation theory around Minkowski space-time. Note that this has nothing to do with spurious growing modes due to numerical error, since the modes we are discussing are physical and present already at the linear analytic level. This poses a problem for setting up a cosmological analogue of the robustness test (see [50, 51] for standard testbeds in NR). By the latter we mean testing the code's ability to follow the FLRW space-time, instead of Minkowski, in the presence of a small-amplitude random field perturbation mimicking the numerical error. The importance of such a test is well-established [50, 51], as it constitutes a prerequisite for trusting the stability of simulations in the non-linear regime. It is therefore worth trying to find a way of expressing the system such that the test can be passed.
Returning to the above example, one can note that while grows, Φ does not, because cancels out the growth of in the Poisson equation. It is then possible to eliminate from the gravitational dynamical equations, as already noticed by Bardeen [52]. One can thus evolve only the bounded field Φ and compute anytime through the Poisson equation. Here we generalize this idea to the fully non-linear case by noting that a perfect fluid field (PF) can be completely eliminated through the diffeomorphism constraints algebraically. This leaves us with a set of unconstrained evolution equations for the gravitational fields alone which, as is well known, have no growing linear modes in the appropriate gauge. The numerical accuracy of this indirect integration method of the fluid dynamics, e.g. in capturing shock waves, will be addressed in future work [53].
We illustrate this idea in the 'standard ADM form' of the Einstein equations and discuss some applications. A particularly original one is that the PF field can be used as an artificial component representing constraint violation, whose dynamics could be chosen such that this violation is damped. This could be very useful in the case where the physical matter content is modeled in the N-body approach. Finally, focusing on the case where the PF is the only physical matter content, we consider a specific choice of variables and gauge for which there are no growing linear modes in the evolved fields and corroborate this numerically by successfully passing the robustness test on a FLRW space-time with . This also implies that the scheme solves very accurately the exactly homogeneous and isotropic space-time solution, as we show by an explicit computation.
2. The general idea
2.1. Set up
Let us consider the metric in ADM form
where is the lapse function, is the shift vector and is the induced 3-metric, so that is the unit vector normal to the spatial hypersurfaces. The gravitational equations of motion of GR in standard ADM form then read ()
and
where we use to displace the indices, is the extrinsic curvature, and are the connection and Ricci tensor of , is the cosmological constant and E, Pi, are the canonical matter energy, momentum and stress densities, respectively. These are the components of the energy-momentum tensor in the n-frame
where
is the associated projector. Incidentally, , while and . Assuming the presence of an independently conserved PF, we can split , where the curly letters (, , ) denote the PF part, while the 'extra' superscript labels the extra matter content. We thus have
where is the fluid's 4-velocity and and p are the energy density and pressure in the fluid's rest-frame U. Using (2.6) for the PF sector we then get
where
are the proper time 3-velocity measured by the canonical observer and the generalization of the corresponding Lorentz factor, respectively. In particular, we can invert
Using the above relation, along with the equation of state , we can express p in terms of and . For instance, in the case of constant equation of state parameter , we find
Equation (2.11) then implies that all PF quantities can be expressed algebraically in terms of and , i.e. the degrees of freedom of a PF, a fact that is important to keep in mind in what follows.
2.2. Eliminating the perfect fluid
In the most common NR schemes, the so-called 'free evolution' schemes, and in particular in the cosmological simulations performed so far, one solves numerically the evolution equations, i.e. the ones that are differential equations in time. Here this corresponds to solving equations (2.2) and (2.3) for the gravitational sector. For a generic matter sector, one needs to specify the matter action and derive the corresponding equations of motion. However, in the case of PF matter, the fact that there are only four degrees of freedom and means that their evolution is entirely determined by the energy-momentum conservation equation
since we have assumed that the PF is minimally coupled and thus conserved independently of . Indeed, using the above translations between n-frame and U-frame components, we can express (2.15) in terms of and
which form a closed set thanks to (2.11) and the equation of state. With the evolution equations being the ones that are solved numerically, the constraint equations (2.4) and (2.5) need only to be solved at the initial data surface and are then monitored at each time-step6, thus providing a first and valuable stability check of the simulation.
Here we propose the opposite choice for dealing with the PF field. Instead of using the four energy-momentum conservation equations (2.16) and (2.17) to evolve and in time, we choose to use the four constraint equations (2.4) and (2.5) to determine and algebraically out of the rest of the involved fields at each time-step
With this algebraic substitution, the PF fields are totally eliminated and the resulting system is unconstrained7. In the standard ADM approach in which we work here, our scheme would therefore correspond to solving (2.2), (2.3) and the evolution equations of the 'extra' matter fields, where (2.18) and (2.19) have been used to eliminate the PF fields. These last two equations can then be used to obtain the PF information out of the fields that are actually been evolved at any time. As a consequence, it is the PF evolution equations (2.16) and (2.17) that are now redundant, i.e. they are no longer needed for closing the system. In analogy with the free evolution schemes, one could instead monitor these equations to check numerical stability. As already mentioned in the introduction, however, the study of the accuracy of the PF dynamics using this indirect method is postponed to future work. The only check we will perform here is related to the FLRW solution.
From now on let us focus on the case for simplicity. We see that , parametrize the constraint hypersurface in phase space of the full GR + PF system, i.e. we only have physical states by construction. The numerical constraint violation of free evolution schemes is now translated into an error on the PF quantities and and therefore to a violation of energy-momentum conservation , i.e. the relation between two subsequent states is not necessarily physical. It therefore seems that we have only traded one kind of error for another. However, what we did gain is that now the PF fields no longer participate in the robustness test, since they are not evolved in the integration to begin with. They are only physically relevant combinations of the fields that we are actually solving numerically. This way we avoid the growing modes discussed in the introduction (e.g. the matter density contrast), that are present already at the analytical linear level. Since the gravitational perturbations are bounded in time in the appropriate gauge, we are now able to set up a robustness test around a FLRW solution.
2.3. Fluid degrees of freedom inside the gravitational fields
Let us finally get a bit more insight into how the gravitational and PF degrees of freedom (DOF) coexist inside and . To that end, we linearize (2.2) and (2.3) around a flat FLRW background, using (2.11), (2.18) and (2.19). Being only interested in the spectrum, we look at small enough scales/periods and can thus effectively set the scale factor to 1. Moreover, we can also integrate out the variables, thus expressing the equations in second-order form. We perform a scalar-vector-tensor (SVT) decomposition
i.e. all vectors/tensors have zero divergence and trace, and we displace the indices using . We get two wave equations
where is the speed of sound and appears through the perturbation of p in , using the fact that at the linear level (2.13). We see that the gravitational potential is now dynamical and carries the sound DOF. In vacuum GR we have that , but has no DOF because of the Hamiltonian and (the divergence of) the momentum constraints. As for the h and hi components, it is convenient to integrate in two auxiliary fields π and (with ) in order to express the equations in first-order form
and
The π and fields are linear combinations of and perturbations, whose precise form is irrelevant for our purposes here. Indeed, the relevant feature is the structure of the equations. In particular, we see that there are no DOF in the couple, because we can trivialize the evolution of both fields by choosing appropriately χ and ψ. As for , the hi components can be trivialized with , so we only have two DOF in , corresponding to the rotational velocity of the fluid. In vacuum GR the latter are neutralized by the rotational part of the momentum constraint. Thus, the four DOF of the fluid and lie in the lower helicity modes of the gravitational field that are now unconstrained. We are therefore basically evolving the PF through the gravitational fields.
One should also observe that this 'de-constraining' procedure is only possible in a cosmological context, because we need in (2.11). This, however, does not mean that we cannot handle local voids . Indeed, assuming the weak energy condition , we get from (2.13) that , so the numerator in tends faster to zero than the denominator. One can thus safely set by hand as soon as goes below some threshold value.
Finally, note that any generally-covariant theory of gravity can be deconstrained in some analogous manner, simply because and will always appear linearly in the diffeomorphism constraints. However, depending on the precise structure of the theory and extra matter content, this might not be enough to get rid of all growing linear modes in the fields that need to be evolved.
3. A concrete scheme
From now on we consider the case where the PF is the only physical matter content in the universe, i.e. .
3.1. Choice of variables and gauge
We start by rewriting the unconstrained GR + PF system, i.e. (2.2) and (2.3) with (2.11), (2.18) and (2.19), in the form which provides a better numerical behavior. We first decompose and in the conformal/traceless fashion
where , and all indices are displaced using from now on. The above separation, also used in the BSSN scheme [54, 55], is especially important in cosmology because it distinguishes the fields with a non-trivial background , K from the rest , . We then consider the following slicing
where the integrals are carried over the full spatial slice. On a FLRW space-time, both a and (and thus ) reduce to the scale factor, so this is a non-linear generalization of conformal time. This choice is mostly out of convenience, because the linear propagating fluctuations have a constant frequency with respect to that time.
Next, we consider the gauge , whose conservation leads to an elliptic equation for . In practice, however, the modified condition with helps the convergence of numerical deviations from , and the detailed equation reads
where and we have used to simplify the part. The evolution equations (2.2) and (2.3) now read
where
'T' denotes the traceless part and are the Christoffel symbols of . Thanks to and , the only double spatial derivatives that appear are conformal Laplacians , a 'hyperbolic' characteristic which could be responsible for the good numerical performance.
Here it is important to stress that, although we do use the conformal/traceless decomposition, which is one of the defining features of the BSSN scheme, there is another crucial feature of BSSN which cannot be implemented here and therefore clearly distinguishes the two approaches. Indeed, in BSSN one evolves independently , considering its definition as an extra constraint equation, and one uses the momentum constraint to alter its evolution equation. This last manipulation is 'essential for the numerical stability of the system' [55], because it is needed to make the system strongly hyperbolic [56, 57]. In our case, the fact that the constraint equations have been used to eliminate part of the fields means that we can no longer use them at all, since this would reintroduce the said fields in the equations. We are therefore far from the defining structure of the BSSN scheme on which many of its merits are based.
3.2. Absence of growing linear modes
Let us now show that there are no growing linear modes, at the analytical level, in the evolved fields in this gauge for the simpler case of constant equation of state parameter . We thus linearize around FLRW and perform a SVT decomposition
where is the scale factor and is the physical Hubble parameter in conformal time. If we further set , then and vanish. However, we keep these components to verify that the system maintains their amplitude close to numerical error. Going to Fourier space and choosing the time variable the equations become
for the scalar , vector and tensor multiplets with
where , and . All eigenvalues have negative real part for the typical cases of interest , and . Moreover, the determinant of the eigenvector matrices is generically non-zero, so that Ms, Mv and Mt are diagonalizable and one can thus trust the spectrum to deduce the behavior.
4. Numerical tests
In this section we specialize to the case and , i.e. a universe filled with only pressureless matter. We have developed our code using the latfield2 library [58, 59]. latfield2 is a C++ library designed to simplify writing parallel codes for solving partial differential equations on rectilinear meshes, developed for application to classical field theories in particle physics and cosmology. The problem is discretized on a regular Cartesian mesh. Spatial derivatives are computed using finite differences with 3, 5, or 7 point stencil. In this paper the presented results are computed using a 5 points stencil. The time integration of (3.4)–(3.7) is performed using a fourth-order Runge–Kutta method (RK4) without any artificial dissipation method. The algebraic constraints , are imposed by hand [51, 64, 65] at each intermediary RK4 step. The elliptic equation imposing our gauge condition (3.3) is solved using a relaxation method [66] at every time-step with and the from the previous time-step as initial conditions. Finally, from now on all distances are given in units, where here h is the dimensionless Hubble constant, i.e. .
4.1. The FLRW solution
We first consider integrating the homogeneous and isotropic solution with zero spatial curvature. For the precise FLRW solution we will consider, the non-trivial fields are given by
where the 'i' and '0' subscripts denote the initial and final times, respectively, and in particular we have chosen . Incidentally, the initial and final values of the scale factor are ai and a0, and here we have . The value of t0 is given by
where H0 is the final physical Hubble parameter and we set . Finally, we choose , meaning that we evolve from redshift 49 to 0, and leading to . The initial conditions of our integration being
the numerical evolution preserves both the lack of -dependence as well as the trivial values of and . Thus, the non-trivial numerical information is solely and , whose values we pick at some arbitrary point on the grid. More precisely, we are interested in the relative errors with respect to the analytical solution
where is indeed 'relative' since the actual gravitational field is . On the PF side, the only non-trivial quantity here is the energy density , since , and through (2.18) we get . Therefore, the relative error on the energy density is of the same order
by construction. We perform the computation for three time resolutions , where , and plot the normalized deviations and in figure 1. We first note that the relative errors are bounded in time and exhibit the same behavior for all resolutions. The fact that the curves decrease in magnitude as N increases means that we have achieved fourth-order global convergence, as expected with the RK4 method.
4.2. The FLRW robustness test
In section 3.2 we demonstrated the absence of growing linear modes around the FLRW solution in theory, so the remaining non-trivial requirement is that the fully non-linear system is able to respect that condition numerically. We therefore consider the FLRW initial data plus random perturbation fields
where the entries of and are drawn with a uniform distribution of amplitude independently at each space point and for each field component, using the GSL random generator with a different seed for each MPI process. We set periodic spatial boundary conditions and consider a fixed comoving box size of , so that we start outside the horizon at early times and end up inside at late times. We perform the test for three resolutions, 643, 1283 and 2563 grid points. We pick , where is the lattice spacing, so that the matter density contrast is of the same order for all resolutions. It reaches a maximum value of at t0, so the linear regime is maintained. Finally the Courant factor is set to 10, i.e. , since the speed of light is unity. In terms of , our three resolutions therefore correspond to .
We next define the following measures of deviation from the analytical FLRW solution
where , and the gauge violation
respectively. Note that, in the case of and , we can only consider absolute deviations since their FLRW values are trivial. In figures 2 and 3 we plot the evolution of these quantities for all three resolutions. We see that the perturbations are indeed bounded in time and, most importantly, that we have convergence under resolution increase. More precisely, here it is not the amplitude of the deviation that is relevant, because we are decreasing its initial value by hand as we increase the resolution . Rather, what matters is that the behavior of the deviation remains qualitatively the same for all three resolutions. As for the violation of the gauge condition , it is well controlled in that it decreases with time and its amplitude is several orders of magnitude below the one of . Finally, as in the previous subsection, here too the PF quantities have the same level of accuracy as the gravitational ones, since they are determined algebraically by the latter.
Download figure:
Standard image High-resolution imageDownload figure:
Standard image High-resolution image5. Discussion
In this paper we have proposed a scheme which is able to evolve the FLRW solution stably under small random inhomogeneous perturbations. This does not mean that the more common 'free' schemes, that are currently used for cosmological simulations, are numerically unstable. Rather, these schemes simply cannot pass a FLRW robustness test because of the growing linear modes in the matter sector that are present already at the analytical level. However, we believe that being able to pass that test is valuable for trusting the simulations in the non-linear regime. This is especially true for cosmology, because the relativistic/non-linear effects one wishes to capture by considering NR simulations are indeed very small and could therefore easily be polluted by noise.
Now since our scheme must contain a PF field in order to 'de-constrain' itself, we should think about its possible interpretations. At a purely theoretical level, there are interesting subjects one can investigate about GR with a globally distributed perfect fluid, such as the backreaction of fluctuations on the evolution of averaged quantities for instance [26, 29, 31]. In the case of structure formation simulations, the shell-crossing phenomenon of cold dark matter can only be captured through an N-body description, so a natural choice would be to associate the PF field with baryons. Unfortunately, the complexity of baryonic physics is hardly captured by a PF approximation at scales below Mpc [60–63], so this depends on the scale or the degree of realism one wishes to reach.
Finally, one can also consider no PF field at all, that is, to avoid giving it a physical interpretation and keep its density intentionally close to zero (with the aforementioned numerical trick ). This then provides an elegant mechanism for enforcing constraint conservation on the physical components (gravity + extra matter). Indeed, starting with no 'fluid' , i.e. on the constraint surface, and considering an equation of state , any local constraint violating fluctuation will be diluted because of pressure, since small-amplitude radiation does not cluster. The tendency of the equations should thus be to hold the system around the constraint surface, but this remains to be explored numerically. Of particular interest would be the situation where one considers only an N-body sector as the physical matter content and adds the artificial PF to control the constraints.
Acknowledgments
We are very grateful to Julian Adamek, Eloisa Bentivegna, Ruth Durrer, Pierre Fleury, Martin Kunz, Luis Lehner, James Mertens, Joachim Stadel and the referees for useful discussions, comments, corrections and suggestions. This work has been supported by several grants of the Swiss National Science Foundation (for all authors), by the Tomalla foundation (for EM) and by a grant from the Swiss National Supercomputing Centre (CSCS) under project ID d55. The simulations have been performed on the Baobab cluster of the University of Geneva, on Piz Daint of the CSCS and on the Cambridge COSMOS SMP system (part of the STFC DiRAC HPC Facility supported by BIS NeI capital grant ST/J005673/1 and STFC grants ST/H008586/1, ST/K00333X/1). YD has been supported by the mobility grant of Heidelberg University, funded by the Excellence Initiative in Germany, and wishes to thank Heidelberg University and the Perimeter Institute for their hospitality during part of the production of this work.
Footnotes
- 6
At the analytical level, if these equations are statisfied for the initial data, then they are also satisfied at all times, i.e. they are compatible with the evolution equations, a property that is guaranteed by the structure of a gauge theory.
- 7
Barring gauge-theoretical constraints in the extra matter sector.