yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #04435
Re: [Question #156330]: Forces...
Question #156330 on Yade changed:
https://answers.launchpad.net/yade/+question/156330
Status: Open => Answered
honzik proposed the following answer:
>Yeah but no incrementation is done, isn't it ?
In your original script nothing change, you are right :-) you set
fEngine.force[1] = -forcetest # forcestest=0 initially
__before__ the simulation, and because forcestest=0, it is indeed no
change. After the simulation starts, the only thing is printing O.iter
and 10*O.iter (=forcetest) into stdout every 1s.
If you want to change force (let's say) each 100 iteration, add
PyRunner(command="fEngine.force[1]=someNewValue", iterPeriod=100),
line into your O.engines.
Jan
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.