[lammps-users] Stress Calculation and Box Size Update

The "volume" of some subset of atoms is not a well-defined
quantity, and that's why LAMMPS doesn't attempt to
compute it for stress/atom. So you will have to decide
what is valid for your model and geometry and add that
term to the eq.