Dear LAMMPS users,
I’m getting the following error:
ERROR: Pair_modify special setting for pair hybrid incompatible with global special_bonds setting
The relative lines in my script and some of the pair_coeffs:
pair_style hybrid lj/charmm/coul/charmm 12.0 14 lj/cut/coul/long 12.0
special_bonds charmm
pair_modify pair lj/cut/coul/long special 0.0 0.0 0.5
pair_coeff 1 1 …
pair_coeff 1 2 …
pair_coeff 1 3 …
…
dihedral_style charmm opls
dihedral_coeff 1 charmm …
dihedral_coeff 2 opls …
…
I’m mixing two different force fields, and they differ in the weighting of the 1-4 interactions. I want to define the weighting of the 1-4 interactions factor of lj/charmm/coul/charmm explicitly by dihedral_style charmm.
If I am using the dihedral_style charmm, I should use special bonds charmm. Then I can not modify the weight of the oplsa on lj/coul 0.0 0.0 0.5 ( as required for oplsa) using pair modify. However, what I am trying to do is to override 0.0, which violates the requirements for overriding special_bonds settings in hybrid styles.
How can I combine CHARMM with OPLS?
Can anybody help me?
Thank you in advance.