← Back to team overview

yade-users team mailing list archive

Re: [Question #200094]: re-initialization of the collider

 

Question #200094 on Yade changed:
https://answers.launchpad.net/yade/+question/200094

    Status: Open => Answered

Anton Gladky proposed the following answer:
Hello Giuseppe,

I have added a new option to InsertionSortCollider (doSort) to force an
initial sort of interactions [1]. If it is what you need, you can use it since
the last git-version.

On any step of simulation you can do just

collider.doSort=True

and the collider should do "initial sort" of interactions at the next step
of simulation.

Do not forget to  give a name to your collider as in [2].

[1] https://github.com/yade/trunk/commit/da57c71adc638a0e142d247972a8d2cdc21d90e5
[2] https://github.com/yade/trunk/blob/master/examples/packs/packs.py#L126

Cheers,

Anton

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.