data analysis – How to unwrap coordinates produced by LAMMPS in python

Okay so I am using LAMMPS to produce wrapped coordinates since I am using periodic boundary conditions with their simulation, in a box of x=[0,91.24] by y=[0,91.24], and I was looking how I would be able to unwrap the coordinates so that I get correct coordinates to be able to calculate the MSD

I have tried putting the origin of the box and having an offset on it, I have seen online that you have to write your coordinates as (Length of the box/coordinate)+equilibrium position

Read more here: Source link