yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #04433
Re: [Question #156330]: Forces...
Question #156330 on Yade changed:
https://answers.launchpad.net/yade/+question/156330
Status: Open => Answered
honzik proposed the following answer:
Hi Arthur,
could you please attach the whole script (or a link to the script)? but
you can change the force of fEngine by PyRunner:
O.engines=[
[...]
ForceEngine(force=(0,0,0),ids=[233,234,235,236],label='fEngine'),
[...]
PyRunner(command="fEngine.force[1]=someNewValue", iterPeriod=100),
[...]
]
Jan
______________________________________________________________
> Od: "Arthur Mercier" <question156330@xxxxxxxxxxxxxxxxxxxxx>
> Komu: yade-users@xxxxxxxxxxxxxxxxxxx
> Datum: 06.05.2011 23:42
> Předmět: [Yade-users] [Question #156330]: Forces...
>
>New question #156330 on Yade:
>https://answers.launchpad.net/yade/+question/156330
>
>Hi,
>
>I'm using Yade Bzr2811 and Ubuntu 10.10.
>
>I'd like to plot it:
>http://img11.hostingpics.net/pics/477562force.jpg
>
>How can I do that ?
>
>I'd like to increment a force on bodies, how can I do that ?
>"forcetest=0
>
>O.engines=[
>[...]
> ForceEngine(force=(0,0,0),ids=[233,234,235,236],label='fEngine'),
>[...]
> PyRunner(command="print O.iter", realPeriod=1),
> PyRunner(command="forcetest= O.iter", realPeriod=1),
> PyRunner(command="print forcetest", realPeriod=1),
>]
>
>fEngine.force[1] = -forcetest"
>I tried to run it but nothing happens.
>
>Thanks !
>
>--
>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 : yade-users@xxxxxxxxxxxxxxxxxxx
>Unsubscribe : https://launchpad.net/~yade-users
>More help : https://help.launchpad.net/ListHelp
>
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.