← Back to team overview

yade-users team mailing list archive

Re: [Question #655866]: Rel. to Uniaxial test

 

Question #655866 on Yade changed:
https://answers.launchpad.net/yade/+question/655866

Swapnil posted a new comment:
Jan, I can now understand the PyRunner better. Thanks :)

However, with the addPlotData(), I still have doubts.

I am typing the code in the yade terminal.

I tried the following:

in first line:  def addPlotData():
     ....:      yade.plot.addData(t=O.time,i=O.iter,eps=-strainer.strain,sigma=-strainer.avgStress)
     .....

in new line:
O.step()

Upon pressing enter it says:

NameError                                 Traceback (most recent call last)
/usr/bin/yade in <module>()

NameError: name 'addPlotData' is not defined

How do we correct this one in order to execute the process and come up
with the desired stress-strain plot?

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.