[lammps-users] how to calculate the stress of individual atom, arising from the interaction with some specified group of atoms?

Compute stress/atom calculates the stress for a single
atom due to its interaction with all other atoms.

Compute group/group calculates the force (or energy)
of a group of atoms (could be one atom) due to
interactions with another group (could be all).

If you want to write a compute stress/atom with a group
option to do this:

calculate the stress of individual atom,
arising from the interaction with some specified group of atoms

you could do it. But it would have to loop over
pair interactions like compute group/group does. It will
thus not work for manybody potentials.

Steve