How to get the unwarpped coordinate of a particle in a rigid body

Dear Users

Is there a way the unwarpped coordinate of a particle in a rigid body?
In my simualtion, a rigid body is constructed by many particles, and then used for shear another group of particles. I want to get the unwarpped coordinate of a particle in this rigid body during the simulation process, so that I can modify some simulaiton parameters according to this unwarpped coordinate. However, many ways I have tried failed.

Please guide, how this can be achieved.
Best Regards,
JZ MEI

For your kind of question, please always state which exact LAMMPS version you are using and provide a minimal example demonstrating what you have done.

It should not be a problem to get the unwrapped coordinates. The image flags of atoms are reset according to the image flags that apply to the rigid body. So either you are not using LAMMPS correctly (and then we need to see that) or you have a version that has a bug (and then we need to reproduce it).

Dear friend,

Thank you very much for the reply!
I have changed a way to realize the simulation. I have carefully read the fix_rigid method and previous discussions, and the COM of rigid bodies and the corresponding image flags are enough for me.

All the best,
JZ