← Back to team overview

yade-users team mailing list archive

Re: [Question #680892]: O.engines[].dead=True

 

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

    Status: Needs information => Answered

Chareyre proposed the following answer:
Hi,
Please provide a working script.
Bruno

Le ven. 17 mai 2019 09:37, Francesco <question680892@xxxxxxxxxxxxxxxxxxxxx>
a écrit :

> New question #680892 on Yade:
> https://answers.launchpad.net/yade/+question/680892
>
> Hi yade users,
>
> I'm using the rotation and translation engines to move bodies and pack of
> particles.
> The simulation starts with the engines set to dead= false.
> After I use Pyrunners in order to stop the movements. For example these
> are the engines:
>
>
> RotationEngine(angularVelocity=-wt,dead=False,ids=nozzle,rotateAroundZero=True,rotationAxis=(1,0,0),zeroPoint=[0,y_rotation,0]),
>
>
> RotationEngine(angularVelocity=-wt,dead=False,ids=pack_rotation,rotateAroundZero=True,rotationAxis=(1,0,0),zeroPoint=[0,y_rotation,0]),
>
> This is the function of the pyrunner:
>
> def motion_5():
>         O.engines[11].dead=True
>         O.engines[12].dead=True
>
>  And this is the pyrunner:
>
>
>  PyRunner(command='motion_5()',iterPeriod=1,firstIterRun=iterrotation_2,nDo=2)
>
> I do not understand why the rotations don't stop.
> Does somebody find the same problem?
>
> Thank you so much,
>
> Francesco
>
>
> --
> 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@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users
> More help   : https://help.launchpad.net/ListHelp
>
>
>

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