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
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] ==
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
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
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
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
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
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
8 matches
Mail list logo