Page 1 of 1
saving newtonian potential in CAMB
Posted: May 01 2020
by Angela Chen
Hi all,
I wonder if there's an easy way to save the Newtonian potential for CAMB outputs? I know CAMB saves Weyl potential and Newtonian potential ~ Weyl potential but it's good to check after some extension model modifications.
Thanks,
Angela
Re: saving newtonian potential in CAMB
Posted: May 02 2020
by Antony Lewis
You can output any variable using the built-in symbolic interpretation, e.g. see round box 28 at
https://camb.readthedocs.io/en/latest/ScalEqs.html
for an example.
Re: saving newtonian potential in CAMB
Posted: May 02 2020
by Angela Chen
thanks Antony! But I need rather a way to save things in Fortran CAMB -- so an expression of newtonian potential in terms of the equation.f90 transfer variables would be very helpful. If I want to save k^2*Psi_N, is it k*sigma/adotoa+k*sigmadot?
Re: saving newtonian potential in CAMB
Posted: May 03 2020
by Antony Lewis
I don't recall off hand, but you can use the camb_fortran() function (see notebook) to get equivalent fortran for symbolic expressions.
Re: saving newtonian potential in CAMB
Posted: May 04 2020
by Angela Chen
Thanks! looks like it is