yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #15576
Re: [Question #657061]: Compression strength
Question #657061 on Yade changed:
https://answers.launchpad.net/yade/+question/657061
Status: Open => Answered
Jan Stránský proposed the following answer:
Hi Sam,
define a function which records the data
###
def plotAddData():
plot.addData(
dspl = O.bodies[3].state.displ()[1],
force = O.forces.f(3)[1],
)
###
call it periodically
###
O.engines = [
...
PyRunner(iterPeriod=10,command='plotAddData()'),
]
###
and put plot commands at the end of script
###
plot.plots = {'dspl': 'force'}
plot.plot()
###
cheers
Jan
--
You received this question notification because your team yade-users is
an answer contact for Yade.