yade-users team mailing list archive
Mailing list archive
Re: [Question #679314]: Reset Interactions
Question #679314 on Yade changed:
Status: Open => Answered
Jérôme Duriez proposed the following answer:
Almost any property of a YADE simulation can be accessed and modified
through python [*]
for b in O.bodies:
b.mat.young = newYoungValue # this will affect future interactions, not the existing ones.
# similar stuff for other bodies properties
for i in O.interactions:
i.phys.kn = newValue # according to CPM model and the newYoungValue. This is necessary because, as said in the above, existing interactions would not have their properties updated when the properties of interacting bodies are updated.
# similar stuff for other interaction properties
You received this question notification because your team yade-users is
an answer contact for Yade.