← Back to team overview

yade-users team mailing list archive

Re: [Question #156330]: Forces...

 

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

    Status: Open => Answered

honzik proposed the following answer:

>It just means "at every 100 iterations, the fEngine.force[1] = someNewValue", but no value is added, right ?
>
>Ok, but here again, no incrementation is done, isn't it ?... I'd like to do something like
>At iteration = 0, force applied = 0,
>At iteration = 50, force applied = 100,
>At iteration = 100, force applied = 200,
>[...]
Well, for given example you could write in the same manner
PyRunner(command="fEngine.force[1] += 100", iterPeriod=50),
or
PyRunner(command="fEngine.force[1] +=2 ", iterPeriod=1),
:-)
according how often and how much you want to increment the applied force

Jan

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