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

Bruno Chareyre proposed the following answer:
> PyRunner(command='addForceEver()',iterPeriod=1)

The above makes no sense. If the force is applied forever, why would we
reapply at each iteration? It is only when using addF(...,False) that a
PyRunner may help.

Does this solve your question?:

O.forces.addF(id_ball, F1,1)
O.run(100,1)
O.forces.addF(id_ball, F2,1)
O.run(100,1)

It applies F1 for 100 iterations, then F2. More automatic switches can
of course be implemented.

@Ricardo
I think ForceEngine would make this more painful. It does not offer any help 
for changing force values dynamicaly over time, and applying forces 
independently on 1000 bodies would need 1000 independent ForceEngines...

-- 
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