You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm dealing with a system composed of particles comfined in a circle and particles have arranged themselves into a triangular lattice. But I find that, the diffraction pattern is related to the box. Shouldn't the diffraction pattern independent of box?
from matplotlib import pyplot as plt
import numpy as np
import freud
uc = freud.data.UnitCell.hex()
n_repeats = (20, 20,1)
system = uc.generate_system(n_repeats)
position=system[1]
position=position[np.linalg.norm(position,axis=1)<10]
box=np.array([20., 40., 0., 0., 0., 0.], dtype="float32")
system=(box,position)
sf=freud.diffraction.DiffractionPattern(grid_size=512)
sf.compute(system,peak_width=1)
The text was updated successfully, but these errors were encountered:
My guess: Lazy solution: use a smaller box, discard the particles outside and make sure that there is no vacuum space in your box. You will lose some resolution at small kx or ky. Permanent solution: write your own code/wait for the owner of this repo.
I'm dealing with a system composed of particles comfined in a circle and particles have arranged themselves into a triangular lattice. But I find that, the diffraction pattern is related to the box. Shouldn't the diffraction pattern independent of box?
The text was updated successfully, but these errors were encountered: