[lammps-users] about variable command and iterative job

Hello,

I am trying to do a batch job with changing pair coeff. I have tried
some different ways without success. For example,

Hello,

I am trying to do a batch job with changing pair coeff. I have tried
some different ways without success. For example,

why not write a small script that will generate
an explicit lammps script. for all iterations?

seems much easier to me.

cheers,
   axel.

Yes, that is easier to understand but has to increase the contents.
That is why I am wondering whether I can do it in a loop. Thank you
very much for the reply.

Best regards,
Dongsheng

You need v_a, not $a to do what you want, since the formula
is enclose in parens. The script below produces the log
output below, which appears to be what you want.

Steve