[lammps-users] dump custom compute question

Hi all
I try to get peratom stress by using compute command and dump them to a file.
But an error notice always occures. Can you help me? Thank you.

Yang,
Dump command is used to compute per atom information, not the global values. In your example, c_p is a global quantity and it is a vector of size 2. If you want to output global value of stress, use thermo_style custom option with c_p[1] and c_p[2]. If you want to print the information for each atom in a file, then use c_peratom[1], c_peratom[2], etc etc…

Regards,
Vikas

2008/4/30 YANG LU <[email protected]…215…>: