Re: [Yade-users] [Question #671171]: forcechain output

2018-07-28 Thread xjin
Question #671171 on Yade changed:
https://answers.launchpad.net/yade/+question/671171

Status: Answered => Solved

xjin confirmed that the question is solved:
Thanks Jan Stránský, that solved my question.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #671171]: forcechain output

2018-07-27 Thread Jan Stránský
Question #671171 on Yade changed:
https://answers.launchpad.net/yade/+question/671171

Status: Open => Answered

Jan Stránský proposed the following answer:
Use ids argument [1], something like (not tested):
ids = [(i.id1,i.id2) for i in O.interactions if 
all(isintance(O.bodies[id].shape,Sphere) for id in (i.id1,i.id2))]
Jan

[1] https://github.com/yade/trunk/blob/master/py/export.py#L583

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


[Yade-users] [Question #671171]: forcechain output

2018-07-27 Thread xjin
New question #671171 on Yade:
https://answers.launchpad.net/yade/+question/671171

When I use 
--
vtkExporter.exportInteractions(what=[('forceN','i.phys.normalForce.norm()')])
--
to obtain the forcechain, if my simulation contains facets, spheres and other 
objects.
How can I get the focechain of sphere only? can you give me suggestion?
Thanks!

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp