← Back to team overview

yade-users team mailing list archive

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

 

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.