yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #13719
Re: [Question #404190]: force chain between polyhedrons
Question #404190 on Yade changed:
https://answers.launchpad.net/yade/+question/404190
Status: Open => Answered
Jan Stránský proposed the following answer:
Hi Weimin,
to visualize force chain, see [1].
to export only some interactions, use
exportInteractions(ids=intrs)
where intrs is list of (id1,id2) tuples to export. Try something like:
intrs = []
for i in O.interactions:
b1 = O.bodies[i.id1]
b2 = O.bodies[i.id2]
if isisntance(b1.shape,Polyhedra) and isinstance(b2.shape,Polyhedra):
ints.append((i.id1,i.id2))
cheers
Jan
[1]
https://github.com/yade/trunk/blob/master/doc/sphinx/user.rst#rendering-interactions-as-force-chain
--
You received this question notification because your team yade-users is
an answer contact for Yade.