DifferentiableUniverseInitiative / DifferentiableUniverseInitiative/flowpm

Additional validation test for ray-tracing implementation

Open
#85 5 comments 0 reactions 1 assignee Claimed by @EiffL View on GitHub
Dominant language
Jupyter Notebook
Stars
93
Forks
20
PR merge metrics
No merged PRs in 30d

Description

We implemented a new test to validate our raytracing implementation.
Instead of running the N-body simulation, the snapshots at different scale factors are generated by using the same [linear power spectrum ](https://github.com/DifferentiableUniverseInitiative/flowpm/blob/9145d0c846d886f2cb34955f2267aa8cc9da31da/flowpm/tfpm.py#L159) at the scale factor a=0.5229969 (with the order set to 1).
The following image shows a comparison between the Jax-cosmo linear power spectrum (dashed line) and the [3D Power spectrum](https://github.com/LSSTDESC/DifferentiableHOS/blob/2511febab6c4c099bbc1e3937fc876bde47e2f8d/DifferentiableHOS/pk.py#L39) computed for each snapshot :

Schermata 2021-06-25 alle 11 44 01
Then, we exported the lens planes, created the Convergence map and computed the angular power spectrum from it.
The final angular power spectrum is obtained averaging over 20 samples.
We also tried to investigate the behaviour of the angular power spectrum for large scale for different values of the field and Box size.

In particular we adopted the following setting:

1. Number of lens = 22 (or 11 for Boxsize =200 Mpc^3)
2. Simulated Volume = 100 Mpc^3 (or 200 Mpc^3 for Number of lens = 11 )
3. nc = 128
4. field size = 5x5 deg^2 or (10x10 deg^2)
5. Convergence map resolution = 512 (or 1024 for 10x10 deg^2)
6. Lensplane resolution: 256

The specific setting can be found [here](https://github.com/DifferentiableUniverseInitiative/flowpm/blob/0a0150629ff99c736e96182d2d50afee6c95df92/notebooks/dev/Large_scale_inv.ipynb)
To follow, the result of 4 setting combinations compared to the Jax-cosmo linear power spectrum.

![lti_ini_nocut](https://user-images.githubusercontent.com/72620117/123428327-f9bb3000-d5c5-11eb-8524-908664da86f3.png)

The two vertical lines indicate the scale l=300 and l=3000.
![lti_ini_cut (3)](https://user-images.githubusercontent.com/72620117/123428605-49016080-d5c6-11eb-8079-b9ed41b5f6df.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.