We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
The way the power spectra with folding are computed currently is by changing the positions of particles according to
box_over_fold_x = box_x / fold inv_box_over_fold_x = 1.0 / box_over_fold_x x_pos = (x_pos % box_over_fold_x) * inv_box_over_fold_x
with fold = 2.0^folding, i.e. (from swiftsimio readthedocs)
fold = 2.0^folding
Should this not be x_pos = (x_pos % box_over_fold_x) * fold ?
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
x_pos = (x_pos % (Lbox/1) ) * 1 / Lbox = x_pos / Lbox
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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: