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
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
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
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
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
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
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
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
8 matches
Mail list logo