Closed
Description
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)
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
Metadata
Metadata
Assignees
Labels
No labels