yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #14323
Re: [Question #432617]: How to plot damage ratio curve
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 damageRatio? Type print sumCohBonds just after its
calculation in your script and you should see its value in the terminal.
Actually, did you compute it at iteration 0 of your simulation or at
iteration 1? I guess it is null at iteration 0 since the contacts
haven't been looped over yet. Try O.step() just before computing
sumCohBonds and let me know.
Luc
--
You received this question notification because your team yade-users is
an answer contact for Yade.