saving newtonian potential in CAMB
-
- Posts: 24
- Joined: January 11 2019
- Affiliation: University of Michigan
saving newtonian potential in CAMB
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
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
-
- Posts: 1944
- Joined: September 23 2004
- Affiliation: University of Sussex
- Contact:
Re: saving newtonian potential in CAMB
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.
https://camb.readthedocs.io/en/latest/ScalEqs.html
for an example.
-
- Posts: 24
- Joined: January 11 2019
- Affiliation: University of Michigan
Re: saving newtonian potential in CAMB
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?Antony Lewis wrote: ↑May 02 2020You 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.
-
- Posts: 1944
- Joined: September 23 2004
- Affiliation: University of Sussex
- Contact:
Re: saving newtonian potential in CAMB
I don't recall off hand, but you can use the camb_fortran() function (see notebook) to get equivalent fortran for symbolic expressions.
-
- Posts: 24
- Joined: January 11 2019
- Affiliation: University of Michigan
Re: saving newtonian potential in CAMB
Thanks! looks like it is