Re: [Yade-users] [Question #611087]: I got a wrong damage ratio

2017-04-08 Thread Huihuang Xia
Question #611087 on Yade changed: https://answers.launchpad.net/yade/+question/611087 Status: Answered => Solved Huihuang Xia confirmed that the question is solved: Thanks Luc Scholtès, that solved my question. -- You received this question notification because your team yade-users is an

Re: [Yade-users] [Question #611087]: I got a wrong damage ratio

2017-04-08 Thread De zhang
Question #611087 on Yade changed: https://answers.launchpad.net/yade/+question/611087 De zhang proposed the following answer: change the code as flowing: def addPlotData(): damageRatio=numBroCohBonds/float(numBroCohBonds+sumCohBonds) plot.addData(t=O.time,dr=damageRatio) haha~~ -- You