Hi,

I am trying to use compute stress/atom command as followed:

compute as matrix stress/atom

variable as atom sqrt((c_as[1]-c_as[2])^2+(c_as[2]-c_as[3])^2+(c_as[3]-c_as[1])^2)

dump 3 matrix custom 2000 dumpas.lammpstrj id type x y z c_as[1] c_as[2] c_as[3] c_as[4] c_as[5] c_as[6] v_as

ERROR: Mismatched compute in variable formula

could anyone tell me where I did wrong? Thanks a lot!!

lily