clamydo / stochasticsampling

GNU General Public License v3.0
0 stars 0 forks source link

Shift grid to zero to include zero #26

Closed clamydo closed 4 years ago

clamydo commented 4 years ago

In GitLab by @fkjogu on Dec 27, 2016, 09:11

Since the magnetic field points in this direction, consider shifting grid half a cell to contain a zero angle as a grid point.

Needs benchmark, since it might be more expensive

    index = round(pos / grid_width) % grid_size
clamydo commented 4 years ago

In GitLab by @fkjogu on Feb 1, 2017, 14:00

Simple solution: Just let magnetic field point in y-direction and only use number of angular grid cells n= 4*i + 2, for an integer i.

clamydo commented 4 years ago

In GitLab by @fkjogu on Feb 1, 2017, 14:00

closed