CosmoLattice Technical Note II: Gravitational Waves
Written on May 6, 2022 (Corrected on June 20, 2023)
Authors
- Jorge Baeza-Ballesteros* - Instituto de Física Corpuscular (IFIC), Consejo Superior de Investigaciones Científicas (CSIC) and Universitat de Valencia (UV), Valencia, Spain
- Daniel G. Figueroa† - Instituto de Física Corpuscular (IFIC), Consejo Superior de Investigaciones Científicas (CSIC) and Universitat de Valencia (UV), Valencia, Spain
- Nicolás Loayza‡ - Instituto de Física Corpuscular (IFIC), Consejo Superior de Investigaciones Científicas (CSIC) and Universitat de Valencia (UV), Valencia, Spain
- Adrien Florio§ - Center for Nuclear Theory, Department of Physics and Astronomy, Stony Brook University, New York 11794, USA
Contact: - * jorge.baeza@ific.uv.es - † daniel.figueroa@ific.uv.es - ‡ nicolas.loayza@ific.uv.es - § adrien.florio@stonybrook.edu
Abstract
This is a technical note about the dynamics of gravitational waves (GWs) in a lattice. We present lattice analogues of tensor metric perturbations representing GWs, a proper lattice definition of the energy density power spectrum of a stochastic GW background, and a discretized version of the equations of motion of GWs sourced by scalar fields in an expanding background. All these features are implemented in the GW module released as part of CosmoLattice v1.1, which is publicly available at http://www.cosmolattice.net. We recommend the reader to check out other technical notes available there as well.
Contents
- CosmoLattice Technical Note II: Gravitational Waves
- Authors
- Abstract
- Contents
- 1 Gravitational Waves in the Continuum
- 2 Gravitational Waves in the Lattice
- 3 Gravitational Waves in CosmoLattice
- 4 A Working Example: Inflationary Potential { #sec_AWorkingExampleInflationaryPotential }
- 5 Use of GW Module for Complex Scalar Fields
- Appendix A: Where do Gravitational Waves Live in the Lattice?
1 Gravitational Waves in the Continuum
We first review the definition of gravitational waves (GWs) and their energy density power spectrum in a spatially-flat Friedmann-Lemaître-Robertson-Walker (FLRW) metric. GWs are identified with perturbations \(h_{ij}\) of the background metric which are transverse and traceless, i.e.,
where \(t\) represents coordinate time and \(x^i\) are spatial coordinates, with Latin indices running from 1 to 3. Throughout the note, summation is assumed over repeated indices, unless otherwise stated. In a FLRW background, the dynamics of GWs are described by equations of motion of the form 1
where \(\dot{h}_{ij} = dh_{ij}/dt\), \(H = \dot{a}/a\) is the Hubble rate, \(m_p = 1/\sqrt{8\pi G} = 2.44 \times 10^{18}\) GeV is the reduced Planck mass and \(\Pi^{TT}_{ij}\) is the transverse-traceless (TT) part of the anisotropic tensor \(\Pi_{ij}\), which we define below. The TT conditions \(\partial_i \Pi^{TT}_{ij} = \Pi^{TT}_{ii} = 0\) hold \(\forall \mathbf{x}, t\). Obtaining the TT part of a tensor in coordinate space amounts to a non-local operation. It is more convenient to perform this determination in Fourier space, where a projector filtering out only the TT degrees of freedom of a tensor can be easily constructed. The GW source can be written as
where \(\Lambda_{ij,kl}\) is a projection operator defined as
where \(\mathbf{k} = (k_1, k_2, k_3)\) is the three-momentum and \(k = |\mathbf{k}|\). Thanks to the fact that \(P_{ij}\hat{k}_j = 0\) and \(P_{ij}P_{jm} = P_{im}\), one can easily see that the transverse-traceless conditions in Fourier space, \(k_i \Pi_{ij}(\mathbf{k}, t) = \Pi_{ii}(\mathbf{k}, t) = 0\), are satisfied at any time.
Coming back to the anisotropic stress tensor, \(\Pi^{\mu\nu}\), it describes the deviation of an energy-momentum tensor \(T^{\mu\nu}\) with respect to a perfect fluid. The spatial components read
with \(p\) the homogeneous background pressure and \(g_{ij} = a^2(t)(\delta_{ij} + h_{ij})\) the spatial-spatial part of the FLRW perturbed metric.
The energy density of a stochastic GW background (SGWB) is defined as 1
where \(\langle...\rangle_V\) denotes spatial average over a volume \(V\) assumed to encompass all relevant wavelengths of the perturbations \(h_{ij}\), and we have used the Fourier transformed convention explained in the CosmoLattice manual 2. We note that the approximate expression in Eq. (7) is only valid in the limit \(kV^{1/3} \gg 1\), where \(\int_V e^{-i\mathbf{x}(\mathbf{k}-\mathbf{k}')} \to (2\pi)^3 \delta^{(3)}(\mathbf{k}-\mathbf{k}')\). The energy density per logarithmic interval is then defined as
where \(d\Omega_k\) represents a solid angle measure in momentum space.
For stochastic sources the volume average can be replaced by an ensemble average \(\langle...\rangle\) over realizations of the stochastic background,
where we have defined the power spectrum of the tensor time derivative in the third line, assuming homogeneity and isotropy,
Comparing Eqs. (11) and (10) we can obtain the GW power spectrum,
The GW energy density power spectrum is typically normalized by the critical energy density, \(\rho_c \equiv 3H^2 m_p^2\), and expressed with the following notation
Studying the dynamics of GWs is a numerically expensive task, given that the TT projection is a non-local operation in position space. In Ref. 3 a workaround was proposed to overcome this problem: Noting that \(\Pi^{TT}_{ij}(\mathbf{k},t)\) is just a linear combination of the components of the full tensor \(\Pi_{ij}(\mathbf{k},t)\), and that the solution to Eq. (2) is linear in \(\Pi_{ij}\), one can write the TT tensor perturbations (i.e. GWs) as
where \(u_{ij}(\mathbf{k},t)\) is the Fourier transform of the solution to the following equation
where \(\Pi^{eff}_{ij}\) is an effective anisotropic tensor that contains the parts of \(\Pi_{ij}\) with non-vanishing TT projection. For real scalar fields 3
where \(\phi_a\) are real scalar fields and \(a = 1, 2, \ldots\).
Eq. (15) can be evolved in configuration space for as long as we want, and only when we desire to obtain the physical degrees of freedom (dof) \(h_{ij}\), we Fourier transform its solution, \(u_{ij}(\mathbf{x},t) \to u_{ij}(\mathbf{k},t)\), and apply the projector in Eq. (4) as in Eq. (14). The viability of the method relies on the following observation. To compute the GWs we could first project the TT part of the source \(\Pi_{ij}\), and then solve Eq. (2) directly for the physical tensor fields \(h_{ij}\). This would require however to do this operation at every time step, making the procedure numerically expensive, as obtaining \(\Pi^{TT}_{ij}\) in real space is a non-local operation. Instead, we can achieve the same result if we commute the operations such that, first we solve Eq. (15) for the unphysical fields \(u_{ij}\) for as long as we desire, and then we apply the TT projector to the solution only when we wish to obtain the physical dof \(h_{ij}\), as in Eq. (14). We can do this because the TT projection and the solution as a function of the source are linear operations in the reciprocal space, and hence they commute. See Ref. 3 for further details.
2 Gravitational Waves in the Lattice
Before considering the discretized version of GWs, we review some basic definitions regarding the lattice. The 3-dimensional space contains \(N^3\) sites in total, labelled by
This is defined such that any continuum function \(f(\mathbf{x})\) is represented in the lattice by a lattice function \(f(\mathbf{n})\), which has the same value as \(f(\mathbf{x})\) at \(\mathbf{x} = \mathbf{n}\,\delta x\). Here \(\delta x = L/N\) is the lattice spacing, \(L\) is the comoving size of the lattice, and both \(\mathbf{x}\) and \(\mathbf{n}\) refer to comoving spatial coordinates.
The reciprocal lattice representing Fourier modes is also a periodic and discretized 3-dimensional lattice. The Fourier modes live in the sites of the reciprocal lattice, which we label as
We define the Discrete Fourier Transform (DFT),
and distinguish between a function and its Fourier transform only by their arguments. Finally, note there is a minimum momentum in the reciprocal lattice, \(k_{IR} = 2\pi/L\), which defines an infrared cutoff scale for the lattice.
In a discretized space-time, the GW fields evolve according to a discretized version of Eq. (2). The energy density power spectrum of GWs is then computed with the discrete equivalent of Eq. (10),
where in the second line we have applied the DFT on the two \(h\)-fields, and used \(\sum_{\mathbf{n}} e^{i k_{IR}\delta x\, \mathbf{n}(\tilde{\mathbf{n}}-\tilde{\mathbf{n}}')} = N^3 \delta_{\tilde{\mathbf{n}}\tilde{\mathbf{n}}'}\). In the last line we have split the summation over spherical bins. In general, an arbitrary binning \(R(l) \equiv [l, l + \Delta\tilde{n})\) with \(l = 1, 2, \ldots\) labelling the bins, does not have bins of equal width, and can be simply specified through an \(l\)-dependent width \(\Delta\tilde{n}(l)\). The multiplicity \(\#_l\) of a given bin is the number of modes that fit inside the spherical shell defined by such bin. As explained in Technical Note I, the construction of the power spectrum depends on the different ways of counting the multiplicity of modes within each bin. For now we follow the approach from Ref. 4 and approximate the number of points in a given bin \(R(|\tilde{\mathbf{n}}|)\) as \(\#_{|\tilde{\mathbf{n}}|} \approx 4\pi|\tilde{\mathbf{n}}|^2\). This corresponds to a canonical binning with regular width \(\Delta k = k_{IR}\) around the radius \(k(|\tilde{\mathbf{n}}|) = k_{IR}|\tilde{\mathbf{n}}|\), i.e. \(R(|\tilde{\mathbf{n}}|) \equiv [|\tilde{\mathbf{n}}| - 1/2, |\tilde{\mathbf{n}}| + 1/2)\). Using this we then obtain
where \(\langle...\rangle_{R(|\tilde{\mathbf{n}}|)}\) denotes average over the spherical shell and \(\Delta\log k \equiv k_{IR}/k\). From here, we can define the GW energy density power spectrum in the lattice as
As mentioned before other prescriptions for the binning can be made. We discuss the different possibilities later on in Sec. 3.2 and 3.3, and more in detail in Technical Note I.
In order to obtain the GW power spectrum we need the Fourier transform of \(\dot{h}_{ij}(\mathbf{n},t)\) at each time we want to compute it. The procedure we follow is the one outlined at the end of Section 1: we evolve the field \(u_{ij}(\mathbf{n},t)\) according to Eq. (15), and relate them to \(h_{ij}(\mathbf{n},t)\) at any time through
where
being \(k_L(\tilde{\mathbf{n}})\) a lattice momentum, which we define below. Its definition is not unique in a lattice, as it depends on the way spatial derivatives are discretized. The lattice TT projector then ensures transversality only with respect to the chosen discretized derivatives. For instance, three basic choices of lattice derivatives are the following: the neutral derivative centered in a lattice site
and the forward/backward derivatives
Here \(\hat{i}\) refers to a vector of length \(\delta x\) in the \(i\) spatial direction. The lattice momentum \(k_L\) is then defined by computing the Fourier transform of these derivatives acting on an arbitrary function,
The components of the lattice momenta for the derivatives defined in Eqs. (25) and (26) are, respectively,
As can be seen, the lattice momenta can be either real or complex, depending on the choice of lattice derivative. This extends to the TT projector. In the neutral case we define a real one,
while it is complex for \(k^\pm_L\),
The complex projectors obey the following properties
the most relevant of which are the idempotence of the projector (property 7) and its hermiticity (property 5). The real projector like \(P^0_{ij}\) obeys a similar set of properties, except for the fact that it is symmetric instead of hermitian. A proof of these properties can be found in Ref. 4.
In light of Eq. (22), we are interested in the bilinear product \(\dot{h}_{ij}(\tilde{\mathbf{n}})\dot{h}^*_{ij}(\tilde{\mathbf{n}})\). In terms of the \(u\)-fields, see Eqs. (23) and (24), it can be written as a linear combination of two traces
where \(\dot{u}\) and \(P\) are matrices with elements \((\dot{u})_{ij} = \dot{u}_{ij}\) and \((P)_{ij} = P_{ij}\). Eq. (35) is valid for both real and complex valued projectors. In CosmoLattice, it is explicitly implemented in the following way: first, we define the matrix products \(v_{ij} \equiv P_{ik}\dot{u}_{kj}\) and \(\tilde{v}_{ij} \equiv P_{ik}\dot{u}^*_{kj}\), and then the trace values are determined from
In the real case, these computations can be shortened since \(\tilde{v} = v^*\).
3 Gravitational Waves in CosmoLattice
3.1 Equation of Motion
In order to numerically study the dynamics of the fields, we work with dimensionless quantities, also known as program variables. In CosmoLattice these are defined from the physical quantities as
where \(\phi_a\) refers to a scalar field, and \(\alpha, f_*\), and \(\omega_*\) are constants. The last two have dimensions of energy, whereas \(\alpha\) is dimensionless. Their particular value should be chosen based on the matter model which is being simulated, see Ref. 5 for a detailed discussion about this. We denote the time derivative with respect to program time by \(' = d/d\tilde{\eta}\) and the gradient \(\tilde{\nabla}_i = d/d\tilde{x}^i\). Note we have also redefined the \(u\) fields, even if they were already dimensionless.
Numerically, \(\tilde{u}\)-fields are evolved by defining a conjugate momenta, \((\pi_{\tilde{u}})_{ij} = a^{3-\alpha}\tilde{u}'_{ij}\), which allows to rewrite Eq. (15) as a system of first order differential equations
For real scalar fields \(\tilde{\Pi}^{eff}_{ij} = \tilde{\partial}_i\tilde{\phi}_a\tilde{\partial}_j\tilde{\phi}_a\), \(a = 1, 2, \ldots\)
Eqs. (40) can then be solved using finite difference methods, see Ref. 2 for a description of the different available algorithms available in CosmoLattice. The energy density power spectrum is computed with Eqs. (22) and (35), by relating the physical time derivative of the \(h\)-fields to the program conjugate momenta,
There are several different ways in which the power spectrum may be calculated, depending on how the number of points per bin \(\#_l\) is estimated and on the assignment of a momentum \(k\) to each bin. Different possibilities are discussed in detail in Technical Note I. Here we summarize how each one of them is applied to compute the GW energy density power spectrum. In the following subsections we enumerate all the different types and versions implemented in CosmoLattice to compute the GW energy density power spectrum.
3.2 GW Power Spectrum: Type I
Power spectrum Type I is based on taking the exact number of modes inside a bin \(\#_l\). For a general binning \(R(l)\) labeled by \(l = 1, 2, \ldots, l_{max}\) and width \(\Delta\tilde{n}(l)\), the average of a scalar field is defined according to
where we have defined an angular average as \(\langle |f(\tilde{\mathbf{n}})|^2\rangle_{R(l)} = \frac{1}{\#_l}\sum_{\tilde{\mathbf{n}}\in R(l)} |f(\tilde{\mathbf{n}})|^2\). We now introduce different versions of the GW energy density power spectrum normalized by the critical energy density, as follows:
3.2.1 Type I - Version 1
The GW energy density power spectrum normalized by the critical energy density for Type I - Version 1 is
where \(k(l) = k_{IR}\, l\). In program variables this is expressed as
3.2.2 Type I - Version 2
The GW energy density power spectrum normalized by the critical energy density for Type I - Version 2 is
where \(\langle k(\tilde{\mathbf{n}})\rangle_l \equiv \frac{k_{IR}}{\#_l}\sum_{\tilde{\mathbf{n}}\in R(l)} |\tilde{\mathbf{n}}|\). In program variables this is expressed as
3.2.3 Type I - Version 3
The GW energy density power spectrum normalized by the critical energy density for Type I - Version 3 is
and is expressed in program variables as
3.3 GW Power Spectrum: Type II
The Power Spectrum Type II relies on estimating the number of modes in each bin of radius \(|\tilde{\mathbf{n}}|\) as \(\#_{|\tilde{\mathbf{n}}|} \approx 4\pi|\tilde{\mathbf{n}}|^2\). The average over each spherical shell is approximated as
3.3.1 Type II - Version 1
The GW energy density power spectrum normalized by the critical energy density for Type II - Version 1 is
and is expressed in program variables as
3.3.2 Type II - Version 2
The GW energy density power spectrum normalized by the critical energy density for Type II - Version 2 is
and is expressed in program variables as
3.3.3 Type II - Version 3
The GW energy density power spectrum normalized by the critical energy density for Type II - Version 3 is
and is expressed in program variables as
4 A Working Example: Inflationary Potential
Here we present an example of gravitational wave production due to the self-resonance of an inflaton with monomial potential \(V(\phi) = \frac{1}{4}\lambda\phi^4\). The self-resonance of \(\phi\) produces a series of peaks in its power spectrum, which will then be imprinted as well in the GW power spectrum. Whereas the model file does not need to be modified (i.e. the model file remains the same as in the absence of GWs), to tell CosmoLattice that we want to run the field dynamics including GW production, we simply need to indicate this in the parameter file. Below we present an example of the parameter file to study GW production in the mentioned example model.
src/models/parameter-files/lph4.in:
#Output
outputfile = ./
#Evolution
expansion = true
evolver = LF
#Lattice
N = 256
dt = 0.05
kIR = 0.2
#Times
tOutputFreq = 5
tOutputInfreq = 5
tMax = 2000
baseSeed = 1234
#Power spectrum options
PS_type = 1
PS_version = 1
#GWs
GWprojectorType = 1
withGWs=true
#IC
kCutOff = 4
initial_amplitudes = 5.6964e18 # homogeneous amplitudes in GeV
initial_momenta = -4.86735e30 # homogeneous amplitudes in GeV2
#Model Parameters
lambda = 9e-14
The parameters that control the GW module are:
withGWs: Boolean parameter to turn On or Off the GW evolution.GWprojectorType: Numerical parameter that allows to choose between different GW projectors \(P_{ij}\) according to the choice of lattice momentum \(k_L\), see Eqs. (28) and (29).GWprojectorType = 1: implies choosing \(k_L = k^0_L\)GWprojectorType = 2: implies choosing \(k_L = k^-_L\)GWprojectorType = 3: implies choosing \(k_L = k^+_L\)
default option is GWprojectorType = 2.
The output related to GW production is presented in the following generated files:
spectra_gws.txt: This file contains the normalized GW energy density power spectrum. For the default choice ofspectraVerbositythis file prints:
Extra columns are printed for different choices of the spectraVerbosity, see Technical Note I for a complete explanation on the spectra output.
energy_gws.txt: This file contains the total energy density in GWs, computed from numerically integrating the PS as in Eq. (21). It prints:
Warning
Important Note: While the GW energy density spectrum at the time of production \(\Omega_{GW}\) is typically normalized in an expanding universe by the critical energy density \(\tilde{\rho}_c\), in CosmoLattice we rather normalize it by the total energy density of the matter field sector \(\tilde{\rho}_{tot}\) (let it be composed of scalar fields only, or scalar and gauge fields), independently of whether we simulate the dynamics in an expanding background or in Minkowski. In the case of self-consistent expansion \(\tilde{\rho}_{tot} = \tilde{\rho}_c\), and hence we recover the standard definition. However, for a fixed-background expansion, if the user wishes to obtain the spectrum normalized to the critical energy density, they should multiply the CosmoLattice output (second column of spectra_gws.txt) by the ratio \(\tilde{\rho}_{tot}/\tilde{\rho}_c\).
4.1 GW Energy Density Power Spectra Examples
The model \(\lambda\phi^4\) excites a series of peaks in the GW energy density power spectrum due to self resonance. The program variables as defined in Eq. (39) for this particular model are
where \(\phi_*\) is the initial amplitude of the field. We performed several simulations with the same initial conditions for all the different types and versions of the power spectrum, and all three variants of the GW projectors. Each spectrum is measured up to time \(\tilde{\eta} = 2000\) every \(\Delta\tilde{\eta} = 25\) time units. In the top panels of Fig. 1 we show the difference in the spectra depending on the type of power spectrum, with fixed GW projector type and PS version. As expected, Type I captures better the UV tail of spectra, as it takes into account the exact multiplicity of modes in the outer shells of the binning, in contrast to the approximated multiplicity of Type II. For a complete explanation of the difference between power spectrum types see Technical Note I. In the bottom panels, we show the difference in the spectra depending on the GW projector for a fixed PS type and version. The spectra are almost identical besides small differences in the UV tails. This agrees with the results of Ref. 4. Finally, we checked the transversality and tracelessness conditions of the \(h_{ij}(\mathbf{n},t)\) in the lattice. For this we compute the average of the following dimensionless ratios:
where \(\nabla^L\) are the different discretized spatial derivatives defined in Eqs. (25) and (26), and \(D^L_i\) are defined as follows
In Fig. 2 we see that both transversality and tracelessness are satisfied to machine precision. The jump in the curve just before \(\tilde{\eta} \sim 1000\) corresponds to the backreaction of the inflaton onto itself.
5 Use of GW Module for Complex Scalar Fields
In the previous example and all along the note, we have only considered real scalar fields as sources for the GWs. However, CosmoLattice is also prepared to simulate the GW production of models containing complex scalar fields in the absence of gauge fields, just by setting withGWs = true as before in the parameter file. For any complex field, defined as \(\varphi = (\phi_1 + i\phi_2)/\sqrt{2}\), the contribution to the anisotropic stress tensor is computed as
For U(1) Abelian gauge theories (including charged complex scalar fields and Abelian gauge bosons), see Technical Note III.
Appendix A: Where do Gravitational Waves Live in the Lattice?
In order to compute the power spectrum of gravitational waves in the lattice, we have to address the question of where the GWs (or the \(u_{ij}\) fields) live in the lattice. Looking at Eq. (15), the \(u_{ij}\) fields live where the source lives. If scalar fields live at lattice sites then the product \(\partial_i\phi\partial_j\phi\) lives at the middle of the plaquettes
and so we choose to define the \(u_{ij}\) fields to live in those same positions
If we wish to ascribe the product \(u_{ij}u_{ij}\) to live at the lattice sites \(\mathbf{n}\), we can obtain this by computing the clover averaging over neighboring plaquettes
We now consider the following summation over all lattice sites, \(\sum_{\mathbf{n}} \langle\dot{u}_{ij}\dot{u}_{ij}(\mathbf{n})\rangle_{clov}\). We can show that this sum is equal up to an error \(O(\delta x^2)\) to the sum over the product \(\dot{u}_{ij}\dot{u}_{ij}\) as if we considered that \(u_{ij}\) live on the lattice sites \(\mathbf{n}\), instead of in the middle of the plaquettes. We Taylor expand each of the terms of Eq. (66) around \(\mathbf{n}\) such that the sum becomes
it turns out that all linear terms cancel out with each other and hence we obtain
We can safely choose that our \(u_{ij}\) fields, and therefore \(h_{ij}\), live at lattice sites \(\mathbf{n}\) instead of in the center of the plaquettes.
-
Chiara Caprini and Daniel G. Figueroa. Cosmological backgrounds of gravitational waves. Class. Quant. Grav., 35(16):163001, 2018. doi:10.1088/1361-6382/aac608. ↩↩
-
Daniel G. Figueroa, Adrien Florio, Francisco Torrenti, and Wessel Valkenburg. Cosmolattice: a modern code for lattice simulations of scalar and gauge field dynamics in an expanding universe. Comput. Phys. Commun., 283:108586, 2023. doi:10.1016/j.cpc.2022.108586. ↩↩
-
Juan Garcia-Bellido, Daniel G. Figueroa, and Alfonso Sastre. A gravitational wave background from reheating after hybrid inflation. Phys. Rev. D, 77:043517, 2008. doi:10.1103/PhysRevD.77.043517. ↩↩↩
-
Daniel G. Figueroa, Juan Garcia-Bellido, and Arttu Rajantie. On the transverse-traceless projection in lattice simulations of gravitational wave production. JCAP, 11:015, 2011. doi:10.1088/1475-7516/2011/11/015. ↩↩↩
-
Daniel G. Figueroa, Adrien Florio, Francisco Torrenti, and Wessel Valkenburg. The art of simulating the early universe – part i. JCAP, 04:035, 2021. doi:10.1088/1475-7516/2021/04/035. ↩