-
Notifications
You must be signed in to change notification settings - Fork 12
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
Computation power spectra with folding #218
Comments
At the very least the units seem wrong as-is but correct with the proposed change... I'd be happy to write a patch but I'm a little bit out of my depth on the theory here. @JBorrow if you can confirm that this is a bug as reported, I can probably fix it. |
Why is this bad? Do you not want x_i' to be dimensionless bounded between 0 and 1? Perhaps the re-use of the variable is not ideal :) |
I think the re-use of the same variable indeed is the thing that confused me. I think the current version of
whereas the input in
i.e. both box size and positions are not rescaled to [0,1]. I don't think it is an issue as both are not rescaled, but maybe change the description of the parameters in |
Hi,
The way the power spectra with folding are computed currently is by changing the positions of particles according to
with

fold = 2.0^folding
, i.e. (from swiftsimio readthedocs)Should this not be
x_pos = (x_pos % box_over_fold_x) * fold
?For example, without folding (folding = 0 and fold =1) the positions are now converted to
x_pos = (x_pos % (Lbox/1) ) * 1 / Lbox = x_pos / Lbox
The text was updated successfully, but these errors were encountered: