回复: Addforce using the coordination of atom

Dear Steve:

Maybe my discription puzzles you.

You can look the line with the ## at the beginning below.In my script,the atom doesn’t need to know the information

about the neighborhood.Because they are rigid.

The big problem is how to operate a per-atom variable or vector.That troubles me a lot.If no similar command,I could have to write a fix to realize this goal.

Thanks very much!

Best wishes!

Chen Wang
2014-10-22

##variable fx[v_l] = m
##variable fy[v_l] = n
##variable fz[v_l] = p

You can’t use atom_style variables like that,
on the left-hand side of an equation, only