Call variables

Submitted by rcabiscol on
PaulWinkler

Hi,

take a look at the variable command. To deal with per atom values (x, fy ...) you need the style atom. Then you can dump the result with other atom values/vectors.

variable dist atom sqrt(x^2+y^2+z^2)
dump dmp all custom ${ts_dump} ${filename} id type x y z v_dist

Best wishes,
Paul

Fri, 23 Aug 2013 - 16:20 Permalink

Hi!

I want to use some of the output variables of LIGGGHTS, such as fx or x, for a range of particle. I want to make some calculations in the input file for, finally, export them at the dump file.

However, I don't know how to call and store them in an array.

Thank you for your help!

Ramon