a long variable array

Dear LAMMPS users and developers,

Please accept my apologies if this is quite a trivial question. (I looked into the manual and mail list but no findings yet)

I have a very long variable array (up to a couple hundred of elements) such as:

variable t world 0 1 2 3 4…

world w world 230 237 250…

Is there a smarter way to assign the array, if

  1. they are arithmetic sequence such as 10, 12, 14, 16…

  2. they are of no order?

Thank you so much for the help.

LC Liu

You can list a couple 100 values in your
input script, as a multiple line command.

You can also use file-style variables and put
them in a file. There's no way to auto-generate
the kinds of sequences you listed.