[lammps-users] variable definition

Hi there,

I have a script look like:

I don't see a variable vol line.
Also to refer to it, it would be ${vol} for multi-letter variables.

Steve

well, it is the variable from the thermo_style, can’t I use it here?
According to the description of variable, it should be ok.

Thanks.

Konzern

To use the thermo variable, just use vol. If you type
v or {vol} then it's your variable. $vol will be
interpreted as $v. The examples on the variable
doc page illustrate this.

Steve