Hi, All,
I have a question about the calculation of atom stress tensor shown in the “computer stress/atom command” doc file:
http://lammps.sandia.gov/doc/compute_stress_atom.html
To calculate the stress contribution from atom (say i atom) which interacts with atoms j, k via angle interaction, the doc file gives the calculation as 1/3(f1r1+f2r2+f3r3), which is third of the virial from the angle 1-2-3 interaction. My question is why not directly using f_ir_i here? Similarly, for dihedral angle interaction, the stress contribution from atom i is 1/4(f1r1+f2r2+f3r3+r4r4) … Are these only in an average meaning?
Thanks for your time!
Dongshan