CAMB - arbitrary power spectra

Use of Healpix, camb, CLASS, cosmomc, compilers, etc.
Post Reply
Brian Powell
Posts: 18
Joined: August 08 2006
Affiliation: IPMU, U. of Tokyo

CAMB - arbitrary power spectra

Post by Brian Powell » August 08 2006

Hello -

I am currently trying to modify CAMB to take in arbitrary power spectra, however, I am unsure of the best way to sample the k-space. A naive logarithmic sampling across the full range of k values causes CAMB to return incorrect CMB spectra. Also, given a prescription for k sampling, can one compute the dk vector by simply taking the difference between subsequent k values?
As I am very new to the software, any help would be greatly appreciated.

Antony Lewis
Posts: 1498
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: CAMB - arbitrary power spectra

Post by Antony Lewis » August 08 2006

You should only have to modify PowerTilt.f90 - as long as the values returned by your ScalarPower are fairly smooth as a function of k CAMB should not have any problem.

Post Reply