← Back to team overview

yade-users team mailing list archive

Re: Python force - plot

 

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
>

Follow ups

References