← Back to team overview

yade-users team mailing list archive

Re: [Question #690742]: How does the interaction.erase function work in the agglomerate examples?

 

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

Wang Yu gave more information on the question:
Thanks a lot Jan!



Maybe I have some misunderstanding with O.interactions.erase. If deleting existing interaction has no particular effect on future interactions,so what's the purpose of this function?



I found that partcles within an agglomerate are bonded tightly (their interaction may have some "cohesive" property). If the new interactions(partcles between different agglomerates) are created according to the same functors(Ig2, Ip2 and Law2 for CpmMat spheres), why aren't there the same cohesive properties (there are no bond between partcles from two agglomerates)?



According to my guess(may be wrong),O.interactions.erase break the interaction for a moment, and the bond part of interaction (like cohesive) can not be rebuilt because of the special property of CpmMat. Am I right?



In fact, I want to creat some agglomerates:

A-type-interaction between partcles within an agglomerate is different
from B-type-interaction between agglomerates. Is there any example or
advise for my question?


PS:With my current ideas,I think out of two approaches:
1. A-type-interaction and B-type-interaction use the same Ip2 and Law2 functors but with different arguments(about stiffness or cohesive property)
2. Two types of interactions use different Ip2 and Law2 functors.
Do these approaches accessible in Yade?



Thanks

Wang









At 2020-05-16 04:41:00, "Jan Stránský" <question690742@xxxxxxxxxxxxxxxxxxxxx> wrote:
>Your question #690742 on Yade changed:
>https://answers.launchpad.net/yade/+question/690742
>
>    Status: Open => Answered
>
>Jan Stránský proposed the following answer:
>Hello,
>
>> I am new to Yade
>
>welcome :-)
>
>> what IPhys and Law would be used in these pairs of partcles in the
>following simulation by default or any manual definition when they are
>deleted already?
>
>deleting existing interaction has no particular effect on future interactions.
>New interactions are simply created according to particles' materials and Ig2, Ip2 and Law2 functors [1].
>
>> I have found that there really exist interaction between a pair of
>bodies (their interaction have been deleted before),but I don't
>understand how to define the interaction attribute
>
>Please be more specific what is "interaction attribute". The creation is governed by particles' materials and Ig2, Ip2 and Law2 functors.
>You can then access the interaction and do other modifications if needed.
>
>cheers
>Jan
>
>[1] https://yade-dem.org/doc/user.html#functors-choice
>
>-- 
>If this answers your question, please go to the following page to let us
>know that it is solved:
>https://answers.launchpad.net/yade/+question/690742/+confirm?answer_id=0
>
>If you still need help, you can reply to this email or go to the
>following page to enter your feedback:
>https://answers.launchpad.net/yade/+question/690742
>
>You received this question notification because you asked the question.

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