← Back to team overview

yade-users team mailing list archive

Re: [Question #671468]: How to use TSSR method in order to promote failure in YADE??

 

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

    Status: Open => Answered

Robert Caulk proposed the following answer:
def history():
  	plot.addData(
                   TSSR = srFactor,
                   iters = O.iter,
                   cracks = jcfpmlaw.nbTensileCracks
)

O.engines=O.engines+[PyRunner(iterPeriod=200,command='history()',label='recorder')]

from yade import plot
plot.plots={'iters':('srFactor',None,'cracks')}
plot.plot()

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