I am using a python snippet (appended below) to calculate the nonaffine square displacement D2_min of the lammps snapshots. But ovito returns error that “D2_min is not found” because it is not a particle property.
I also append two of the lammps data files below for reference.
PS: the python script is mixed with codes and outputs for reader’s convenience.
I had a similar issue a few years back. The properties names read from files are parsed so capital letters are changed to lower case inside Ovito. I think this is why your script returns an error.
See @stukowski’s answer’s here for how to check for particles properties names as referenced by Ovito using the GUI.