← Back to team overview

yade-users team mailing list archive

Re: [Question #251510]: Loop - array -->Find out the strength needed to move each particle

 

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

Jérôme Duriez posted a new comment:
Hi,

One side note to help you a little to progress towards your goal :

The only thing in your script that moves the bodies / changes their
position is the engine NewtonIntegrator (that's its own job). Until this
Engine executes (which will be the case after, and then "outside" your
python operations of DetermineForceRequired()), positions never change.

So, you have to change the design of your operations.

In case you would think to moye yourself bodies position (changing
b.state.pos is possible), this is not really recommanded since contact
laws rely on bodies velocities. And, outside NewtonIntegrator,
velocities and positions are not related in the binary world of Yade.

Jérôme

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