pair_stype hybrid

Dear LAMMPS user:

I intend to use hybrid potential of tersoff & columbic with the command here:

.....
pair_style hybrid tersoff coul/cut 10
pair_coeff * * tersoff C.tersoff C C H H
pair_coeff * * coul/cut 10
......

However, I always met error, mostly with "ERROR: Pair hybrid sub-style is not used (pair_hybrid.cpp:398)". I have tried various syntax of coding, but unable to go through. Anybody could be so kind to share your experience?

Thanks!
Dai Ling

Dear LAMMPS user:

I intend to use hybrid potential of tersoff & columbic with the command here:

.....
pair_style hybrid tersoff coul/cut 10
pair_coeff * * tersoff C.tersoff C C H H
pair_coeff * * coul/cut 10
......

However, I always met error, mostly with "ERROR: Pair hybrid sub-style is not used (pair_hybrid.cpp:398)". I have tried various syntax of coding, but unable to go through. Anybody could be so kind to share your experience?

the error is exactly what you should get. the second pair_coeff line
erases the settings of the first. that is how pair_style hybrid works.
it uses only one potential style at a time. if you want to add the two
potential styles, you have to use hybrid/overlay.

axel.