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

How to compute the unnormalized density field? #691

Open
WangYun1995 opened this issue Oct 8, 2024 · 1 comment
Open

How to compute the unnormalized density field? #691

WangYun1995 opened this issue Oct 8, 2024 · 1 comment

Comments

@WangYun1995
Copy link

We know that to_mesh can be used to construct the normalized density field (1+delta). I want to know how I can get the unnormalized density field 'rho_(mean) * (1+delta)' ?

@qezlou
Copy link
Collaborator

qezlou commented Nov 13, 2024

The mean density is just total number of particles / Volume, so something like (1+delta) * cat.csize / cat.attrs['boxsize'] would do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants