← Back to team overview

yade-users team mailing list archive

Re: [Question #696052]: Two contact law

 

Question #696052 on Yade changed:
https://answers.launchpad.net/yade/+question/696052

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,

please provide a MWE [1] = full script, not just engines

> o.engines = [

please provide actual code.
o.engines should result in something like "'o' is not defined"

> do I need to add two different engine?

depends on what you mean.
There is exactly one O.engines for a simulation.
If you mean law functors [2], then yes, for two contact laws, you would need two Law functors

> I want to use Luding contact model between particles and The Hertz
Mindlin non-slip contact model for particle-wall interactions. How can I
use these different contact model in one simulation?

You want to use , Hertz Mindlin non-slip contact model, so you need:
- FrictMat
- Ip2_FrictMat_FrictMat_MindlinPhys
- Law2_ScGeom_MindlinPhys_Mindlin (?)

You want to use Luding contact model, so you need:
- LudingMat
- Ip2_LudingMat_LudingMat_LudingPhys
- Law2_ScGeom_LudingPhys_Basic

Normally it is OK to use different materials, Ips2 and Laws2 and their combinations.
E.g. I used to use Cpm contact model for sphere-sphere (spheres had Cpm material) and Cundal-Strack model for sphere-facets (facets had "only" FrictMat)

Unfortunately for you, the design of Yade and implementation decisions (the class hierarchy of materials mainly) made it impossible for one particle to have both Mindlin and Luding interactions.
Or it seems to me after looking briefly at the source code.
To achieve this, you would need some modifications of the source code...

cheers
Jan

[1] https://www.yade-dem.org/wiki/Howtoask
[2] https://yade-dem.org/doc/user.html#functors-choice

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.