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

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

2017-04-06 Thread Luc Scholtès
Question #611087 on Yade changed: https://answers.launchpad.net/yade/+question/611087 Luc Scholtès proposed the following answer: Sorry, for wrong use of keyboard shortcut... I try another time here: I see 2 potential reasons why you get your damage ratio >1: 1) you don't use the same condition

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

2017-04-06 Thread Luc Scholtès
Question #611087 on Yade changed: https://answers.launchpad.net/yade/+question/611087 Status: Open => Answered Luc Scholtès proposed the following answer: I see 2 potential problematic reasons why you get your damage ration >1: 1) you don't use the same condition for checking the nb of

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

2017-04-06 Thread Huihuang Xia
Question #611087 on Yade changed: https://answers.launchpad.net/yade/+question/611087 Status: Answered => Open Huihuang Xia is still having a problem: Hi Robert, Thanks for your patience, but your method also got a wrong result, as damage ratio was greater than 1 and number of broken bonds

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

2017-04-05 Thread Robert Caulk
Question #611087 on Yade changed: https://answers.launchpad.net/yade/+question/611087 Status: Open => Answered Robert Caulk proposed the following answer: Hello Huihuang, I recommend you read the final post of that thread more closely ;-). You [i]want[/i] to initialize numBroCohBonds to

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

2017-04-05 Thread Huihuang Xia
Question #611087 on Yade changed: https://answers.launchpad.net/yade/+question/611087 Status: Answered => Open Huihuang Xia is still having a problem: Hi Robert, Thanks for your answer, but put the numBroCohBonds=0 inside the damageRatio() function is reallly a big mistake. You can refer

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

2017-04-05 Thread Robert Caulk
Question #611087 on Yade changed: https://answers.launchpad.net/yade/+question/611087 Status: Open => Answered Robert Caulk proposed the following answer: Hello, It looks like you are summing through broken bonds at each timestep and adding it to the sum from the previous step. If you want