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.
CAMB - arbitrary power spectra
-
- Posts: 18
- Joined: August 08 2006
- Affiliation: IPMU, U. of Tokyo
-
- Posts: 1941
- Joined: September 23 2004
- Affiliation: University of Sussex
- Contact:
Re: CAMB - arbitrary power spectra
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.