yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #02419
Re: Python force - plot
Hi,
plot.addData(fn=inter.phys.normalForce,step=O.iter)
Is it not working for you as well? If it works, so the problem is not in
PeriodicPhythonRunner.
______________________________
Anton Gladkyy
2010/2/22 chiara modenese <c.modenese@xxxxxxxxx>
> Hi Vaclav,
>
> for me this PeriodicPhythonRunner is not working.. (I cannot really see
> why..) I am using the release 2039.. Is the script working well also for
> you?
> Is this the only way to store data with python at each time step? What
> about c++? Should I use a kind of simple scene preprocessor file and in
> addiction a sort of TStateRecorder?
>
> Thanks a lot (I think it is quite crucial to know how to store data -
> whatever - throughout a simulation..)
> Chiara
>
>
>
>
> On 22 February 2010 14:54, chiara modenese <c.modenese@xxxxxxxxx> wrote:
>
>>
>>
>> 2010/2/22 Václav Šmilauer <eudoxos@xxxxxxxx>
>>
>>
>>> > 1) How do I apply a force (not the gravity) to the bodies? Which
>>> > engine should I call?
>>> ForceEngine:
>>>
>>>
>>> https://www.yade-dem.org/sphinx/yade.wrapper.html#yade.wrapper.ForceEngine
>>>
>>
>> Thanks
>>
>>>
>>> > 2) I get this error using the PeriodicPythonRunner engine to create
>>> > some plots:
>>> >
>>> > NameError: name 'myAddPlotData' is not defined
>>> That is weird... you have O.run(...) before def myAddPlotData():, right?
>>>
>>>
>> No, actually I do not have O.run() in the script at all. I do type that in
>> the console..
>> I have tried to define a different function to write data in a file
>> instead of plotting them but I have still got the same error (NameError ...)
>>
>>
>>>
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
>>> Post to : yade-users@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
>>> More help : https://help.launchpad.net/ListHelp
>>>
>>
>>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
> Post to : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
> More help : https://help.launchpad.net/ListHelp
>
>
References