Command error

Dear user
I want to calculate Mises stress of each atom. I know the formula and read the manual ,but I still don’t know what went wrong
each time I run the script, the monitor shows “Invalid attribute in dump custom command”
Related commands are as follows:

compute 3 all stress/atom NULL
variable b atom sqrt(0.5*((c_3[1]-c_3[2])^2+(c_3[2]-c_3[3])^2+(c_3[3]-c_3[1])^2+6*(c_3[4])^2+6*(c_3[5])^2+6*(c_3[6])^2))
dump 3 all custom 20 dump.txt id type x y z b

Best wishes

Dear user
I want to calculate Mises stress of each atom. I know the formula and read the manual ,but I still don’t know what went wrong
each time I run the script, the monitor shows “Invalid attribute in dump custom command”

“b” is not a known attribute. if you want to output a variable, you have to indicate that “b” is a variable by prefixing it with v_ (similar to computes (c_) and fixes (f_)).

for more details, please review the dump documentation.

axel.