[lammps-users] total stress calculation in LAMMPS


I want to calculate total stress in Y direction for a system (Syy). for this reason I use following command in my input script :

units metal
compute 2 all stress/atom
compute 4 all sum c_2[2]

But I don’t know , how can obtain the stress (Pa units) from the output stress of these commands.
I think ,it must be divided by initial volume of system but i amn’t sure.

best regards
Hamed Attariani
MSc student of mechanical engineering

See the doc page for compute stress/atom. It explains
that what is computed is stresss/volume.