New question #166809 on Yade:
https://answers.launchpad.net/yade/+question/166809

Hi,

For generation process of my model I create some spheres randomly. Then the 
model has to calm, because there are some overlaps. So I wrote a small function:

def calm():
        for ii in range(0,sum_spheres+1):
                O.bodies[ii].state.vel=Vector3(0,0,0)

I can add this function to O.engines with the PyRunner command:

O.engines=O.engines+[PyRunner(iterPeriod=10,command='calm()')]
O.run(1000,True)

My question is:

How can I remove this function? I need it only on the first few steps in my 
model.
I tried...

O.engines=O.engines-[PyRunner(iterPeriod=10,command='calm()')]

...but it doesnt work.

Christian.

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

_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to