← Back to team overview

yade-users team mailing list archive

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

 

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 your damage
ratio to be relative to each timestep, the number of broken bonds needs
to be reset before each timestep.

So I would put the numBroCohBonds=0 inside the damageRatio() function.
This way,the summation is reset each time damageRatio() is called.

Robert

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.