yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #02407
Re: Python force - plot
Hi,
2) your script works normally for me. At least this string:
plot.addData(fn=inter.phys.normalForce,step=O.iter)
I needed to delete the last parameter, because: AttributeError: 'FrictPhys'
object has no attribute 'contactpoint'
______________________________
Anton Gladkyy
2010/2/22 chiara modenese <c.modenese@xxxxxxxxx>
> Hi Vaclav,
>
> two simple questions on python:
>
> 1) How do I apply a force (not the gravity) to the bodies? Which engine
> should I call?
>
> 2) I get this error using the PeriodicPythonRunner engine to create some
> plots:
>
> NameError: name 'myAddPlotData' is not defined
>
> But I defined the function in the python script so I do not understand why
> it is giving me an error. Moreover if I try to access the data as
> plot.data['fn'] it gives me an error, too.
> I attach the python script.
>
> Cheers,
> Chiara
>
>
>
> _______________________________________________
> 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