To define two "pair_style"

Submitted by TakaTo on Sun, 06/28/2020 - 05:00


I need to define two “pair_style” using “pair_style hybrid”,however,I faced an error.

ERROR:Incorrect args for pair coefficients

Here is the part of my input script.

pair_style hybrid gran model Hooke tangential history gran cohesion easy/capillary/viscous
pair_coeff * *

Thank you.

mschramm | Sun, 06/28/2020 - 17:28

Are you trying to simulate a particle with the hooke contact model and a cohesion model or are you trying to simulate some particles with a contact model and some particles with just a cohesion model?

If you are trying to do the first, than you do not need to use the hybrid style, (also assuming you mean the easo cohesion model...)

pair_style gran model hooke tangential history cohesion easo/capillary/viscous
pair_coeff * *

If your trying to do the other, I do not think it will work due to you needing to state the name of the the pair_style (from the ref page).
In the pair_coeff commands, the name of a pair style must be added after the I,J type specification, with the remaining coefficients being those appropriate to that style.

TakaTo | Tue, 06/30/2020 - 07:23

I am trying to do the first.
The problem worked, but I faced an other error about "coefficientRestitution".

I want to define "coefficientRestitution" using "Fix property/global " command.
What should I do to define "coefficientRestitution" as 1 ? (style=peratomtypepair , nCols=4)