Dear Lammps users,
How to change the value of a variable?
For example, if there is a definition,
variable a equal 10
and I want to change a to 20, how to do it?
Thanks
Dear Lammps users,
How to change the value of a variable?
For example, if there is a definition,
variable a equal 10
and I want to change a to 20, how to do it?
Thanks
You can assign multiple values to some styles of variables
and use the "next" command to switch values. Or you
can use a new variable name. But you can't reassign
a new value to the same variable name. The doc
page for the variable command explains all this.
Steve