[lammps-users] pair_style hybrid/overlay


I want to give two atoms an attractive yukawa potential

but when I set a hybrid pair style, why does the following error appear?

pair_style hybrid/overlay lj/cut 2.5 coul/long 2.0 yukawa
ERROR: Illegal pair_style command

Is there other attractive potential of two macromolecule in LAMMPS,Thanks.

The yukawa pair style requires 2 arguments (kappa, cutoff). See the doc page.


2008/1/26 田文德 <[email protected]>: