[lammps-users] effor from "hybrid" command

Hi, everyone

I have puzzle about “hybrid” command.
pair_style hybrid lj/cut/coul/cut 10.0 eam lj/cut 5.0
pair_coeff 12 12 Cu_u6.eam
pair_coeff 3 3 lj/cut/coul/cut 1.0 1.0
pair_coeff 1*2 3 lj/cut 0.5 1.2

Above is my in file. It looks like right according to the manual.
However, once I run it, error appears (below is my log file):

LAMMPS (7 Jul 2009)
units metal
boundary p p p
atom_style atomic
lattice custom 5.091 a1 1.0 0.0 0.0 a2 0.0 2.233549 0.0 a3 0.0 0.0 1.33215478 basis 0.0 0.0 0.0 basis 0.9884 0.2804 0.25 basis 0.4272 0.0985 0.25 basis 0.7377 0.0867 0.25 basis 0.302 0.9579 0.25 basis 0.2925 0.1633 0.0599
Lattice spacing in x,y,z = 5.091 11.371 6.782
region box block 0 3 0 3 0 3
create_box 3 box
Created orthogonal box = (0 0 0) to (15.273 34.113 20.346)
1 by 1 by 1 processor grid
create_atoms 1 box basis 2 1 basis 3 2 basis 4 3 basis 5 3 basis 6 3
Created 162 atoms
pair_style hybrid lj/cut/coul/cut 10.0 eam lj/cut 5.0
pair_coeff 12 12 Cu_u6.eam
ERROR: Pair coeff for hybrid has invalid style

Why is this error? How to solve it? Thank you very much!

Your sincerely;
Bin Zheng
School of Physics
DST - NRF Centre of Excellence in Strong Materials,
University of the Witwatersrand
Johannesburg, South Africa.
phone: +27 11 717 6845
Email: nicolebinzheng@…24…

Hi, Bin:

Each pair_coeff statement, when used with pair_style hybrid, needs to contain the name of the pair_style it’s supposed to be as part of the definition. You don’t have a style defined for pair_coeff 12 12, and LAMMPS doesn’t know that it should be EAM. . . .

–AEI