I noticed in the coming attractions section on the LAMMPS website that
it mentions "LAMMPS can calculate per-atom energy and stress (virial)
for all its potential models, including many-body models. But not for
the contribution from long-range Coulombics. We don't know how to
formulate the equations for this, or if it is even meaningful."
A method to calculate the per-atom stress and energy for the Ewald sum
is described in Sonne et al. (JCP 122, 2005), Ghoufi et al. (JCP 128,
2008), and Wang and Zeng, J. Theor. Comput. Chem. 8, 733 (2009). This
method is also used in the NAMD program ( see
http://www.ks.uiuc.edu/Research/namd/2.6/ug/node39.html )
I'm curious, has anyone worked on this or thought of implementing this
in LAMMPS--perhaps in the ewald/n routine?
Thanks!