Question #701415 on Yade changed: https://answers.launchpad.net/yade/+question/701415
Jan Stránský proposed the following answer: > It doesn't work. you have to use is correctly, i.e. actually using the material with non- zero density > box.mat=O.materials[Mat] this has no effect on already set values, e.g. box.state.mass > O.load('initial.yade.bz2') previously appended Mat = O.materials.append(FrictMat(...)) is overwritten with loaded materials, i.e. SphereMat = O.materials.append(FrictMat(..., density = Density)) WallMat = O.materials.append(FrictMat(..., density = WDensity)) # 0 !! > box = utils.box(...) if material is not explicitly specified, lastly appended material is used. In this case, WallMat with zero density Therefore the boxes have zero mass and you get the error. Solution: e.g. append Mat after O.load (such that it is the lastly appended material) Cheers Jan -- You received this question notification because your team yade-users is an answer contact for Yade. _______________________________________________ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp