displace_atoms

Hello

I have a question about displace_atoms command:

Can I use “args” of this command as below?

displace_atoms all move -0.1cos(acos(x/(sqrt(x^2+y^2)))) -0.1sin(asin(y/(sqrt(x^2+y^2)))) 0 units box

(As is visible, the args are variable according to atoms position)
Thank you for your help

Hello

I have a question about displace_atoms command:
Can I use "args" of this command as below?

​no!

please see the documentation at ​
http://lammps.sandia.gov/doc/displace_atoms.html
does it say anywhere in there, that you can do this?

displace_atoms all move -0.1*cos(acos(x/(sqrt(x^2+y^2))))
-0.1*sin(asin(y/(sqrt(x^2+y^2)))) 0 units box

(As is visible, the args are variable according to atoms position)

​​however, you *can* do such an operation by defining suitable atom-style
variables.
​http://lammps.sandia.gov/doc/variable.html​

​i suggest you first experiment with some trivial test examples that
contain only a few atoms until you have understood how to do this correctly.

axel.