[lammps-users] Using Variable

Hi
I defined the variable delt with :

variable delt equal 1.01

and I define displace box with:
displace_box all x scale v_delt y scale v_delt units box

then when I run the script it gives error like

ERROR: Cannot use neighbor bins - box size << cutoff

and also tried to print the variable to check if it is assigned the correct value
it also did not work.
sincerely.
dundar

What you want is
displace_box all x scale \{delt\} y scale {delt} units box

Some commands will take a variable like v_delt as
input and evaluate it multiple times, e.g. during a run,
but only if their doc page says they will - e.g. fix addforce.

Steve