hybrid/overlay within a hybrid pair style?

Hello people,

I'd like to combine three pair styles for different element combinations in a hybrid and one of those element combinations is itself a hybrid overlay. I'm looking at a system of graphene on Cu in which
- Cu-Cu interaction is eam
- C-Cu interaction is Lennard -Jones
- C-C interaction is a hybrid of airebo and another potential

For simulations with pure Cu and Cu the working pair_style lines are
pair_style eam/fs
pair_style hybrid/overlay airebo 3.0 0 1 aleksey 5.0 20.0
and LJ for Cu-C would be something like
pair_style lj/cut 8.0

Combining these three into

pair_style hybrid eam/fs lj/cut 8.0 hybrid/overlay airebo 3.0 0 1 aleksey 5.0 20.0

causes lammps to say

ERROR: Illegal pair_style command (../pair_hybrid.cpp:227)
Last command: pair_style hybrid eam/fs lj/cut 8.0 hybrid/overlay airebo 3.0 0 1 aleksey 5.0 20.0

So I presume that inserting a hybrid/overlay as one of the three pair_styles in the hybrid is not allowed? Would anybody know a way to tell lammps to use a hybrid in which one of the three pair styles is already a hybrid/overlay?

Kind regards,
Peter

Hello people,

I'd like to combine three pair styles for different element combinations
in a hybrid and one of those element combinations is itself a hybrid
overlay. I'm looking at a system of graphene on Cu in which
- Cu-Cu interaction is eam
- C-Cu interaction is Lennard -Jones
- C-C interaction is a hybrid of airebo and another potential

For simulations with pure Cu and Cu the working pair_style lines are
pair_style eam/fs
pair_style hybrid/overlay airebo 3.0 0 1 aleksey 5.0 20.0
and LJ for Cu-C would be something like
pair_style lj/cut 8.0

Combining these three into

pair_style hybrid eam/fs lj/cut 8.0 hybrid/overlay airebo 3.0 0 1
aleksey 5.0 20.0

causes lammps to say

ERROR: Illegal pair_style command (../pair_hybrid.cpp:227)
Last command: pair_style hybrid eam/fs lj/cut 8.0 hybrid/overlay
airebo 3.0 0 1 aleksey 5.0 20.0

So I presume that inserting a hybrid/overlay as one of the three
pair_styles in the hybrid is not allowed? Would anybody know a way to tell
lammps to use a hybrid in which one of the three pair styles is already a
hybrid/overlay?

​hybrid/overlay doesn't care how many layers you overlay. so it should be
possible to realize the whole setup within a single hybrid/overlay​ style.

axel.