[Yade-users] [Question #240024]: how to get interaction attribute from interacting particles ids

2013-11-29 Thread Luc Scholtès
New question #240024 on Yade: https://answers.launchpad.net/yade/+question/240024 Hi all, Just wondering if there is a "simple" way to access interaction attribute (like intr->phys->tangensOfFrictionAngle) when the pair of interacting particles (id1 and id2) is known. For now, I am looping ove

Re: [Yade-users] [Question #240024]: how to get interaction attribute from interacting particles ids

2013-11-29 Thread Kneib François
Question #240024 on Yade changed: https://answers.launchpad.net/yade/+question/240024 Status: Open => Answered Kneib François proposed the following answer: Hi Luc, Yes, in the Python CLI : O.interactions[id1,id2].phys or O.interactions[id1,id2].geom Note that O.interactions[id1,id2] ==

Re: [Yade-users] [Question #240024]: how to get interaction attribute from interacting particles ids

2013-11-29 Thread jduriez
Question #240024 on Yade changed: https://answers.launchpad.net/yade/+question/240024 jduriez proposed the following answer: In c++, you have a function found() in InteractionContainer that does what you want apparently. We just discussed that with Timos ! -- You received this question notificat

Re: [Yade-users] [Question #240024]: how to get interaction attribute from interacting particles ids

2013-11-29 Thread jduriez
Question #240024 on Yade changed: https://answers.launchpad.net/yade/+question/240024 jduriez proposed the following answer: But, if you want to have access to this interaction (and its attributes), the function find() (one line above found() in InteractionContainer) is probably better for you. T

Re: [Yade-users] [Question #240024]: how to get interaction attribute from interacting particles ids

2013-11-29 Thread Luc Scholtès
Question #240024 on Yade changed: https://answers.launchpad.net/yade/+question/240024 Status: Answered => Open Luc Scholtès is still having a problem: Many thanks to both of you. Actually, I was expecting there was an easy way with python but I would like to implement my search function in C

[Yade-users] [Question #240035]: importing a cython module

2013-11-29 Thread matthias
New question #240035 on Yade: https://answers.launchpad.net/yade/+question/240035 Hi all, i want transfer some functions for motion and analysing to a (faster) cython coded module (shared opject motion.so). so that's an easy excercise. but while importing to yade, ther is an problem. the modul

Re: [Yade-users] [Question #240024]: how to get interaction attribute from interacting particles ids

2013-11-29 Thread Bruno Chareyre
Question #240024 on Yade changed: https://answers.launchpad.net/yade/+question/240024 Status: Open => Answered Bruno Chareyre proposed the following answer: As Jerome suggests, it is "find()" (returns element) not "found()" returns true/false. >Is there already a class where this function is

Re: [Yade-users] [Question #240024]: how to get interaction attribute from interacting particles ids

2013-11-29 Thread Luc Scholtès
Question #240024 on Yade changed: https://answers.launchpad.net/yade/+question/240024 Status: Answered => Solved Luc Scholtès confirmed that the question is solved: Many thanks guys Cheers Luc -- You received this question notification because you are a member of yade-users, which is an a