Cosmological N-body Simulations

31
Cosmological N-body Simulations Julian Adamek The IFT School on Cosmology Tools Madrid, 16/03/2017

Transcript of Cosmological N-body Simulations

Page 1: Cosmological N-body Simulations

Cosmological N-body Simulations

Julian Adamek

The IFT School on Cosmology Tools

Madrid, 16/03/2017

Page 2: Cosmological N-body Simulations

Beyond the Linear Frontier

At late time (t & 1 Gyr) and on ā€œnot too largeā€ scales (r . 100Mpc) the Universe is clumpy. A linear treatment is insufficient.

This so-called large-scale structure (LSS) contains a hugeamount of information that we want to harness with the nextgeneration of telescopic surveys.

Julian Adamek IFT School on Cosmology Tools 2017 1 / 16

Page 3: Cosmological N-body Simulations

Beyond the Linear Frontier

At late time (t & 1 Gyr) and on ā€œnot too largeā€ scales (r . 100Mpc) the Universe is clumpy. A linear treatment is insufficient.

This so-called large-scale structure (LSS) contains a hugeamount of information that we want to harness with the nextgeneration of telescopic surveys.

Things we may be interested in:

ā€¢ Non-linear power spectra / correlation functions

ā€¢ Structure and evolution of dark matter halos

ā€¢ Local and integrated projection effects (Doppler RSD,gravitational lensing . . . )

Julian Adamek IFT School on Cosmology Tools 2017 1 / 16

Page 4: Cosmological N-body Simulations

N-body Challenges

Cosmological N-body Simulation = full simulation of thenon-linear (gravitational) evolution of a N-body system

Challenges:

ā€¢ Computationally expensive ā†’ parallelization

ā€¢ Too much information ā†’ data reduction

ā€¢ Competition between finite volume and finite resolution

ā€¢ Validation of results ā†’ convergence studies, codecomparison. . .

ā€¢ Systematics due to unmodelled astrophysics

Julian Adamek IFT School on Cosmology Tools 2017 2 / 16

Page 5: Cosmological N-body Simulations

Choose the Right Tool

gevolution Gadget-2 RAMSESparadigm particle-mesh tree / tree-PM particle-meshresolution fixed adaptive (tree) adaptive (AMR)

hydro no SPH Cartesian FVMgravity metric (GR) Newtonian F Newtonian Ļˆ

neutrinos yes (no) nolanguage C++ ANSI C Fortran 90

release date 2016 2005 2008

There are many more N-body codes on the market (Enzo,pkdgrav, CubePM. . . )

Julian Adamek IFT School on Cosmology Tools 2017 3 / 16

Page 6: Cosmological N-body Simulations

Particle-Mesh (PM) Scheme

Julian Adamek IFT School on Cosmology Tools 2017 4 / 16

Page 7: Cosmological N-body Simulations

Particle-Mesh (PM) Scheme

Julian Adamek IFT School on Cosmology Tools 2017 4 / 16

Page 8: Cosmological N-body Simulations

Particle-Mesh (PM) Scheme

Julian Adamek IFT School on Cosmology Tools 2017 4 / 16

Page 9: Cosmological N-body Simulations

Particle-Mesh (PM) Scheme

Julian Adamek IFT School on Cosmology Tools 2017 4 / 16

Page 10: Cosmological N-body Simulations

Particle-Mesh (PM) Scheme

Julian Adamek IFT School on Cosmology Tools 2017 4 / 16

Page 11: Cosmological N-body Simulations

Adaptive Mesh Refinement (AMR)

Idea: by subdividing cells, increaseresolution of PM grid in ā€œinterestingā€regions

ā€¢ choose refinement criterion(e.g. density threshold)

ā€¢ work out boundary conditionsat coarse/fine transition

ā€¢ implement appropriatenumerical solvers (no FFT!)

ā€¢ worry about load balance! credit: R. Teyssier

Julian Adamek IFT School on Cosmology Tools 2017 5 / 16

Page 12: Cosmological N-body Simulations

Tree Algorithm

Idea: speed up computation of two-body forces by ā€œlumping togetherā€clouds of particles

ā€¢ choose ā€œtree opening angleā€

ā€¢ still needs ā€œsoftening lengthā€

ā€¢ worry about load balance!

credit: University of Texas / Austin

Julian Adamek IFT School on Cosmology Tools 2017 6 / 16

Page 13: Cosmological N-body Simulations

Initial DataSimulations are initialized at early time (typically redshift50ā€“100) where perturbation theory is still valid

ā€¢ initial fluctuation amplitudes can be computed with aBoltzmann code (e.g. CAMB or CLASS)

Julian Adamek IFT School on Cosmology Tools 2017 7 / 16

Page 14: Cosmological N-body Simulations

Initial DataSimulations are initialized at early time (typically redshift50ā€“100) where perturbation theory is still valid

ā€¢ initial fluctuation amplitudes can be computed with aBoltzmann code (e.g. CAMB or CLASS)

Procedure:ā€¢ set up homogeneous particle ensembleā€¢ generate random realization of the perturbation field in

Fourier spaceā€¢ Fourier transform to obtain displacementā€¢ displace particles

Julian Adamek IFT School on Cosmology Tools 2017 7 / 16

Page 15: Cosmological N-body Simulations

Initial DataSimulations are initialized at early time (typically redshift50ā€“100) where perturbation theory is still valid

ā€¢ initial fluctuation amplitudes can be computed with aBoltzmann code (e.g. CAMB or CLASS)

Procedure:ā€¢ set up homogeneous particle ensembleā€¢ generate random realization of the perturbation field in

Fourier spaceā€¢ Fourier transform to obtain displacementā€¢ displace particles

Radiation is usually ignored (often even in the background!)ā€¢ compute linear transfer function at redshift z=0 and scale

back using the appropriate growth functionā€¢ can use Newtonian 2LPTJulian Adamek IFT School on Cosmology Tools 2017 7 / 16

Page 16: Cosmological N-body Simulations

Post-processing: Power Spectra

PĪ“ cdm

+b(k)[M

pc3/h3]

PĪ“ Ī½(k)[M

pc3/h3]

gevolutionCLASS

z = 63z = 31z = 15z = 7z = 3z = 1z = 0

100

100

10

10

1

1

1

1

1

1

0.1

0.1

0.1

0.1

0.1

0.1

0.01

0.01

0.01

0.01

0.01

0.01

0.001

0.001

āˆ‘mĪ½ = 0 meV

āˆ‘mĪ½ = 200 meV

āˆ‘mĪ½ = 200 meV

āˆ‘mĪ½ = 200 meV

mĪ½ = 60 meV mĪ½ = 80 meV

Julian Adamek IFT School on Cosmology Tools 2017 8 / 16

Page 17: Cosmological N-body Simulations

Post-processing: Halo Finder

Break down particle ensembleinto halos using halo finder algo-rithm

ā€¢ friends-of-friends

ā€¢ spherical overdensity

Halo catalog = huge data reduc-tion

ā€¢ halo distribution (e.g.two-point statistics)

ā€¢ individual halo properties(e.g. density profiles)

Julian Adamek IFT School on Cosmology Tools 2017 9 / 16

Page 18: Cosmological N-body Simulations

Post-processing: Halo Finder

Break down particle ensembleinto halos using halo finder algo-rithm

ā€¢ friends-of-friends

ā€¢ spherical overdensity

Halo catalog = huge data reduc-tion

ā€¢ halo distribution (e.g.two-point statistics)

ā€¢ individual halo properties(e.g. density profiles)

Julian Adamek IFT School on Cosmology Tools 2017 9 / 16

Page 19: Cosmological N-body Simulations

Post-processing: Ray Tracing

Write output in form of a lightcone (as opposed to equal-timesnapshot) ā†’ one can constructobservables using ray tracing

Julian Adamek IFT School on Cosmology Tools 2017 10 / 16

Page 20: Cosmological N-body Simulations

A Brief Overview of gevolution

spin-1 metric perturbationwith gevolution

gevolution, a general relativistic N-body code

ā€¢ based on weak-field expansion (inPoisson gauge)

ā€¢ for any given T ĀµĪ½ computes the six

metric d.o.f. (Ī¦, ĪØ, Bi, hij)

ā€¢ N-body particle ensemble evolved usingrelativistic geodesic equation

Julian Adamek IFT School on Cosmology Tools 2017 11 / 16

Page 21: Cosmological N-body Simulations

A Brief Overview of gevolution

spin-1 metric perturbationwith gevolution

gevolution, a general relativistic N-body code

ā€¢ based on weak-field expansion (inPoisson gauge)

ā€¢ for any given T ĀµĪ½ computes the six

metric d.o.f. (Ī¦, ĪØ, Bi, hij)

ā€¢ N-body particle ensemble evolved usingrelativistic geodesic equation

Models beyond Ī›CDM may have relativistic sources ofstress-energy perturbations

ā€¢ Newtonian limit not always a good approximation

Julian Adamek IFT School on Cosmology Tools 2017 11 / 16

Page 22: Cosmological N-body Simulations

A Brief Overview of gevolution

spin-1 metric perturbationwith gevolution

gevolution, a general relativistic N-body code

ā€¢ based on weak-field expansion (inPoisson gauge)

ā€¢ for any given T ĀµĪ½ computes the six

metric d.o.f. (Ī¦, ĪØ, Bi, hij)

ā€¢ N-body particle ensemble evolved usingrelativistic geodesic equation

Models beyond Ī›CDM may have relativistic sources ofstress-energy perturbations

ā€¢ Newtonian limit not always a good approximation

Increasing data quality imposes new challenge to take intoaccount relativistic effects (e.g. in modelling RSD, WL. . . )

ā€¢ perturbations of spacetime geometry are signal, not noise!

Julian Adamek IFT School on Cosmology Tools 2017 11 / 16

Page 23: Cosmological N-body Simulations

A Brief Overview of gevolution

spin-1 metric perturbationwith gevolution

gevolution, a general relativistic N-body code

ā€¢ based on weak-field expansion (inPoisson gauge)

ā€¢ for any given T ĀµĪ½ computes the six

metric d.o.f. (Ī¦, ĪØ, Bi, hij)

ā€¢ N-body particle ensemble evolved usingrelativistic geodesic equation

Models beyond Ī›CDM may have relativistic sources ofstress-energy perturbations

ā€¢ Newtonian limit not always a good approximation

Increasing data quality imposes new challenge to take intoaccount relativistic effects (e.g. in modelling RSD, WL. . . )

ā€¢ perturbations of spacetime geometry are signal, not noise!

https://github.com/gevolution-code/gevolution-1.1.git

Julian Adamek IFT School on Cosmology Tools 2017 11 / 16

Page 24: Cosmological N-body Simulations

Strategy

ā€¢ choose ansatz for the metric (perturbed FLRW)

ds2=a2(Ļ„)[

āˆ’e2ĪØdĻ„2+ eāˆ’2Ī¦Ī“ijdxidxj+ hijdx

idxjāˆ’ 2BidxidĻ„

]

Julian Adamek IFT School on Cosmology Tools 2017 12 / 16

Page 25: Cosmological N-body Simulations

Strategy

ā€¢ choose ansatz for the metric (perturbed FLRW)

ds2=a2(Ļ„)[

āˆ’e2ĪØdĻ„2+ eāˆ’2Ī¦Ī“ijdxidxj+ hijdx

idxjāˆ’ 2BidxidĻ„

]

ā€¢ metric components are evolved with Einsteinā€™s equations

GĀµĪ½ = 8Ļ€GT Āµ

Ī½

Julian Adamek IFT School on Cosmology Tools 2017 12 / 16

Page 26: Cosmological N-body Simulations

Strategy

ā€¢ choose ansatz for the metric (perturbed FLRW)

ds2=a2(Ļ„)[

āˆ’e2ĪØdĻ„2+ eāˆ’2Ī¦Ī“ijdxidxj+ hijdx

idxjāˆ’ 2BidxidĻ„

]

ā€¢ metric components are evolved with Einsteinā€™s equations

GĀµĪ½ = 8Ļ€GT Āµ

Ī½

ā€¢ stress-energy tensor is determined by solving the EOMā€™s ofall sources of stress-energy

TĀµĪ½m =

āˆ‘

nm(n)

Ī“(3)(xāˆ’x(n))āˆš

āˆ’g

(

āˆ’gĪ±Ī²dxĪ±

(n)

dĻ„

dxĪ²

(n)

dĻ„

)

āˆ’12 dxĀµ

(n)

dĻ„

dxĪ½(n)

dĻ„

Julian Adamek IFT School on Cosmology Tools 2017 12 / 16

Page 27: Cosmological N-body Simulations

Design Principles

We use the LATField2 libraryas data handling / parallelizationback end.

ā€¢ metric field represented ona regular lattice

ā€¢ Fourier analysis possible(LATfield2 provides FFT)

dim=0

dim=1

dim=2

Julian Adamek IFT School on Cosmology Tools 2017 13 / 16

Page 28: Cosmological N-body Simulations

Design Principles

We use the LATField2 libraryas data handling / parallelizationback end.

ā€¢ metric field represented ona regular lattice

ā€¢ Fourier analysis possible(LATfield2 provides FFT)

dim=0

dim=1

dim=2

The front end / user interface borrows a lot from CLASS

ā€¢ code can be directly interfaced with CLASS!

ā€¢ use unified notation!

Julian Adamek IFT School on Cosmology Tools 2017 13 / 16

Page 29: Cosmological N-body Simulations
Page 30: Cosmological N-body Simulations
Page 31: Cosmological N-body Simulations

k [h/Mpc] k [h/Mpc] k [h/Mpc]

āˆ†(k)

Ī¦

Ī¦-ĪØ

hij

B

z = 3 z = 1 z = 0

10

10

10

10

10

10

10

10

1 1 10.1 0.1 0.10.01 0.01 0.01

-10

-12

-14

-16

-18

-20

-22

-24