Page 1 of 1

Halofit_ppf

Posted: April 30 2018
by Nishanth Sasankan
Hi ,

I can make CAMB run with a tabulated (w,a) , by modifying equations_ppf according to some documentations. Is it necessary to modify Halofit_ppf before I run CAMB with the tabulated (w,a)? Or can I ignore it?

Thanks
Nishanth

Re: Halofit_ppf

Posted: May 01 2018
by Antony Lewis
The devel branch on github has a tidied up python interface to setting tabulated w, and will pass an effective w(0) to halofit (which is only approximate of course, but probably about as good as you can do without properly calibrating the non-linear model for your specific dark energy model).

e.g.

Code: Select all

    a=np.logspace(-4,0,5000)
    w=wde(a)
    pars = camb.CAMBparams()
    pars.set_cosmology(H0=67.5, ombh2=0.022, omch2=0.122)
    pars.set_dark_energy_w_a(a,w,dark_energy_model='ppf')
    results = camb.get_results(pars)