Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add comoving volume element calculation to the background module #408

Closed
tmcclintock opened this issue Jul 11, 2018 · 6 comments · Fixed by #1149 · May be fixed by #1066
Closed

Add comoving volume element calculation to the background module #408

tmcclintock opened this issue Jul 11, 2018 · 6 comments · Fixed by #1149 · May be fixed by #1066

Comments

@tmcclintock
Copy link
Contributor

tmcclintock commented Jul 11, 2018

An essential quantity to calculate is the comoving volume element, dV/dOmega dz, or the comoving volume per unit redshift and solid angle. This can be accomplished by combining splines already present in CCL. For reference, see eq. 28 of this paper by David Hogg.

The equation to be implemented is
codecogseqn

This issue is very easy, and could serve as a good hack day project at CMU.

@c-d-leonard
Copy link
Collaborator

@tmcclintock I'm guessing you'd still like to see this?

@nikosarcevic
Copy link
Contributor

Hi @nikfilippas ,

if you want, feel free to use the code for the coming volume that was coded by me, Marco Bonici and Matthijs van der Wild.
I also have a similar code in my own pipeline (a DESC Project).

Here is the link to the coming volume function in our code for CosmOracle https://github.com/nikosarcevic/CosmOracle/blob/main/background.py

Let me know if you need help with implementing it.

@nikfilippas
Copy link
Contributor

Hey Niko! I have already implemented it in a Python-only version of CCL which I'll submit for review in a few weeks (hopefully), after some of the other stuff gets pushed to the main branch. It is here, but for now it only lives in my own repo. It isn't a much requested feature and that's why I have refrained from opening a separate PR just for this, so that the PR list isn't cluttered.
Having a quick look I think our implementations are equivalent, right?

@nikosarcevic
Copy link
Contributor

Hey Niko! I have already implemented it in a Python-only version of CCL which I'll submit for review in a few weeks (hopefully), after some of the other stuff gets pushed to the main branch. It is here, but for now it only lives in my own repo. It isn't a much requested feature and that's why I have refrained from opening a separate PR just for this, so that the PR list isn't cluttered.
Having a quick look I think our implementations are equivalent, right?

I see! the only thing I would point out which is important is the omega_k part -- there is a good discussion around omega_k and David Hogg got good comments about it from Phillip Helbig back in the day. so we included that special case so have a look at our code, https://github.com/nikosarcevic/CosmOracle/blob/7dfdc63a127b7282dbbfa19db7b97789a611faca/background.py#L136

@nikfilippas
Copy link
Contributor

nikfilippas commented Feb 21, 2023

Brief follow-up after discussion in private: CCL defines Cosmology objects given Ω_k, and then calculates Ω_Λ, while CosmOracle calculates Ω_k from a given Ω_Λ. Which essentially means that CCL doesn't suffer from this truncation problem.

@nikosarcevic
Copy link
Contributor

indeed. thanks for making sure we clarified it here :)

@nikfilippas nikfilippas linked a pull request Apr 3, 2023 that will close this issue
30 tasks
@nikfilippas nikfilippas linked a pull request Apr 13, 2023 that will close this issue
@nikfilippas nikfilippas removed a link to a pull request Apr 13, 2023
30 tasks
This was referenced Dec 20, 2023
@hsinfan1996 hsinfan1996 linked a pull request Dec 21, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants