[lammps-users] Setting up some parameters.

Hi,

I want to set up some parameters for using them in Pair_coeff.

In my input script file :

variable e1 equal 0.2
variable e2 equal 0.0103
variable e3 equal 0.118
variable s1 equal 2.1
variable s2 equal 1.212
variable s3 equal 4.42
#pair_style lj/cut/coul/debye 0.0 20.0 20.0
pair_style lj/cut/coul/cut 30.0 30.0
# Case ######
pair_coeff 1 1 e1 s1 30.0
pair_coeff 1 2 sqrt(e1*e2) (s1+s2)*0.5 30.0
pair_coeff 1 3 sqrt(e1*e3) (s1+s3)*0.5 30.0
pair_coeff 2 2 e2 s2 30.0
pair_coeff 2 3 sqrt(e2*e3) (s2+s3)*0.5 30.0
pair_coeff 3 3 e3 s3 30.0

Is this right ?
I want to put, for example, 0.2 when I write e1 in pair_coeff command.
Thanks.

Dear Lee,
Instead of e1, write ${e1}. Same for others as well. See the manual for command variable.