yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #13529
Re: [Question #403339]: Interactions in a clump
Question #403339 on Yade changed:
https://answers.launchpad.net/yade/+question/403339
Status: Open => Answered
Jérôme Duriez proposed the following answer:
Hello,
No, Yade would not define any interaction between e.g. particles A and B
in this case. Give a try with the following:
******** Example **********
O.bodies.append(sphere(Vector3(0,0,0),1,fixed='True'))
O.bodies.append(sphere(Vector3(0,0,1.99),1,fixed='True'))
O.bodies.clump([0,1])
O.step()
O.interactions.has(0,1) # returns false here (true without O.bodies.clump() line)
***************************
It is because colliders (which perform the first operations to define
interactions) skip such interactions within a clump [*]. Hence
interactions within a clump are never defined, which is not bad since
they would be useless.
Jerome
[*]
https://github.com/yade/trunk/blob/master/pkg/common/Collider.cpp#L18
PS: Exception to this behavior is when particles are clumped during a
simulation. In this case it seems the clump operation does not erase
previously existing interactions. In the example above, move the
O.step() before O.bodies.clump(..) to observe it
--
You received this question notification because your team yade-users is
an answer contact for Yade.