Dear all:
I'm looking for some hints to find the place where the values of k which are passed to the function TInitialPowerLaw_ScalarPower (module InitialPower.f90 in CAMB) are being given their respective values . My final goal is to modify the sample density at small values of k in order to increase the primordial power spectra resolution in that range.
Than you very much!
CAMB: Modify k sampling for Scalar Power Spectrum
-
- Posts: 5
- Joined: September 18 2019
- Affiliation: Facultad de Ciencias Astronómicas y Geofísicas - Universidad Nacional de La Plata
-
- Posts: 1944
- Joined: September 23 2004
- Affiliation: University of Sussex
- Contact:
Re: CAMB: Modify k sampling for Scalar Power Spectrum
To change the k sampling for power spectrum integration you can just increase params.Accuracy.IntkAccuracyBoost (e.g. from python). If you want to tinker, search for IntkAccuracyBoost in the Fortran for the relevant code to modify just the low-k spacing.
There's an example of using a custom power primordial spectrum in the example notebook at
https://camb.readthedocs.io/en/latest/CAMBdemo.html
(box 40+)
There's an example of using a custom power primordial spectrum in the example notebook at
https://camb.readthedocs.io/en/latest/CAMBdemo.html
(box 40+)
-
- Posts: 5
- Joined: September 18 2019
- Affiliation: Facultad de Ciencias Astronómicas y Geofísicas - Universidad Nacional de La Plata
Re: CAMB: Modify k sampling for Scalar Power Spectrum
Thank you very much Antony for your reply!
It's been very helpful!
It's been very helpful!