"ERROR: All pair coeffs are not set (../pair.cpp:199)"

Dear LAMMPS users!

My model has 3 atom types Si S Mo.

Potential for Si and MoS are SW, Si-Mo and Si-S are LJ.

In LAMMPS,

pair_style hybrid sw lj/cut 10.0
pair_coeff * * sw Si.sw Si NULL NULL
pair_coeff * * sw MoS.sw NULL S Mo
pair_coeff 1 2 lj/cut 6.2 4.2 8
pair_coeff 1 3 lj/cut 6.5 3.8 8

I am having this error .

“ERROR: All pair coeffs are not set (…/pair.cpp:199)”

Thank you very much for any help!

Dear LAMMPS users!

My model has 3 atom types Si S Mo.

Potential for Si and MoS are SW, Si-Mo and Si-S are LJ.

In LAMMPS,

pair_style hybrid sw lj/cut 10.0
pair_coeff * * sw Si.sw Si NULL NULL
pair_coeff * * sw MoS.sw NULL S Mo

This line overwrites the previous one since you mentioned sw only once in the pair_style line.

Axel