yade-users team mailing list archive
Mailing list archive
Re: [Question #681223]: change mat paras
Question #681223 on Yade changed:
Status: Open => Answered
Jérôme Duriez proposed the following answer:
What about some testing ?
O.bodies.mat.dict() # shows an initial value of 1.e7 for O.bodies.mat.young
O.bodies.mat.young = 2.e8
O.bodies.mat.dict() # confirms 1.e7 has been changed to 2e8
by-reference for more background infos.
Note that I'm speaking here only about changing Material themselves, not
interaction parameters. Follow Jan's #2 philosophy if this is actually
(Maybe you were somewhat confused saying "If changing the mat of a
sphere won't influence the mat in O.materials" : changing Material
objects does change Material objects, the problem is "just" that
interaction properties are not continuously computed from Material
You received this question notification because your team yade-users is
an answer contact for Yade.