On 30/07/15 02:49, Bruno Chareyre wrote:
> It is not far really, this is a theoretical method without a step() :
> InsertionSortCollider().__call__()
> bodyPairs=O.interactions
>
> with the only problem that for the moment it would hide virtual
> interactions (hence doesn't work practicaly). Easy to fix.
>
It is possible after [1] like this:
#before any iteration
typedEngine("InsertionSortCollider").__call__()
for i in O.interactions.all():
if (...): #further filtering since the collider alone does not give
a consistent list, interaction radius, or threshold distance, etc.
ni=createInteraction(i.id1,i.id2)
ni.unp=new.penetrationDepth #or anything else you like
And then creating an initial bond network is no longer a blackbox thing. :)
Bruno
[1]
https://github.com/yade/trunk/commit/2296b7f6ecb9e4bd98ac9853472f7609b187b8c5
_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yade-dev
More help : https://help.launchpad.net/ListHelp