← Back to team overview

yade-users team mailing list archive

Re: [Question #159705]: Is it a bug ? mass won't update after desity changing

 

Question #159705 on Yade changed:
https://answers.launchpad.net/yade/+question/159705

jduriez proposed the following answer:
Hello,

I understand your surprize, but I have the feeling that such things are quite common in Yade.
Let say you have a simulation with bodies and interactions, and at one time you decide to change frictionAngle of (material of) bodies, which should change frictionAngle of interactions also. But existing interactions will *not* be updated... Because their properties are computed only once, when they are created. The choice is surely to not compute all the things (that are supposed not to change) at each time step.

So, if you meet such cases, you have to do the job by yourself (as in
TriaxialCompressionEngine for the previous example of frictionAngle). In
your case, you'll have to do a loop on the bodies to recompute their
mass according to their (new) density.

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.