Re: [Yade-users] [Question #691907]: How to calculate bond (interaction) breakage ratio

2020-07-17 Thread Leonard
Question #691907 on Yade changed: https://answers.launchpad.net/yade/+question/691907 Leonard posted a new comment: Hi Jan, Thanks for your reply. >the two particles come to contact again after some time. Thanks, I got it. >Do you have something like that, or you are merely dependent on the exi

Re: [Yade-users] [Question #691907]: How to calculate bond (interaction) breakage ratio

2020-07-17 Thread Jan Stránský
Question #691907 on Yade changed: https://answers.launchpad.net/yade/+question/691907 Jan Stránský posted a new comment: >> the two particles come to contact again after some time? > You are right, the breakage ratio I want to investigate is for initial > interactions, so again the first approach

Re: [Yade-users] [Question #691907]: How to calculate bond (interaction) breakage ratio

2020-07-16 Thread Leonard
Question #691907 on Yade changed: https://answers.launchpad.net/yade/+question/691907 Status: Answered => Solved Leonard confirmed that the question is solved: Hi Jan, >The order of id1,id2 is not changed for existing interaction. That is great, so using the first approach (in #1) is perfect

Re: [Yade-users] [Question #691907]: How to calculate bond (interaction) breakage ratio

2020-07-16 Thread Jan Stránský
Question #691907 on Yade changed: https://answers.launchpad.net/yade/+question/691907 Status: Open => Answered Jan Stránský proposed the following answer: good point on the ids order. you can change set((i.id1,i.id2) for i in O.interactions) to set(tuple(sorted((i.id1,i.id2))) for i in O.inte

Re: [Yade-users] [Question #691907]: How to calculate bond (interaction) breakage ratio

2020-07-16 Thread Leonard
Question #691907 on Yade changed: https://answers.launchpad.net/yade/+question/691907 Status: Answered => Open Leonard is still having a problem: Hi Jan, Thanks for your reply. Using Python set is a great idea. I still have one doubt, since there is no oder (or random order) for id1 and id2

Re: [Yade-users] [Question #691907]: How to calculate bond (interaction) breakage ratio

2020-07-16 Thread Jan Stránský
Question #691907 on Yade changed: https://answers.launchpad.net/yade/+question/691907 Status: Open => Answered Jan Stránský proposed the following answer: Hello, > for i in O.interactions: > if i.isReal: "if i.isReal" is not needed, as "i" is guaranteed to be real, because "iteration silen

[Yade-users] [Question #691907]: How to calculate bond (interaction) breakage ratio

2020-07-16 Thread Leonard
New question #691907 on Yade: https://answers.launchpad.net/yade/+question/691907 Hi, I am working on a drained triaxial compression test and I'd like to know how to gain the bond (i.e., interaction) breakage ratio (defined as number of broken initial interactions over number of initial interac