yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #15830
Re: [Question #658699]: Deleting the desired interactions
Question #658699 on Yade changed:
https://answers.launchpad.net/yade/+question/658699
Status: Open => Answered
Jan Stránský proposed the following answer:
Thanks for the code, it is much clearer now :-) you have to cancel the enlargements after the first O.step:
###
O.engines=[
ForceResetter(),
InsertionSortCollider([Bo1_Sphere_Aabb(aabbEnlargeFactor=1.5,label='bo1'),......
InteractionLoop(
[Ig2_Sphere_Sphere_ScGeom(interactionDetectionFactor=1.5,label='ig2'),....
....
]
O.trackEnergy=True
O.step()
bo1.aabbEnlargeFactor = 1. # !!
ig2.interactionDetectionFactor = 1. # !!
...
###
also note that len(O.interactions) and len([i for i in O.interactions]) may differ
len(O.interactions) ... includes also potential interactions
len([i for i in O.interactions]) ... only counts real interactions
cheers
Jan
--
You received this question notification because your team yade-users is
an answer contact for Yade.