Hello everyone,

I tried to use this NearestNeighborFinder to find neighboring atoms and form unit cells.

I set periodic boundary conditions, the program also has the correct atomic identifier.

But when I tried to calculate the distance between adjacent atoms and adjacent atoms, I found that the coordinates of the atoms would still use the original coordinates, and would not be updated to the coordinates of the periodic boundary. Is there any way to obtain the coordinates of the periodic boundary?

`cell = node.compute().cell_`

with cell:

cell.pbc=(True,True,False)

data = node.compute()

#Found REF nearest 6 atoms around the center atom

N= 6

finder = NearestNeighborFinder(N, data)

ptypes = data.particles['Particle Type']

positions = data.particles['Position']

# Loop over all input particles:

for index in range(data.particles.count):

neighbors = [ (neigh.index, neigh.delta) for neigh in finder.find(index) ]