Ghost atoms are images of atoms inside the periodic box.
The way of computing the virial you list below is correct.
It accounts for interactions across periodic boundaires without
having to apply the minimum image convention. Again,
if you work with a 2-atom system, you should be able
to break it down term by term.
Steve
2011/2/21 Yangpeng Ou <[email protected]...>: