yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #03171
Re: Delete an engine during simulation
Thanks, Vaclav!
Will try it.
2010/6/7 Václav Šmilauer <eudoxos@xxxxxxxx>
> > Is it possible to delete one of engines during simulation?
> > For example, I want to have translation engine during first 1000
> > iterations, then I do not need it.
> > Can I do that using python?
>
> O.engines=O.engines[:2]+O.engines[3:0]
>
> will remove the 3rd engine, for example. You should not do it from
> within the engine loop (didn't try, but that is what I guess), see
> https://yade-dem.org/sphinx/user.html#checkpoints in the warning -- make
> separate function that will wait for the step to finish, then remove the
> engine, then call run() again.
>
> HTH, Vaclav
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
> Post to : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
> More help : https://help.launchpad.net/ListHelp
>
Follow ups
References