Re: [Yade-users] [Question #432617]: How to plot damage ratio curve

2017-03-14 Thread Tina Asia
Question #432617 on Yade changed: https://answers.launchpad.net/yade/+question/432617 Status: Answered => Solved Tina Asia 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 answe

Re: [Yade-users] [Question #432617]: How to plot damage ratio curve

2017-03-13 Thread Luc Scholtès
Question #432617 on Yade changed: https://answers.launchpad.net/yade/+question/432617 Status: Open => Answered Luc Scholtès proposed the following answer: Hum... A stupid question but do you initialize numBroCohBonds to zero each time you compute it? What happens if you include a print numBr

Re: [Yade-users] [Question #432617]: How to plot damage ratio curve

2017-03-09 Thread Tina Asia
Question #432617 on Yade changed: https://answers.launchpad.net/yade/+question/432617 Status: Answered => Open Tina Asia is still having a problem: Hi Luc, Thanks for your patience, I adjusted my code and It goes well, but the output is wrong,because the number of broken bonds does not grow

Re: [Yade-users] [Question #432617]: How to plot damage ratio curve

2017-03-08 Thread Luc Scholtès
Question #432617 on Yade changed: https://answers.launchpad.net/yade/+question/432617 Status: Open => Answered Luc Scholtès proposed the following answer: Apparently, you divide something by zero... Did you check the value of sumCohBonds by printing it before using it in your function damage

Re: [Yade-users] [Question #432617]: How to plot damage ratio curve

2017-03-08 Thread Tina Asia
Question #432617 on Yade changed: https://answers.launchpad.net/yade/+question/432617 Status: Answered => Open Tina Asia is still having a problem: Thanks Luc, According to your code, I wrote the following script, but got an error (File "impact.py", line 104, in damageRatio=numBroCohBo

Re: [Yade-users] [Question #432617]: How to plot damage ratio curve

2017-01-08 Thread Luc Scholtès
Question #432617 on Yade changed: https://answers.launchpad.net/yade/+question/432617 Status: Open => Answered Luc Scholtès proposed the following answer: Hi Tina, If you are using cohFrictMat, I guess that you are also using cohFrictPhys and Law2_ScGeom6D_CohFrictPhys_CohesionMoment (right?

[Yade-users] [Question #432617]: How to plot damage ratio curve

2017-01-07 Thread Tina Asia
New question #432617 on Yade: https://answers.launchpad.net/yade/+question/432617 Hi, I made a particle assembly under uniaxial compression using cohfrictmat and bonded particle model, but can you tell me how to get damage ratio, namely the ratio between failed bonds and all intact bonds before