asking

Sir, what is the meaning of :variable xx equal 8*$x lammps

Sir, what is the meaning of :variable xx equal 8*$x lammps

it is all explained in the documentation of the variable command:
http://lammps.sandia.gov/doc/variable.html

axel.